|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 |
|
6 #include "config.h" |
|
7 #include "RemoteInspectorFrontend.h" |
|
8 |
|
9 #if ENABLE(INSPECTOR) |
|
10 |
|
11 #include "InspectorClient.h" |
|
12 #include "InspectorValues.h" |
|
13 #include "PlatformString.h" |
|
14 |
|
15 namespace WebCore { |
|
16 |
|
17 void RemoteInspectorFrontend::addRecordToTimeline(PassRefPtr<InspectorObject> record) |
|
18 { |
|
19 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
20 arguments->pushString("addRecordToTimeline"); |
|
21 arguments->push(record); |
|
22 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
23 } |
|
24 |
|
25 void RemoteInspectorFrontend::addNodesToSearchResult(PassRefPtr<InspectorArray> nodeIds) |
|
26 { |
|
27 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
28 arguments->pushString("addNodesToSearchResult"); |
|
29 arguments->push(nodeIds); |
|
30 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
31 } |
|
32 |
|
33 void RemoteInspectorFrontend::attributesUpdated(long id, PassRefPtr<InspectorArray> attributes) |
|
34 { |
|
35 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
36 arguments->pushString("attributesUpdated"); |
|
37 arguments->pushNumber(id); |
|
38 arguments->push(attributes); |
|
39 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
40 } |
|
41 |
|
42 void RemoteInspectorFrontend::childNodeCountUpdated(long id, int newValue) |
|
43 { |
|
44 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
45 arguments->pushString("childNodeCountUpdated"); |
|
46 arguments->pushNumber(id); |
|
47 arguments->pushNumber(newValue); |
|
48 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
49 } |
|
50 |
|
51 void RemoteInspectorFrontend::childNodeInserted(long parentId, long prevId, PassRefPtr<InspectorObject> node) |
|
52 { |
|
53 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
54 arguments->pushString("childNodeInserted"); |
|
55 arguments->pushNumber(parentId); |
|
56 arguments->pushNumber(prevId); |
|
57 arguments->push(node); |
|
58 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
59 } |
|
60 |
|
61 void RemoteInspectorFrontend::childNodeRemoved(long parentId, long id) |
|
62 { |
|
63 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
64 arguments->pushString("childNodeRemoved"); |
|
65 arguments->pushNumber(parentId); |
|
66 arguments->pushNumber(id); |
|
67 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
68 } |
|
69 |
|
70 void RemoteInspectorFrontend::setChildNodes(long parentId, PassRefPtr<InspectorArray> nodes) |
|
71 { |
|
72 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
73 arguments->pushString("setChildNodes"); |
|
74 arguments->pushNumber(parentId); |
|
75 arguments->push(nodes); |
|
76 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
77 } |
|
78 |
|
79 void RemoteInspectorFrontend::setDetachedRoot(PassRefPtr<InspectorObject> root) |
|
80 { |
|
81 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
82 arguments->pushString("setDetachedRoot"); |
|
83 arguments->push(root); |
|
84 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
85 } |
|
86 |
|
87 void RemoteInspectorFrontend::setDocument(PassRefPtr<InspectorValue> root) |
|
88 { |
|
89 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
90 arguments->pushString("setDocument"); |
|
91 arguments->push(root); |
|
92 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
93 } |
|
94 |
|
95 void RemoteInspectorFrontend::didStoreLastActivePanel(long callId) |
|
96 { |
|
97 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
98 arguments->pushString("didStoreLastActivePanel"); |
|
99 arguments->pushNumber(callId); |
|
100 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
101 } |
|
102 |
|
103 void RemoteInspectorFrontend::didSaveApplicationSettings(long callId) |
|
104 { |
|
105 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
106 arguments->pushString("didSaveApplicationSettings"); |
|
107 arguments->pushNumber(callId); |
|
108 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
109 } |
|
110 |
|
111 void RemoteInspectorFrontend::didSaveSessionSettings(long callId) |
|
112 { |
|
113 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
114 arguments->pushString("didSaveSessionSettings"); |
|
115 arguments->pushNumber(callId); |
|
116 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
117 } |
|
118 |
|
119 void RemoteInspectorFrontend::didEnableSearchingForNode(long callId) |
|
120 { |
|
121 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
122 arguments->pushString("didEnableSearchingForNode"); |
|
123 arguments->pushNumber(callId); |
|
124 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
125 } |
|
126 |
|
127 void RemoteInspectorFrontend::didDisableSearchingForNode(long callId) |
|
128 { |
|
129 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
130 arguments->pushString("didDisableSearchingForNode"); |
|
131 arguments->pushNumber(callId); |
|
132 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
133 } |
|
134 |
|
135 void RemoteInspectorFrontend::didEnableMonitoringXHR(long callId) |
|
136 { |
|
137 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
138 arguments->pushString("didEnableMonitoringXHR"); |
|
139 arguments->pushNumber(callId); |
|
140 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
141 } |
|
142 |
|
143 void RemoteInspectorFrontend::didDisableMonitoringXHR(long callId) |
|
144 { |
|
145 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
146 arguments->pushString("didDisableMonitoringXHR"); |
|
147 arguments->pushNumber(callId); |
|
148 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
149 } |
|
150 |
|
151 void RemoteInspectorFrontend::didEnableResourceTracking(long callId) |
|
152 { |
|
153 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
154 arguments->pushString("didEnableResourceTracking"); |
|
155 arguments->pushNumber(callId); |
|
156 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
157 } |
|
158 |
|
159 void RemoteInspectorFrontend::didDisableResourceTracking(long callId) |
|
160 { |
|
161 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
162 arguments->pushString("didDisableResourceTracking"); |
|
163 arguments->pushNumber(callId); |
|
164 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
165 } |
|
166 |
|
167 void RemoteInspectorFrontend::didGetResourceContent(long callId) |
|
168 { |
|
169 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
170 arguments->pushString("didGetResourceContent"); |
|
171 arguments->pushNumber(callId); |
|
172 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
173 } |
|
174 |
|
175 void RemoteInspectorFrontend::didReloadPage(long callId) |
|
176 { |
|
177 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
178 arguments->pushString("didReloadPage"); |
|
179 arguments->pushNumber(callId); |
|
180 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
181 } |
|
182 |
|
183 void RemoteInspectorFrontend::didStartTimelineProfiler(long callId) |
|
184 { |
|
185 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
186 arguments->pushString("didStartTimelineProfiler"); |
|
187 arguments->pushNumber(callId); |
|
188 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
189 } |
|
190 |
|
191 void RemoteInspectorFrontend::didStopTimelineProfiler(long callId) |
|
192 { |
|
193 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
194 arguments->pushString("didStopTimelineProfiler"); |
|
195 arguments->pushNumber(callId); |
|
196 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
197 } |
|
198 |
|
199 void RemoteInspectorFrontend::didEnableDebugger(long callId) |
|
200 { |
|
201 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
202 arguments->pushString("didEnableDebugger"); |
|
203 arguments->pushNumber(callId); |
|
204 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
205 } |
|
206 |
|
207 void RemoteInspectorFrontend::didDisableDebugger(long callId) |
|
208 { |
|
209 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
210 arguments->pushString("didDisableDebugger"); |
|
211 arguments->pushNumber(callId); |
|
212 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
213 } |
|
214 |
|
215 void RemoteInspectorFrontend::didSetBreakpoint(long callId) |
|
216 { |
|
217 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
218 arguments->pushString("didSetBreakpoint"); |
|
219 arguments->pushNumber(callId); |
|
220 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
221 } |
|
222 |
|
223 void RemoteInspectorFrontend::didRemoveBreakpoint(long callId) |
|
224 { |
|
225 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
226 arguments->pushString("didRemoveBreakpoint"); |
|
227 arguments->pushNumber(callId); |
|
228 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
229 } |
|
230 |
|
231 void RemoteInspectorFrontend::didActivateBreakpoints(long callId) |
|
232 { |
|
233 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
234 arguments->pushString("didActivateBreakpoints"); |
|
235 arguments->pushNumber(callId); |
|
236 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
237 } |
|
238 |
|
239 void RemoteInspectorFrontend::didDeactivateBreakpoints(long callId) |
|
240 { |
|
241 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
242 arguments->pushString("didDeactivateBreakpoints"); |
|
243 arguments->pushNumber(callId); |
|
244 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
245 } |
|
246 |
|
247 void RemoteInspectorFrontend::didPause(long callId) |
|
248 { |
|
249 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
250 arguments->pushString("didPause"); |
|
251 arguments->pushNumber(callId); |
|
252 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
253 } |
|
254 |
|
255 void RemoteInspectorFrontend::didResume(long callId) |
|
256 { |
|
257 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
258 arguments->pushString("didResume"); |
|
259 arguments->pushNumber(callId); |
|
260 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
261 } |
|
262 |
|
263 void RemoteInspectorFrontend::didStepOverStatement(long callId) |
|
264 { |
|
265 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
266 arguments->pushString("didStepOverStatement"); |
|
267 arguments->pushNumber(callId); |
|
268 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
269 } |
|
270 |
|
271 void RemoteInspectorFrontend::didStepIntoStatement(long callId) |
|
272 { |
|
273 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
274 arguments->pushString("didStepIntoStatement"); |
|
275 arguments->pushNumber(callId); |
|
276 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
277 } |
|
278 |
|
279 void RemoteInspectorFrontend::didStepOutOfFunction(long callId) |
|
280 { |
|
281 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
282 arguments->pushString("didStepOutOfFunction"); |
|
283 arguments->pushNumber(callId); |
|
284 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
285 } |
|
286 |
|
287 void RemoteInspectorFrontend::didSetPauseOnExceptionsState(long callId) |
|
288 { |
|
289 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
290 arguments->pushString("didSetPauseOnExceptionsState"); |
|
291 arguments->pushNumber(callId); |
|
292 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
293 } |
|
294 |
|
295 void RemoteInspectorFrontend::didEditScriptSource(long callId) |
|
296 { |
|
297 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
298 arguments->pushString("didEditScriptSource"); |
|
299 arguments->pushNumber(callId); |
|
300 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
301 } |
|
302 |
|
303 void RemoteInspectorFrontend::didGetScriptSource(long callId) |
|
304 { |
|
305 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
306 arguments->pushString("didGetScriptSource"); |
|
307 arguments->pushNumber(callId); |
|
308 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
309 } |
|
310 |
|
311 void RemoteInspectorFrontend::didEnableProfiler(long callId) |
|
312 { |
|
313 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
314 arguments->pushString("didEnableProfiler"); |
|
315 arguments->pushNumber(callId); |
|
316 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
317 } |
|
318 |
|
319 void RemoteInspectorFrontend::didDisableProfiler(long callId) |
|
320 { |
|
321 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
322 arguments->pushString("didDisableProfiler"); |
|
323 arguments->pushNumber(callId); |
|
324 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
325 } |
|
326 |
|
327 void RemoteInspectorFrontend::didStartProfiling(long callId) |
|
328 { |
|
329 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
330 arguments->pushString("didStartProfiling"); |
|
331 arguments->pushNumber(callId); |
|
332 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
333 } |
|
334 |
|
335 void RemoteInspectorFrontend::didStopProfiling(long callId) |
|
336 { |
|
337 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
338 arguments->pushString("didStopProfiling"); |
|
339 arguments->pushNumber(callId); |
|
340 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
341 } |
|
342 |
|
343 void RemoteInspectorFrontend::didGetProfileHeaders(long callId) |
|
344 { |
|
345 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
346 arguments->pushString("didGetProfileHeaders"); |
|
347 arguments->pushNumber(callId); |
|
348 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
349 } |
|
350 |
|
351 void RemoteInspectorFrontend::didGetProfile(long callId) |
|
352 { |
|
353 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
354 arguments->pushString("didGetProfile"); |
|
355 arguments->pushNumber(callId); |
|
356 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
357 } |
|
358 |
|
359 void RemoteInspectorFrontend::didRemoveProfile(long callId) |
|
360 { |
|
361 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
362 arguments->pushString("didRemoveProfile"); |
|
363 arguments->pushNumber(callId); |
|
364 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
365 } |
|
366 |
|
367 void RemoteInspectorFrontend::didClearProfiles(long callId) |
|
368 { |
|
369 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
370 arguments->pushString("didClearProfiles"); |
|
371 arguments->pushNumber(callId); |
|
372 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
373 } |
|
374 |
|
375 void RemoteInspectorFrontend::didTakeHeapSnapshot(long callId) |
|
376 { |
|
377 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
378 arguments->pushString("didTakeHeapSnapshot"); |
|
379 arguments->pushNumber(callId); |
|
380 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
381 } |
|
382 |
|
383 void RemoteInspectorFrontend::didSetInjectedScriptSource(long callId) |
|
384 { |
|
385 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
386 arguments->pushString("didSetInjectedScriptSource"); |
|
387 arguments->pushNumber(callId); |
|
388 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
389 } |
|
390 |
|
391 void RemoteInspectorFrontend::didDispatchOnInjectedScript(long callId) |
|
392 { |
|
393 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
394 arguments->pushString("didDispatchOnInjectedScript"); |
|
395 arguments->pushNumber(callId); |
|
396 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
397 } |
|
398 |
|
399 void RemoteInspectorFrontend::didAddScriptToEvaluateOnLoad(long callId) |
|
400 { |
|
401 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
402 arguments->pushString("didAddScriptToEvaluateOnLoad"); |
|
403 arguments->pushNumber(callId); |
|
404 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
405 } |
|
406 |
|
407 void RemoteInspectorFrontend::didRemoveAllScriptsToEvaluateOnLoad(long callId) |
|
408 { |
|
409 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
410 arguments->pushString("didRemoveAllScriptsToEvaluateOnLoad"); |
|
411 arguments->pushNumber(callId); |
|
412 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
413 } |
|
414 |
|
415 void RemoteInspectorFrontend::didGetChildNodes(long callId) |
|
416 { |
|
417 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
418 arguments->pushString("didGetChildNodes"); |
|
419 arguments->pushNumber(callId); |
|
420 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
421 } |
|
422 |
|
423 void RemoteInspectorFrontend::didApplyDomChange(long callId, bool success) |
|
424 { |
|
425 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
426 arguments->pushString("didApplyDomChange"); |
|
427 arguments->pushNumber(callId); |
|
428 arguments->pushBool(success); |
|
429 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
430 } |
|
431 |
|
432 void RemoteInspectorFrontend::didSetTextNodeValue(long callId) |
|
433 { |
|
434 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
435 arguments->pushString("didSetTextNodeValue"); |
|
436 arguments->pushNumber(callId); |
|
437 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
438 } |
|
439 |
|
440 void RemoteInspectorFrontend::didGetEventListenersForNode(long callId, long nodeId, PassRefPtr<InspectorArray> listenersArray) |
|
441 { |
|
442 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
443 arguments->pushString("didGetEventListenersForNode"); |
|
444 arguments->pushNumber(callId); |
|
445 arguments->pushNumber(nodeId); |
|
446 arguments->push(listenersArray); |
|
447 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
448 } |
|
449 |
|
450 void RemoteInspectorFrontend::didCopyNode(long callId) |
|
451 { |
|
452 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
453 arguments->pushString("didCopyNode"); |
|
454 arguments->pushNumber(callId); |
|
455 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
456 } |
|
457 |
|
458 void RemoteInspectorFrontend::didRemoveNode(long callId, long nodeId) |
|
459 { |
|
460 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
461 arguments->pushString("didRemoveNode"); |
|
462 arguments->pushNumber(callId); |
|
463 arguments->pushNumber(nodeId); |
|
464 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
465 } |
|
466 |
|
467 void RemoteInspectorFrontend::didChangeTagName(long callId, long nodeId) |
|
468 { |
|
469 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
470 arguments->pushString("didChangeTagName"); |
|
471 arguments->pushNumber(callId); |
|
472 arguments->pushNumber(nodeId); |
|
473 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
474 } |
|
475 |
|
476 void RemoteInspectorFrontend::didGetOuterHTML(long callId, const String& outerHTML) |
|
477 { |
|
478 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
479 arguments->pushString("didGetOuterHTML"); |
|
480 arguments->pushNumber(callId); |
|
481 arguments->pushString(outerHTML); |
|
482 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
483 } |
|
484 |
|
485 void RemoteInspectorFrontend::didSetOuterHTML(long callId, long nodeId) |
|
486 { |
|
487 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
488 arguments->pushString("didSetOuterHTML"); |
|
489 arguments->pushNumber(callId); |
|
490 arguments->pushNumber(nodeId); |
|
491 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
492 } |
|
493 |
|
494 void RemoteInspectorFrontend::didAddInspectedNode(long callId) |
|
495 { |
|
496 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
497 arguments->pushString("didAddInspectedNode"); |
|
498 arguments->pushNumber(callId); |
|
499 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
500 } |
|
501 |
|
502 void RemoteInspectorFrontend::didPerformSearch(long callId) |
|
503 { |
|
504 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
505 arguments->pushString("didPerformSearch"); |
|
506 arguments->pushNumber(callId); |
|
507 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
508 } |
|
509 |
|
510 void RemoteInspectorFrontend::didSearchCanceled(long callId) |
|
511 { |
|
512 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
513 arguments->pushString("didSearchCanceled"); |
|
514 arguments->pushNumber(callId); |
|
515 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
516 } |
|
517 |
|
518 void RemoteInspectorFrontend::didPushNodeByPathToFrontend(long callId, long nodeId) |
|
519 { |
|
520 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
521 arguments->pushString("didPushNodeByPathToFrontend"); |
|
522 arguments->pushNumber(callId); |
|
523 arguments->pushNumber(nodeId); |
|
524 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
525 } |
|
526 |
|
527 void RemoteInspectorFrontend::didClearConsoleMessages(long callId) |
|
528 { |
|
529 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
530 arguments->pushString("didClearConsoleMessages"); |
|
531 arguments->pushNumber(callId); |
|
532 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
533 } |
|
534 |
|
535 void RemoteInspectorFrontend::didHighlightDOMNode(long callId) |
|
536 { |
|
537 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
538 arguments->pushString("didHighlightDOMNode"); |
|
539 arguments->pushNumber(callId); |
|
540 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
541 } |
|
542 |
|
543 void RemoteInspectorFrontend::didHideDOMNodeHighlight(long callId) |
|
544 { |
|
545 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
546 arguments->pushString("didHideDOMNodeHighlight"); |
|
547 arguments->pushNumber(callId); |
|
548 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
549 } |
|
550 |
|
551 void RemoteInspectorFrontend::didGetStyles(long callId, PassRefPtr<InspectorValue> styles) |
|
552 { |
|
553 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
554 arguments->pushString("didGetStyles"); |
|
555 arguments->pushNumber(callId); |
|
556 arguments->push(styles); |
|
557 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
558 } |
|
559 |
|
560 void RemoteInspectorFrontend::didGetAllStyles(long callId, PassRefPtr<InspectorArray> styles) |
|
561 { |
|
562 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
563 arguments->pushString("didGetAllStyles"); |
|
564 arguments->pushNumber(callId); |
|
565 arguments->push(styles); |
|
566 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
567 } |
|
568 |
|
569 void RemoteInspectorFrontend::didGetInlineStyle(long callId, PassRefPtr<InspectorValue> style) |
|
570 { |
|
571 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
572 arguments->pushString("didGetInlineStyle"); |
|
573 arguments->pushNumber(callId); |
|
574 arguments->push(style); |
|
575 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
576 } |
|
577 |
|
578 void RemoteInspectorFrontend::didGetComputedStyle(long callId, PassRefPtr<InspectorValue> style) |
|
579 { |
|
580 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
581 arguments->pushString("didGetComputedStyle"); |
|
582 arguments->pushNumber(callId); |
|
583 arguments->push(style); |
|
584 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
585 } |
|
586 |
|
587 void RemoteInspectorFrontend::didGetStyleSheet(long callId, PassRefPtr<InspectorValue> styleSheet) |
|
588 { |
|
589 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
590 arguments->pushString("didGetStyleSheet"); |
|
591 arguments->pushNumber(callId); |
|
592 arguments->push(styleSheet); |
|
593 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
594 } |
|
595 |
|
596 void RemoteInspectorFrontend::didGetRuleRangesForStyleSheetId(long callId) |
|
597 { |
|
598 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
599 arguments->pushString("didGetRuleRangesForStyleSheetId"); |
|
600 arguments->pushNumber(callId); |
|
601 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
602 } |
|
603 |
|
604 void RemoteInspectorFrontend::didApplyStyleText(long callId, bool success, PassRefPtr<InspectorValue> style, PassRefPtr<InspectorArray> changedProperties) |
|
605 { |
|
606 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
607 arguments->pushString("didApplyStyleText"); |
|
608 arguments->pushNumber(callId); |
|
609 arguments->pushBool(success); |
|
610 arguments->push(style); |
|
611 arguments->push(changedProperties); |
|
612 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
613 } |
|
614 |
|
615 void RemoteInspectorFrontend::didSetStyleText(long callId, bool success) |
|
616 { |
|
617 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
618 arguments->pushString("didSetStyleText"); |
|
619 arguments->pushNumber(callId); |
|
620 arguments->pushBool(success); |
|
621 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
622 } |
|
623 |
|
624 void RemoteInspectorFrontend::didSetStyleProperty(long callId, bool success) |
|
625 { |
|
626 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
627 arguments->pushString("didSetStyleProperty"); |
|
628 arguments->pushNumber(callId); |
|
629 arguments->pushBool(success); |
|
630 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
631 } |
|
632 |
|
633 void RemoteInspectorFrontend::didToggleStyleEnabled(long callId, PassRefPtr<InspectorValue> style) |
|
634 { |
|
635 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
636 arguments->pushString("didToggleStyleEnabled"); |
|
637 arguments->pushNumber(callId); |
|
638 arguments->push(style); |
|
639 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
640 } |
|
641 |
|
642 void RemoteInspectorFrontend::didSetRuleSelector(long callId, PassRefPtr<InspectorValue> rule, bool selectorAffectsNode) |
|
643 { |
|
644 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
645 arguments->pushString("didSetRuleSelector"); |
|
646 arguments->pushNumber(callId); |
|
647 arguments->push(rule); |
|
648 arguments->pushBool(selectorAffectsNode); |
|
649 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
650 } |
|
651 |
|
652 void RemoteInspectorFrontend::didAddRule(long callId, PassRefPtr<InspectorValue> rule, bool selectorAffectsNode) |
|
653 { |
|
654 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
655 arguments->pushString("didAddRule"); |
|
656 arguments->pushNumber(callId); |
|
657 arguments->push(rule); |
|
658 arguments->pushBool(selectorAffectsNode); |
|
659 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
660 } |
|
661 |
|
662 void RemoteInspectorFrontend::didGetCookies(long callId) |
|
663 { |
|
664 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
665 arguments->pushString("didGetCookies"); |
|
666 arguments->pushNumber(callId); |
|
667 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
668 } |
|
669 |
|
670 void RemoteInspectorFrontend::didDeleteCookie(long callId) |
|
671 { |
|
672 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
673 arguments->pushString("didDeleteCookie"); |
|
674 arguments->pushNumber(callId); |
|
675 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
676 } |
|
677 |
|
678 void RemoteInspectorFrontend::didGetApplicationCaches(long callId) |
|
679 { |
|
680 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
681 arguments->pushString("didGetApplicationCaches"); |
|
682 arguments->pushNumber(callId); |
|
683 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
684 } |
|
685 |
|
686 void RemoteInspectorFrontend::didReleaseWrapperObjectGroup(long callId) |
|
687 { |
|
688 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
689 arguments->pushString("didReleaseWrapperObjectGroup"); |
|
690 arguments->pushNumber(callId); |
|
691 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
692 } |
|
693 |
|
694 void RemoteInspectorFrontend::didDidEvaluateForTestInFrontend(long callId) |
|
695 { |
|
696 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
697 arguments->pushString("didDidEvaluateForTestInFrontend"); |
|
698 arguments->pushNumber(callId); |
|
699 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
700 } |
|
701 |
|
702 void RemoteInspectorFrontend::didGetDatabaseTableNames(long callId) |
|
703 { |
|
704 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
705 arguments->pushString("didGetDatabaseTableNames"); |
|
706 arguments->pushNumber(callId); |
|
707 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
708 } |
|
709 |
|
710 void RemoteInspectorFrontend::didGetDOMStorageEntries(long callId) |
|
711 { |
|
712 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
713 arguments->pushString("didGetDOMStorageEntries"); |
|
714 arguments->pushNumber(callId); |
|
715 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
716 } |
|
717 |
|
718 void RemoteInspectorFrontend::didSetDOMStorageItem(long callId) |
|
719 { |
|
720 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
721 arguments->pushString("didSetDOMStorageItem"); |
|
722 arguments->pushNumber(callId); |
|
723 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
724 } |
|
725 |
|
726 void RemoteInspectorFrontend::didRemoveDOMStorageItem(long callId) |
|
727 { |
|
728 RefPtr<InspectorArray> arguments = InspectorArray::create(); |
|
729 arguments->pushString("didRemoveDOMStorageItem"); |
|
730 arguments->pushNumber(callId); |
|
731 m_inspectorClient->sendMessageToFrontend(arguments->toJSONString()); |
|
732 } |
|
733 |
|
734 |
|
735 } // namespace WebCore |
|
736 |
|
737 #endif // ENABLE(INSPECTOR) |