1 | export function DomainDispatcher(domain) {
|
2 | return (klass) => __registerDomainDispatcher(domain, klass);
|
3 | }
|
4 |
|
5 |
|
6 | export var HeapDomain;
|
7 | (function (HeapDomain) {
|
8 | class HeapFrontend {
|
9 |
|
10 | garbageCollected(collection) {
|
11 | __inspectorSendEvent(JSON.stringify({
|
12 | method: 'Heap.garbageCollected',
|
13 | params: { collection: collection },
|
14 | }));
|
15 | }
|
16 |
|
17 | trackingStart(timestamp, snapshotData) {
|
18 | __inspectorSendEvent(JSON.stringify({
|
19 | method: 'Heap.trackingStart',
|
20 | params: {
|
21 | timestamp: timestamp,
|
22 | snapshotData: snapshotData,
|
23 | },
|
24 | }));
|
25 | }
|
26 |
|
27 | trackingComplete(timestamp, snapshotData) {
|
28 | __inspectorSendEvent(JSON.stringify({
|
29 | method: 'Heap.trackingComplete',
|
30 | params: {
|
31 | timestamp: timestamp,
|
32 | snapshotData: snapshotData,
|
33 | },
|
34 | }));
|
35 | }
|
36 | }
|
37 | HeapDomain.HeapFrontend = HeapFrontend;
|
38 | })(HeapDomain || (HeapDomain = {}));
|
39 |
|
40 |
|
41 | export var DebuggerDomain;
|
42 | (function (DebuggerDomain) {
|
43 | class DebuggerFrontend {
|
44 |
|
45 | globalObjectCleared() {
|
46 | __inspectorSendEvent(JSON.stringify({
|
47 | method: 'Debugger.globalObjectCleared',
|
48 | params: {},
|
49 | }));
|
50 | }
|
51 |
|
52 | scriptParsed(scriptId, url, startLine, startColumn, endLine, endColumn, isContentScript, sourceURL, sourceMapURL) {
|
53 | __inspectorSendEvent(JSON.stringify({
|
54 | method: 'Debugger.scriptParsed',
|
55 | params: {
|
56 | scriptId: scriptId,
|
57 | url: url,
|
58 | startLine: startLine,
|
59 | startColumn: startColumn,
|
60 | endLine: endLine,
|
61 | endColumn: endColumn,
|
62 | isContentScript: isContentScript,
|
63 | sourceURL: sourceURL,
|
64 | sourceMapURL: sourceMapURL,
|
65 | },
|
66 | }));
|
67 | }
|
68 |
|
69 | scriptFailedToParse(url, scriptSource, startLine, errorLine, errorMessage) {
|
70 | __inspectorSendEvent(JSON.stringify({
|
71 | method: 'Debugger.scriptFailedToParse',
|
72 | params: {
|
73 | url: url,
|
74 | scriptSource: scriptSource,
|
75 | startLine: startLine,
|
76 | errorLine: errorLine,
|
77 | errorMessage: errorMessage,
|
78 | },
|
79 | }));
|
80 | }
|
81 |
|
82 | breakpointResolved(breakpointId, location) {
|
83 | __inspectorSendEvent(JSON.stringify({
|
84 | method: 'Debugger.breakpointResolved',
|
85 | params: { breakpointId: breakpointId, location: location },
|
86 | }));
|
87 | }
|
88 |
|
89 | paused(callFrames, reason , data) {
|
90 | __inspectorSendEvent(JSON.stringify({
|
91 | method: 'Debugger.paused',
|
92 | params: {
|
93 | callFrames: callFrames,
|
94 | reason: reason,
|
95 | data: data,
|
96 | },
|
97 | }));
|
98 | }
|
99 |
|
100 | resumed() {
|
101 | __inspectorSendEvent(JSON.stringify({ method: 'Debugger.resumed', params: {} }));
|
102 | }
|
103 |
|
104 | didSampleProbe(sample) {
|
105 | __inspectorSendEvent(JSON.stringify({
|
106 | method: 'Debugger.didSampleProbe',
|
107 | params: { sample: sample },
|
108 | }));
|
109 | }
|
110 |
|
111 | playBreakpointActionSound(breakpointActionId) {
|
112 | __inspectorSendEvent(JSON.stringify({
|
113 | method: 'Debugger.playBreakpointActionSound',
|
114 | params: { breakpointActionId: breakpointActionId },
|
115 | }));
|
116 | }
|
117 | }
|
118 | DebuggerDomain.DebuggerFrontend = DebuggerFrontend;
|
119 | })(DebuggerDomain || (DebuggerDomain = {}));
|
120 |
|
121 |
|
122 | export var RuntimeDomain;
|
123 | (function (RuntimeDomain) {
|
124 | class RuntimeFrontend {
|
125 |
|
126 | executionContextCreated(context) {
|
127 | __inspectorSendEvent(JSON.stringify({
|
128 | method: 'Runtime.executionContextCreated',
|
129 | params: { context: context },
|
130 | }));
|
131 | }
|
132 | }
|
133 | RuntimeDomain.RuntimeFrontend = RuntimeFrontend;
|
134 | })(RuntimeDomain || (RuntimeDomain = {}));
|
135 |
|
136 |
|
137 | export var ConsoleDomain;
|
138 | (function (ConsoleDomain) {
|
139 | class ConsoleFrontend {
|
140 |
|
141 | messageAdded(message) {
|
142 | __inspectorSendEvent(JSON.stringify({
|
143 | method: 'Console.messageAdded',
|
144 | params: { message: message },
|
145 | }));
|
146 | }
|
147 |
|
148 | messageRepeatCountUpdated(count) {
|
149 | __inspectorSendEvent(JSON.stringify({
|
150 | method: 'Console.messageRepeatCountUpdated',
|
151 | params: { count: count },
|
152 | }));
|
153 | }
|
154 |
|
155 | messagesCleared() {
|
156 | __inspectorSendEvent(JSON.stringify({
|
157 | method: 'Console.messagesCleared',
|
158 | params: {},
|
159 | }));
|
160 | }
|
161 |
|
162 | heapSnapshot(timestamp, snapshotData, title) {
|
163 | __inspectorSendEvent(JSON.stringify({
|
164 | method: 'Console.heapSnapshot',
|
165 | params: {
|
166 | timestamp: timestamp,
|
167 | snapshotData: snapshotData,
|
168 | title: title,
|
169 | },
|
170 | }));
|
171 | }
|
172 | }
|
173 | ConsoleDomain.ConsoleFrontend = ConsoleFrontend;
|
174 | })(ConsoleDomain || (ConsoleDomain = {}));
|
175 |
|
176 |
|
177 | export var PageDomain;
|
178 | (function (PageDomain) {
|
179 | class PageFrontend {
|
180 | domContentEventFired(timestamp) {
|
181 | __inspectorSendEvent(JSON.stringify({
|
182 | method: 'Page.domContentEventFired',
|
183 | params: { timestamp: timestamp },
|
184 | }));
|
185 | }
|
186 | loadEventFired(timestamp) {
|
187 | __inspectorSendEvent(JSON.stringify({
|
188 | method: 'Page.loadEventFired',
|
189 | params: { timestamp: timestamp },
|
190 | }));
|
191 | }
|
192 |
|
193 | frameNavigated(frame) {
|
194 | __inspectorSendEvent(JSON.stringify({
|
195 | method: 'Page.frameNavigated',
|
196 | params: { frame: frame },
|
197 | }));
|
198 | }
|
199 |
|
200 | frameDetached(frameId) {
|
201 | __inspectorSendEvent(JSON.stringify({
|
202 | method: 'Page.frameDetached',
|
203 | params: { frameId: frameId },
|
204 | }));
|
205 | }
|
206 |
|
207 | frameStartedLoading(frameId) {
|
208 | __inspectorSendEvent(JSON.stringify({
|
209 | method: 'Page.frameStartedLoading',
|
210 | params: { frameId: frameId },
|
211 | }));
|
212 | }
|
213 |
|
214 | frameStoppedLoading(frameId) {
|
215 | __inspectorSendEvent(JSON.stringify({
|
216 | method: 'Page.frameStoppedLoading',
|
217 | params: { frameId: frameId },
|
218 | }));
|
219 | }
|
220 |
|
221 | frameScheduledNavigation(frameId, delay) {
|
222 | __inspectorSendEvent(JSON.stringify({
|
223 | method: 'Page.frameScheduledNavigation',
|
224 | params: { frameId: frameId, delay: delay },
|
225 | }));
|
226 | }
|
227 |
|
228 | frameClearedScheduledNavigation(frameId) {
|
229 | __inspectorSendEvent(JSON.stringify({
|
230 | method: 'Page.frameClearedScheduledNavigation',
|
231 | params: { frameId: frameId },
|
232 | }));
|
233 | }
|
234 |
|
235 | javascriptDialogOpening(message) {
|
236 | __inspectorSendEvent(JSON.stringify({
|
237 | method: 'Page.javascriptDialogOpening',
|
238 | params: { message: message },
|
239 | }));
|
240 | }
|
241 |
|
242 | javascriptDialogClosed() {
|
243 | __inspectorSendEvent(JSON.stringify({
|
244 | method: 'Page.javascriptDialogClosed',
|
245 | params: {},
|
246 | }));
|
247 | }
|
248 |
|
249 | scriptsEnabled(isEnabled) {
|
250 | __inspectorSendEvent(JSON.stringify({
|
251 | method: 'Page.scriptsEnabled',
|
252 | params: { isEnabled: isEnabled },
|
253 | }));
|
254 | }
|
255 | }
|
256 | PageDomain.PageFrontend = PageFrontend;
|
257 | })(PageDomain || (PageDomain = {}));
|
258 |
|
259 |
|
260 | export var NetworkDomain;
|
261 | (function (NetworkDomain) {
|
262 | class NetworkFrontend {
|
263 |
|
264 | requestWillBeSent(requestId, frameId, loaderId, documentURL, request, timestamp, initiator, redirectResponse, type) {
|
265 | __inspectorSendEvent(JSON.stringify({
|
266 | method: 'Network.requestWillBeSent',
|
267 | params: {
|
268 | requestId: requestId,
|
269 | frameId: frameId,
|
270 | loaderId: loaderId,
|
271 | documentURL: documentURL,
|
272 | request: request,
|
273 | timestamp: timestamp,
|
274 | initiator: initiator,
|
275 | redirectResponse: redirectResponse,
|
276 | type: type,
|
277 | },
|
278 | }));
|
279 | }
|
280 |
|
281 | requestServedFromCache(requestId) {
|
282 | __inspectorSendEvent(JSON.stringify({
|
283 | method: 'Network.requestServedFromCache',
|
284 | params: { requestId: requestId },
|
285 | }));
|
286 | }
|
287 |
|
288 | responseReceived(requestId, frameId, loaderId, timestamp, type, response) {
|
289 | __inspectorSendEvent(JSON.stringify({
|
290 | method: 'Network.responseReceived',
|
291 | params: {
|
292 | requestId: requestId,
|
293 | frameId: frameId,
|
294 | loaderId: loaderId,
|
295 | timestamp: timestamp,
|
296 | type: type,
|
297 | response: response,
|
298 | },
|
299 | }));
|
300 | }
|
301 |
|
302 | dataReceived(requestId, timestamp, dataLength, encodedDataLength) {
|
303 | __inspectorSendEvent(JSON.stringify({
|
304 | method: 'Network.dataReceived',
|
305 | params: {
|
306 | requestId: requestId,
|
307 | timestamp: timestamp,
|
308 | dataLength: dataLength,
|
309 | encodedDataLength: encodedDataLength,
|
310 | },
|
311 | }));
|
312 | }
|
313 |
|
314 | loadingFinished(requestId, timestamp, sourceMapURL) {
|
315 | __inspectorSendEvent(JSON.stringify({
|
316 | method: 'Network.loadingFinished',
|
317 | params: {
|
318 | requestId: requestId,
|
319 | timestamp: timestamp,
|
320 | sourceMapURL: sourceMapURL,
|
321 | },
|
322 | }));
|
323 | }
|
324 |
|
325 | loadingFailed(requestId, timestamp, errorText, canceled) {
|
326 | __inspectorSendEvent(JSON.stringify({
|
327 | method: 'Network.loadingFailed',
|
328 | params: {
|
329 | requestId: requestId,
|
330 | timestamp: timestamp,
|
331 | errorText: errorText,
|
332 | canceled: canceled,
|
333 | },
|
334 | }));
|
335 | }
|
336 |
|
337 | requestServedFromMemoryCache(requestId, frameId, loaderId, documentURL, timestamp, initiator, resource) {
|
338 | __inspectorSendEvent(JSON.stringify({
|
339 | method: 'Network.requestServedFromMemoryCache',
|
340 | params: {
|
341 | requestId: requestId,
|
342 | frameId: frameId,
|
343 | loaderId: loaderId,
|
344 | documentURL: documentURL,
|
345 | timestamp: timestamp,
|
346 | initiator: initiator,
|
347 | resource: resource,
|
348 | },
|
349 | }));
|
350 | }
|
351 |
|
352 | webSocketWillSendHandshakeRequest(requestId, timestamp, request) {
|
353 | __inspectorSendEvent(JSON.stringify({
|
354 | method: 'Network.webSocketWillSendHandshakeRequest',
|
355 | params: {
|
356 | requestId: requestId,
|
357 | timestamp: timestamp,
|
358 | request: request,
|
359 | },
|
360 | }));
|
361 | }
|
362 |
|
363 | webSocketHandshakeResponseReceived(requestId, timestamp, response) {
|
364 | __inspectorSendEvent(JSON.stringify({
|
365 | method: 'Network.webSocketHandshakeResponseReceived',
|
366 | params: {
|
367 | requestId: requestId,
|
368 | timestamp: timestamp,
|
369 | response: response,
|
370 | },
|
371 | }));
|
372 | }
|
373 |
|
374 | webSocketCreated(requestId, url) {
|
375 | __inspectorSendEvent(JSON.stringify({
|
376 | method: 'Network.webSocketCreated',
|
377 | params: { requestId: requestId, url: url },
|
378 | }));
|
379 | }
|
380 |
|
381 | webSocketClosed(requestId, timestamp) {
|
382 | __inspectorSendEvent(JSON.stringify({
|
383 | method: 'Network.webSocketClosed',
|
384 | params: { requestId: requestId, timestamp: timestamp },
|
385 | }));
|
386 | }
|
387 |
|
388 | webSocketFrameReceived(requestId, timestamp, response) {
|
389 | __inspectorSendEvent(JSON.stringify({
|
390 | method: 'Network.webSocketFrameReceived',
|
391 | params: {
|
392 | requestId: requestId,
|
393 | timestamp: timestamp,
|
394 | response: response,
|
395 | },
|
396 | }));
|
397 | }
|
398 |
|
399 | webSocketFrameError(requestId, timestamp, errorMessage) {
|
400 | __inspectorSendEvent(JSON.stringify({
|
401 | method: 'Network.webSocketFrameError',
|
402 | params: {
|
403 | requestId: requestId,
|
404 | timestamp: timestamp,
|
405 | errorMessage: errorMessage,
|
406 | },
|
407 | }));
|
408 | }
|
409 |
|
410 | webSocketFrameSent(requestId, timestamp, response) {
|
411 | __inspectorSendEvent(JSON.stringify({
|
412 | method: 'Network.webSocketFrameSent',
|
413 | params: {
|
414 | requestId: requestId,
|
415 | timestamp: timestamp,
|
416 | response: response,
|
417 | },
|
418 | }));
|
419 | }
|
420 | }
|
421 | NetworkDomain.NetworkFrontend = NetworkFrontend;
|
422 | })(NetworkDomain || (NetworkDomain = {}));
|
423 |
|
424 |
|
425 | export var DOMDomain;
|
426 | (function (DOMDomain) {
|
427 | class DOMFrontend {
|
428 |
|
429 | documentUpdated() {
|
430 | __inspectorSendEvent(JSON.stringify({ method: 'DOM.documentUpdated', params: {} }));
|
431 | }
|
432 |
|
433 | setChildNodes(parentId, nodes) {
|
434 | __inspectorSendEvent(JSON.stringify({
|
435 | method: 'DOM.setChildNodes',
|
436 | params: { parentId: parentId, nodes: nodes },
|
437 | }));
|
438 | }
|
439 |
|
440 | attributeModified(nodeId, name, value) {
|
441 | __inspectorSendEvent(JSON.stringify({
|
442 | method: 'DOM.attributeModified',
|
443 | params: { nodeId: nodeId, name: name, value: value },
|
444 | }));
|
445 | }
|
446 |
|
447 | attributeRemoved(nodeId, name) {
|
448 | __inspectorSendEvent(JSON.stringify({
|
449 | method: 'DOM.attributeRemoved',
|
450 | params: { nodeId: nodeId, name: name },
|
451 | }));
|
452 | }
|
453 |
|
454 | inlineStyleInvalidated(nodeIds) {
|
455 | __inspectorSendEvent(JSON.stringify({
|
456 | method: 'DOM.inlineStyleInvalidated',
|
457 | params: { nodeIds: nodeIds },
|
458 | }));
|
459 | }
|
460 |
|
461 | characterDataModified(nodeId, characterData) {
|
462 | __inspectorSendEvent(JSON.stringify({
|
463 | method: 'DOM.characterDataModified',
|
464 | params: { nodeId: nodeId, characterData: characterData },
|
465 | }));
|
466 | }
|
467 |
|
468 | childNodeCountUpdated(nodeId, childNodeCount) {
|
469 | __inspectorSendEvent(JSON.stringify({
|
470 | method: 'DOM.childNodeCountUpdated',
|
471 | params: { nodeId: nodeId, childNodeCount: childNodeCount },
|
472 | }));
|
473 | }
|
474 |
|
475 | childNodeInserted(parentNodeId, previousNodeId, node) {
|
476 | __inspectorSendEvent(JSON.stringify({
|
477 | method: 'DOM.childNodeInserted',
|
478 | params: {
|
479 | parentNodeId: parentNodeId,
|
480 | previousNodeId: previousNodeId,
|
481 | node: node,
|
482 | },
|
483 | }));
|
484 | }
|
485 |
|
486 | childNodeRemoved(parentNodeId, nodeId) {
|
487 | __inspectorSendEvent(JSON.stringify({
|
488 | method: 'DOM.childNodeRemoved',
|
489 | params: { parentNodeId: parentNodeId, nodeId: nodeId },
|
490 | }));
|
491 | }
|
492 |
|
493 | shadowRootPushed(hostId, root) {
|
494 | __inspectorSendEvent(JSON.stringify({
|
495 | method: 'DOM.shadowRootPushed',
|
496 | params: { hostId: hostId, root: root },
|
497 | }));
|
498 | }
|
499 |
|
500 | shadowRootPopped(hostId, rootId) {
|
501 | __inspectorSendEvent(JSON.stringify({
|
502 | method: 'DOM.shadowRootPopped',
|
503 | params: { hostId: hostId, rootId: rootId },
|
504 | }));
|
505 | }
|
506 |
|
507 | pseudoElementAdded(parentId, pseudoElement) {
|
508 | __inspectorSendEvent(JSON.stringify({
|
509 | method: 'DOM.pseudoElementAdded',
|
510 | params: {
|
511 | parentId: parentId,
|
512 | pseudoElement: pseudoElement,
|
513 | },
|
514 | }));
|
515 | }
|
516 |
|
517 | pseudoElementRemoved(parentId, pseudoElementId) {
|
518 | __inspectorSendEvent(JSON.stringify({
|
519 | method: 'DOM.pseudoElementRemoved',
|
520 | params: {
|
521 | parentId: parentId,
|
522 | pseudoElementId: pseudoElementId,
|
523 | },
|
524 | }));
|
525 | }
|
526 | }
|
527 | DOMDomain.DOMFrontend = DOMFrontend;
|
528 | })(DOMDomain || (DOMDomain = {}));
|
529 |
|
530 |
|
531 | export var CSSDomain;
|
532 | (function (CSSDomain) {
|
533 | class CSSFrontend {
|
534 |
|
535 | mediaQueryResultChanged() {
|
536 | __inspectorSendEvent(JSON.stringify({
|
537 | method: 'CSS.mediaQueryResultChanged',
|
538 | params: {},
|
539 | }));
|
540 | }
|
541 |
|
542 | fontsUpdated() {
|
543 | __inspectorSendEvent(JSON.stringify({ method: 'CSS.fontsUpdated', params: {} }));
|
544 | }
|
545 |
|
546 | styleSheetChanged(styleSheetId) {
|
547 | __inspectorSendEvent(JSON.stringify({
|
548 | method: 'CSS.styleSheetChanged',
|
549 | params: { styleSheetId: styleSheetId },
|
550 | }));
|
551 | }
|
552 |
|
553 | styleSheetAdded(header) {
|
554 | __inspectorSendEvent(JSON.stringify({
|
555 | method: 'CSS.styleSheetAdded',
|
556 | params: { header: header },
|
557 | }));
|
558 | }
|
559 |
|
560 | styleSheetRemoved(styleSheetId) {
|
561 | __inspectorSendEvent(JSON.stringify({
|
562 | method: 'CSS.styleSheetRemoved',
|
563 | params: { styleSheetId: styleSheetId },
|
564 | }));
|
565 | }
|
566 | layoutEditorChange(styleSheetId, changeRange) {
|
567 | __inspectorSendEvent(JSON.stringify({
|
568 | method: 'CSS.layoutEditorChange',
|
569 | params: {
|
570 | styleSheetId: styleSheetId,
|
571 | changeRange: changeRange,
|
572 | },
|
573 | }));
|
574 | }
|
575 | }
|
576 | CSSDomain.CSSFrontend = CSSFrontend;
|
577 | })(CSSDomain || (CSSDomain = {}));
|
578 |
|
\ | No newline at end of file |