OLD | NEW |
---|---|
(Empty) | |
1 | |
pfeldman
2014/02/11 20:43:33
You don't want to add this file.
mstensho (USE GERRIT)
2014/02/12 08:57:07
I certainly don't! Wonder where it came from. Some
| |
2 var Protocol = {}; | |
3 /** @typedef {string}*/ | |
4 Protocol.Error; | |
5 | |
6 | |
7 | |
8 var InspectorAgent = {}; | |
9 | |
10 /** | |
11 * @param {function(?Protocol.Error):void=} opt_callback | |
12 */ | |
13 InspectorAgent.enable = function(opt_callback) {} | |
14 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
15 InspectorAgent.enable.invoke = function(obj, opt_callback) {} | |
16 | |
17 /** | |
18 * @param {function(?Protocol.Error):void=} opt_callback | |
19 */ | |
20 InspectorAgent.disable = function(opt_callback) {} | |
21 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
22 InspectorAgent.disable.invoke = function(obj, opt_callback) {} | |
23 | |
24 /** | |
25 * @param {function(?Protocol.Error):void=} opt_callback | |
26 */ | |
27 InspectorAgent.reset = function(opt_callback) {} | |
28 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
29 InspectorAgent.reset.invoke = function(obj, opt_callback) {} | |
30 /** @interface */ | |
31 InspectorAgent.Dispatcher = function() {}; | |
32 /** | |
33 * @param {number} testCallId | |
34 * @param {string} script | |
35 */ | |
36 InspectorAgent.Dispatcher.prototype.evaluateForTestInFrontend = function(testCal lId, script) {}; | |
37 /** | |
38 * @param {RuntimeAgent.RemoteObject} object | |
39 * @param {!Object} hints | |
40 */ | |
41 InspectorAgent.Dispatcher.prototype.inspect = function(object, hints) {}; | |
42 /** | |
43 * @param {string} reason | |
44 */ | |
45 InspectorAgent.Dispatcher.prototype.detached = function(reason) {}; | |
46 InspectorAgent.Dispatcher.prototype.targetCrashed = function() {}; | |
47 /** | |
48 * @param {InspectorAgent.Dispatcher} dispatcher | |
49 */ | |
50 InspectorBackend.registerInspectorDispatcher = function(dispatcher) {} | |
51 | |
52 | |
53 | |
54 var MemoryAgent = {}; | |
55 | |
56 /** | |
57 * @param {function(?Protocol.Error, number, number, number):void=} opt_callback | |
58 */ | |
59 MemoryAgent.getDOMCounters = function(opt_callback) {} | |
60 /** @param {function(?Protocol.Error, number, number, number):void=} opt_callbac k */ | |
61 MemoryAgent.getDOMCounters.invoke = function(obj, opt_callback) {} | |
62 /** @interface */ | |
63 MemoryAgent.Dispatcher = function() {}; | |
64 /** | |
65 * @param {MemoryAgent.Dispatcher} dispatcher | |
66 */ | |
67 InspectorBackend.registerMemoryDispatcher = function(dispatcher) {} | |
68 | |
69 | |
70 | |
71 var PageAgent = {}; | |
72 | |
73 /** @enum {string} */ | |
74 PageAgent.ResourceType = { | |
75 Document: "Document", | |
76 Stylesheet: "Stylesheet", | |
77 Image: "Image", | |
78 Font: "Font", | |
79 Script: "Script", | |
80 XHR: "XHR", | |
81 WebSocket: "WebSocket", | |
82 Other: "Other" | |
83 }; | |
84 | |
85 /** @typedef {string} */ | |
86 PageAgent.FrameId; | |
87 | |
88 /** @typedef {!{id:(string), parentId:(string|undefined), loaderId:(NetworkAgent .LoaderId), name:(string|undefined), url:(string), securityOrigin:(string), mime Type:(string)}} */ | |
89 PageAgent.Frame; | |
90 | |
91 /** @typedef {!{frame:(PageAgent.Frame), childFrames:(!Array.<PageAgent.FrameRes ourceTree>|undefined), resources:(!Array.<!Object>)}} */ | |
92 PageAgent.FrameResourceTree; | |
93 | |
94 /** @typedef {!{lineNumber:(number), lineContent:(string)}} */ | |
95 PageAgent.SearchMatch; | |
96 | |
97 /** @typedef {!{name:(string), value:(string), domain:(string), path:(string), e xpires:(number), size:(number), httpOnly:(boolean), secure:(boolean), session:(b oolean)}} */ | |
98 PageAgent.Cookie; | |
99 | |
100 /** @typedef {string} */ | |
101 PageAgent.ScriptIdentifier; | |
102 | |
103 /** @typedef {!{id:(number), url:(string), title:(string)}} */ | |
104 PageAgent.NavigationEntry; | |
105 | |
106 /** @typedef {!{temporary:(number), persistent:(number)}} */ | |
107 PageAgent.Quota; | |
108 | |
109 /** @typedef {!{temporary:(!Array.<PageAgent.UsageItem>), persistent:(!Array.<Pa geAgent.UsageItem>), syncable:(!Array.<PageAgent.UsageItem>)}} */ | |
110 PageAgent.Usage; | |
111 | |
112 /** @enum {string} */ | |
113 PageAgent.UsageItemId = { | |
114 Filesystem: "filesystem", | |
115 Database: "database", | |
116 Appcache: "appcache", | |
117 Indexeddatabase: "indexeddatabase" | |
118 }; | |
119 | |
120 /** @typedef {!{id:(PageAgent.UsageItemId), value:(number)}} */ | |
121 PageAgent.UsageItem; | |
122 | |
123 /** @typedef {!{deviceScaleFactor:(number), viewport:(DOMAgent.Rect), offsetTop: (number|undefined), offsetBottom:(number|undefined), pageScaleFactor:(number), p ageScaleFactorMin:(number), pageScaleFactorMax:(number)}} */ | |
124 PageAgent.ScreencastFrameMetadata; | |
125 | |
126 /** | |
127 * @param {function(?Protocol.Error):void=} opt_callback | |
128 */ | |
129 PageAgent.enable = function(opt_callback) {} | |
130 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
131 PageAgent.enable.invoke = function(obj, opt_callback) {} | |
132 | |
133 /** | |
134 * @param {function(?Protocol.Error):void=} opt_callback | |
135 */ | |
136 PageAgent.disable = function(opt_callback) {} | |
137 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
138 PageAgent.disable.invoke = function(obj, opt_callback) {} | |
139 | |
140 /** | |
141 * @param {string} scriptSource | |
142 * @param {function(?Protocol.Error, PageAgent.ScriptIdentifier):void=} opt_call back | |
143 */ | |
144 PageAgent.addScriptToEvaluateOnLoad = function(scriptSource, opt_callback) {} | |
145 /** @param {function(?Protocol.Error, PageAgent.ScriptIdentifier):void=} opt_cal lback */ | |
146 PageAgent.addScriptToEvaluateOnLoad.invoke = function(obj, opt_callback) {} | |
147 | |
148 /** | |
149 * @param {PageAgent.ScriptIdentifier} identifier | |
150 * @param {function(?Protocol.Error):void=} opt_callback | |
151 */ | |
152 PageAgent.removeScriptToEvaluateOnLoad = function(identifier, opt_callback) {} | |
153 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
154 PageAgent.removeScriptToEvaluateOnLoad.invoke = function(obj, opt_callback) {} | |
155 | |
156 /** | |
157 * @param {boolean=} opt_ignoreCache | |
158 * @param {string=} opt_scriptToEvaluateOnLoad | |
159 * @param {string=} opt_scriptPreprocessor | |
160 * @param {function(?Protocol.Error):void=} opt_callback | |
161 */ | |
162 PageAgent.reload = function(opt_ignoreCache, opt_scriptToEvaluateOnLoad, opt_scr iptPreprocessor, opt_callback) {} | |
163 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
164 PageAgent.reload.invoke = function(obj, opt_callback) {} | |
165 | |
166 /** | |
167 * @param {string} url | |
168 * @param {function(?Protocol.Error):void=} opt_callback | |
169 */ | |
170 PageAgent.navigate = function(url, opt_callback) {} | |
171 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
172 PageAgent.navigate.invoke = function(obj, opt_callback) {} | |
173 | |
174 /** | |
175 * @param {function(?Protocol.Error, number, !Array.<PageAgent.NavigationEntry>) :void=} opt_callback | |
176 */ | |
177 PageAgent.getNavigationHistory = function(opt_callback) {} | |
178 /** @param {function(?Protocol.Error, number, !Array.<PageAgent.NavigationEntry> ):void=} opt_callback */ | |
179 PageAgent.getNavigationHistory.invoke = function(obj, opt_callback) {} | |
180 | |
181 /** | |
182 * @param {number} entryId | |
183 * @param {function(?Protocol.Error):void=} opt_callback | |
184 */ | |
185 PageAgent.navigateToHistoryEntry = function(entryId, opt_callback) {} | |
186 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
187 PageAgent.navigateToHistoryEntry.invoke = function(obj, opt_callback) {} | |
188 | |
189 /** | |
190 * @param {function(?Protocol.Error, !Array.<PageAgent.Cookie>):void=} opt_callb ack | |
191 */ | |
192 PageAgent.getCookies = function(opt_callback) {} | |
193 /** @param {function(?Protocol.Error, !Array.<PageAgent.Cookie>):void=} opt_call back */ | |
194 PageAgent.getCookies.invoke = function(obj, opt_callback) {} | |
195 | |
196 /** | |
197 * @param {string} cookieName | |
198 * @param {string} url | |
199 * @param {function(?Protocol.Error):void=} opt_callback | |
200 */ | |
201 PageAgent.deleteCookie = function(cookieName, url, opt_callback) {} | |
202 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
203 PageAgent.deleteCookie.invoke = function(obj, opt_callback) {} | |
204 | |
205 /** | |
206 * @param {function(?Protocol.Error, PageAgent.FrameResourceTree):void=} opt_cal lback | |
207 */ | |
208 PageAgent.getResourceTree = function(opt_callback) {} | |
209 /** @param {function(?Protocol.Error, PageAgent.FrameResourceTree):void=} opt_ca llback */ | |
210 PageAgent.getResourceTree.invoke = function(obj, opt_callback) {} | |
211 | |
212 /** | |
213 * @param {PageAgent.FrameId} frameId | |
214 * @param {string} url | |
215 * @param {function(?Protocol.Error, string, boolean):void=} opt_callback | |
216 */ | |
217 PageAgent.getResourceContent = function(frameId, url, opt_callback) {} | |
218 /** @param {function(?Protocol.Error, string, boolean):void=} opt_callback */ | |
219 PageAgent.getResourceContent.invoke = function(obj, opt_callback) {} | |
220 | |
221 /** | |
222 * @param {PageAgent.FrameId} frameId | |
223 * @param {string} url | |
224 * @param {string} query | |
225 * @param {boolean=} opt_caseSensitive | |
226 * @param {boolean=} opt_isRegex | |
227 * @param {function(?Protocol.Error, !Array.<PageAgent.SearchMatch>):void=} opt_ callback | |
228 */ | |
229 PageAgent.searchInResource = function(frameId, url, query, opt_caseSensitive, op t_isRegex, opt_callback) {} | |
230 /** @param {function(?Protocol.Error, !Array.<PageAgent.SearchMatch>):void=} opt _callback */ | |
231 PageAgent.searchInResource.invoke = function(obj, opt_callback) {} | |
232 | |
233 /** | |
234 * @param {PageAgent.FrameId} frameId | |
235 * @param {string} html | |
236 * @param {function(?Protocol.Error):void=} opt_callback | |
237 */ | |
238 PageAgent.setDocumentContent = function(frameId, html, opt_callback) {} | |
239 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
240 PageAgent.setDocumentContent.invoke = function(obj, opt_callback) {} | |
241 | |
242 /** | |
243 * @param {number} width | |
244 * @param {number} height | |
245 * @param {number} deviceScaleFactor | |
246 * @param {boolean} emulateViewport | |
247 * @param {boolean} fitWindow | |
248 * @param {boolean=} opt_textAutosizing | |
249 * @param {number=} opt_fontScaleFactor | |
250 * @param {function(?Protocol.Error):void=} opt_callback | |
251 */ | |
252 PageAgent.setDeviceMetricsOverride = function(width, height, deviceScaleFactor, emulateViewport, fitWindow, opt_textAutosizing, opt_fontScaleFactor, opt_callbac k) {} | |
253 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
254 PageAgent.setDeviceMetricsOverride.invoke = function(obj, opt_callback) {} | |
255 | |
256 /** | |
257 * @param {boolean} result | |
258 * @param {function(?Protocol.Error):void=} opt_callback | |
259 */ | |
260 PageAgent.setShowPaintRects = function(result, opt_callback) {} | |
261 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
262 PageAgent.setShowPaintRects.invoke = function(obj, opt_callback) {} | |
263 | |
264 /** | |
265 * @param {boolean} show | |
266 * @param {function(?Protocol.Error):void=} opt_callback | |
267 */ | |
268 PageAgent.setShowDebugBorders = function(show, opt_callback) {} | |
269 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
270 PageAgent.setShowDebugBorders.invoke = function(obj, opt_callback) {} | |
271 | |
272 /** | |
273 * @param {boolean} show | |
274 * @param {function(?Protocol.Error):void=} opt_callback | |
275 */ | |
276 PageAgent.setShowFPSCounter = function(show, opt_callback) {} | |
277 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
278 PageAgent.setShowFPSCounter.invoke = function(obj, opt_callback) {} | |
279 | |
280 /** | |
281 * @param {boolean} enabled | |
282 * @param {function(?Protocol.Error):void=} opt_callback | |
283 */ | |
284 PageAgent.setContinuousPaintingEnabled = function(enabled, opt_callback) {} | |
285 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
286 PageAgent.setContinuousPaintingEnabled.invoke = function(obj, opt_callback) {} | |
287 | |
288 /** | |
289 * @param {boolean} show | |
290 * @param {function(?Protocol.Error):void=} opt_callback | |
291 */ | |
292 PageAgent.setShowScrollBottleneckRects = function(show, opt_callback) {} | |
293 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
294 PageAgent.setShowScrollBottleneckRects.invoke = function(obj, opt_callback) {} | |
295 | |
296 /** | |
297 * @param {function(?Protocol.Error, string):void=} opt_callback | |
298 */ | |
299 PageAgent.getScriptExecutionStatus = function(opt_callback) {} | |
300 /** @param {function(?Protocol.Error, string):void=} opt_callback */ | |
301 PageAgent.getScriptExecutionStatus.invoke = function(obj, opt_callback) {} | |
302 | |
303 /** | |
304 * @param {boolean} value | |
305 * @param {function(?Protocol.Error):void=} opt_callback | |
306 */ | |
307 PageAgent.setScriptExecutionDisabled = function(value, opt_callback) {} | |
308 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
309 PageAgent.setScriptExecutionDisabled.invoke = function(obj, opt_callback) {} | |
310 | |
311 /** | |
312 * @param {number=} opt_latitude | |
313 * @param {number=} opt_longitude | |
314 * @param {number=} opt_accuracy | |
315 * @param {function(?Protocol.Error):void=} opt_callback | |
316 */ | |
317 PageAgent.setGeolocationOverride = function(opt_latitude, opt_longitude, opt_acc uracy, opt_callback) {} | |
318 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
319 PageAgent.setGeolocationOverride.invoke = function(obj, opt_callback) {} | |
320 | |
321 /** | |
322 * @param {function(?Protocol.Error):void=} opt_callback | |
323 */ | |
324 PageAgent.clearGeolocationOverride = function(opt_callback) {} | |
325 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
326 PageAgent.clearGeolocationOverride.invoke = function(obj, opt_callback) {} | |
327 | |
328 /** | |
329 * @param {number} alpha | |
330 * @param {number} beta | |
331 * @param {number} gamma | |
332 * @param {function(?Protocol.Error):void=} opt_callback | |
333 */ | |
334 PageAgent.setDeviceOrientationOverride = function(alpha, beta, gamma, opt_callba ck) {} | |
335 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
336 PageAgent.setDeviceOrientationOverride.invoke = function(obj, opt_callback) {} | |
337 | |
338 /** | |
339 * @param {function(?Protocol.Error):void=} opt_callback | |
340 */ | |
341 PageAgent.clearDeviceOrientationOverride = function(opt_callback) {} | |
342 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
343 PageAgent.clearDeviceOrientationOverride.invoke = function(obj, opt_callback) {} | |
344 | |
345 /** | |
346 * @param {boolean} enabled | |
347 * @param {function(?Protocol.Error):void=} opt_callback | |
348 */ | |
349 PageAgent.setTouchEmulationEnabled = function(enabled, opt_callback) {} | |
350 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
351 PageAgent.setTouchEmulationEnabled.invoke = function(obj, opt_callback) {} | |
352 | |
353 /** | |
354 * @param {string} media | |
355 * @param {function(?Protocol.Error):void=} opt_callback | |
356 */ | |
357 PageAgent.setEmulatedMedia = function(media, opt_callback) {} | |
358 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
359 PageAgent.setEmulatedMedia.invoke = function(obj, opt_callback) {} | |
360 | |
361 /** | |
362 * @param {string=} opt_format | |
363 * @param {number=} opt_quality | |
364 * @param {number=} opt_maxWidth | |
365 * @param {number=} opt_maxHeight | |
366 * @param {function(?Protocol.Error, string, PageAgent.ScreencastFrameMetadata): void=} opt_callback | |
367 */ | |
368 PageAgent.captureScreenshot = function(opt_format, opt_quality, opt_maxWidth, op t_maxHeight, opt_callback) {} | |
369 /** @param {function(?Protocol.Error, string, PageAgent.ScreencastFrameMetadata) :void=} opt_callback */ | |
370 PageAgent.captureScreenshot.invoke = function(obj, opt_callback) {} | |
371 | |
372 /** | |
373 * @param {function(?Protocol.Error, boolean):void=} opt_callback | |
374 */ | |
375 PageAgent.canScreencast = function(opt_callback) {} | |
376 /** @param {function(?Protocol.Error, boolean):void=} opt_callback */ | |
377 PageAgent.canScreencast.invoke = function(obj, opt_callback) {} | |
378 | |
379 /** | |
380 * @param {string=} opt_format | |
381 * @param {number=} opt_quality | |
382 * @param {number=} opt_maxWidth | |
383 * @param {number=} opt_maxHeight | |
384 * @param {function(?Protocol.Error):void=} opt_callback | |
385 */ | |
386 PageAgent.startScreencast = function(opt_format, opt_quality, opt_maxWidth, opt_ maxHeight, opt_callback) {} | |
387 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
388 PageAgent.startScreencast.invoke = function(obj, opt_callback) {} | |
389 | |
390 /** | |
391 * @param {function(?Protocol.Error):void=} opt_callback | |
392 */ | |
393 PageAgent.stopScreencast = function(opt_callback) {} | |
394 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
395 PageAgent.stopScreencast.invoke = function(obj, opt_callback) {} | |
396 | |
397 /** | |
398 * @param {boolean} accept | |
399 * @param {string=} opt_promptText | |
400 * @param {function(?Protocol.Error):void=} opt_callback | |
401 */ | |
402 PageAgent.handleJavaScriptDialog = function(accept, opt_promptText, opt_callback ) {} | |
403 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
404 PageAgent.handleJavaScriptDialog.invoke = function(obj, opt_callback) {} | |
405 | |
406 /** | |
407 * @param {boolean} show | |
408 * @param {boolean=} opt_showGrid | |
409 * @param {function(?Protocol.Error):void=} opt_callback | |
410 */ | |
411 PageAgent.setShowViewportSizeOnResize = function(show, opt_showGrid, opt_callbac k) {} | |
412 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
413 PageAgent.setShowViewportSizeOnResize.invoke = function(obj, opt_callback) {} | |
414 | |
415 /** | |
416 * @param {string} securityOrigin | |
417 * @param {function(?Protocol.Error, PageAgent.Quota, PageAgent.Usage):void=} op t_callback | |
418 */ | |
419 PageAgent.queryUsageAndQuota = function(securityOrigin, opt_callback) {} | |
420 /** @param {function(?Protocol.Error, PageAgent.Quota, PageAgent.Usage):void=} o pt_callback */ | |
421 PageAgent.queryUsageAndQuota.invoke = function(obj, opt_callback) {} | |
422 /** @interface */ | |
423 PageAgent.Dispatcher = function() {}; | |
424 /** | |
425 * @param {number} timestamp | |
426 */ | |
427 PageAgent.Dispatcher.prototype.domContentEventFired = function(timestamp) {}; | |
428 /** | |
429 * @param {number} timestamp | |
430 */ | |
431 PageAgent.Dispatcher.prototype.loadEventFired = function(timestamp) {}; | |
432 /** | |
433 * @param {PageAgent.FrameId} frameId | |
434 * @param {PageAgent.FrameId} parentFrameId | |
435 */ | |
436 PageAgent.Dispatcher.prototype.frameAttached = function(frameId, parentFrameId) {}; | |
437 /** | |
438 * @param {PageAgent.Frame} frame | |
439 */ | |
440 PageAgent.Dispatcher.prototype.frameNavigated = function(frame) {}; | |
441 /** | |
442 * @param {PageAgent.FrameId} frameId | |
443 */ | |
444 PageAgent.Dispatcher.prototype.frameDetached = function(frameId) {}; | |
445 /** | |
446 * @param {PageAgent.FrameId} frameId | |
447 */ | |
448 PageAgent.Dispatcher.prototype.frameStartedLoading = function(frameId) {}; | |
449 /** | |
450 * @param {PageAgent.FrameId} frameId | |
451 */ | |
452 PageAgent.Dispatcher.prototype.frameStoppedLoading = function(frameId) {}; | |
453 /** | |
454 * @param {PageAgent.FrameId} frameId | |
455 * @param {number} delay | |
456 */ | |
457 PageAgent.Dispatcher.prototype.frameScheduledNavigation = function(frameId, dela y) {}; | |
458 /** | |
459 * @param {PageAgent.FrameId} frameId | |
460 */ | |
461 PageAgent.Dispatcher.prototype.frameClearedScheduledNavigation = function(frameI d) {}; | |
462 PageAgent.Dispatcher.prototype.frameResized = function() {}; | |
463 /** | |
464 * @param {string} message | |
465 */ | |
466 PageAgent.Dispatcher.prototype.javascriptDialogOpening = function(message) {}; | |
467 PageAgent.Dispatcher.prototype.javascriptDialogClosed = function() {}; | |
468 /** | |
469 * @param {boolean} isEnabled | |
470 */ | |
471 PageAgent.Dispatcher.prototype.scriptsEnabled = function(isEnabled) {}; | |
472 /** | |
473 * @param {string} data | |
474 * @param {PageAgent.ScreencastFrameMetadata} metadata | |
475 */ | |
476 PageAgent.Dispatcher.prototype.screencastFrame = function(data, metadata) {}; | |
477 /** | |
478 * @param {boolean} visible | |
479 */ | |
480 PageAgent.Dispatcher.prototype.screencastVisibilityChanged = function(visible) { }; | |
481 /** | |
482 * @param {PageAgent.Dispatcher} dispatcher | |
483 */ | |
484 InspectorBackend.registerPageDispatcher = function(dispatcher) {} | |
485 | |
486 | |
487 | |
488 var RuntimeAgent = {}; | |
489 | |
490 /** @typedef {string} */ | |
491 RuntimeAgent.RemoteObjectId; | |
492 | |
493 /** @enum {string} */ | |
494 RuntimeAgent.RemoteObjectType = { | |
495 Object: "object", | |
496 Function: "function", | |
497 Undefined: "undefined", | |
498 String: "string", | |
499 Number: "number", | |
500 Boolean: "boolean" | |
501 }; | |
502 | |
503 /** @enum {string} */ | |
504 RuntimeAgent.RemoteObjectSubtype = { | |
505 Array: "array", | |
506 Null: "null", | |
507 Node: "node", | |
508 Regexp: "regexp", | |
509 Date: "date" | |
510 }; | |
511 | |
512 /** @typedef {!{type:(RuntimeAgent.RemoteObjectType), subtype:(RuntimeAgent.Remo teObjectSubtype|undefined), className:(string|undefined), value:(*|undefined), d escription:(string|undefined), objectId:(RuntimeAgent.RemoteObjectId|undefined), preview:(RuntimeAgent.ObjectPreview|undefined)}} */ | |
513 RuntimeAgent.RemoteObject; | |
514 | |
515 /** @typedef {!{lossless:(boolean), overflow:(boolean), properties:(!Array.<Runt imeAgent.PropertyPreview>)}} */ | |
516 RuntimeAgent.ObjectPreview; | |
517 | |
518 /** @enum {string} */ | |
519 RuntimeAgent.PropertyPreviewType = { | |
520 Object: "object", | |
521 Function: "function", | |
522 Undefined: "undefined", | |
523 String: "string", | |
524 Number: "number", | |
525 Boolean: "boolean", | |
526 Accessor: "accessor" | |
527 }; | |
528 | |
529 /** @enum {string} */ | |
530 RuntimeAgent.PropertyPreviewSubtype = { | |
531 Array: "array", | |
532 Null: "null", | |
533 Node: "node", | |
534 Regexp: "regexp", | |
535 Date: "date" | |
536 }; | |
537 | |
538 /** @typedef {!{name:(string), type:(RuntimeAgent.PropertyPreviewType), value:(s tring|undefined), valuePreview:(RuntimeAgent.ObjectPreview|undefined), subtype:( RuntimeAgent.PropertyPreviewSubtype|undefined)}} */ | |
539 RuntimeAgent.PropertyPreview; | |
540 | |
541 /** @typedef {!{name:(string), value:(RuntimeAgent.RemoteObject|undefined), writ able:(boolean|undefined), get:(RuntimeAgent.RemoteObject|undefined), set:(Runtim eAgent.RemoteObject|undefined), configurable:(boolean), enumerable:(boolean), wa sThrown:(boolean|undefined), isOwn:(boolean|undefined)}} */ | |
542 RuntimeAgent.PropertyDescriptor; | |
543 | |
544 /** @typedef {!{name:(string), value:(RuntimeAgent.RemoteObject|undefined)}} */ | |
545 RuntimeAgent.InternalPropertyDescriptor; | |
546 | |
547 /** @typedef {!{value:(*|undefined), objectId:(RuntimeAgent.RemoteObjectId|undef ined)}} */ | |
548 RuntimeAgent.CallArgument; | |
549 | |
550 /** @typedef {number} */ | |
551 RuntimeAgent.ExecutionContextId; | |
552 | |
553 /** @typedef {!{id:(RuntimeAgent.ExecutionContextId), isPageContext:(boolean), n ame:(string), frameId:(PageAgent.FrameId)}} */ | |
554 RuntimeAgent.ExecutionContextDescription; | |
555 | |
556 /** | |
557 * @param {string} expression | |
558 * @param {string=} opt_objectGroup | |
559 * @param {boolean=} opt_includeCommandLineAPI | |
560 * @param {boolean=} opt_doNotPauseOnExceptionsAndMuteConsole | |
561 * @param {RuntimeAgent.ExecutionContextId=} opt_contextId | |
562 * @param {boolean=} opt_returnByValue | |
563 * @param {boolean=} opt_generatePreview | |
564 * @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void=} opt_callback | |
565 */ | |
566 RuntimeAgent.evaluate = function(expression, opt_objectGroup, opt_includeCommand LineAPI, opt_doNotPauseOnExceptionsAndMuteConsole, opt_contextId, opt_returnByVa lue, opt_generatePreview, opt_callback) {} | |
567 /** @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void= } opt_callback */ | |
568 RuntimeAgent.evaluate.invoke = function(obj, opt_callback) {} | |
569 | |
570 /** | |
571 * @param {RuntimeAgent.RemoteObjectId} objectId | |
572 * @param {string} functionDeclaration | |
573 * @param {!Array.<RuntimeAgent.CallArgument>=} opt_arguments | |
574 * @param {boolean=} opt_doNotPauseOnExceptionsAndMuteConsole | |
575 * @param {boolean=} opt_returnByValue | |
576 * @param {boolean=} opt_generatePreview | |
577 * @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void=} opt_callback | |
578 */ | |
579 RuntimeAgent.callFunctionOn = function(objectId, functionDeclaration, opt_argume nts, opt_doNotPauseOnExceptionsAndMuteConsole, opt_returnByValue, opt_generatePr eview, opt_callback) {} | |
580 /** @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void= } opt_callback */ | |
581 RuntimeAgent.callFunctionOn.invoke = function(obj, opt_callback) {} | |
582 | |
583 /** | |
584 * @param {RuntimeAgent.RemoteObjectId} objectId | |
585 * @param {boolean=} opt_ownProperties | |
586 * @param {boolean=} opt_accessorPropertiesOnly | |
587 * @param {function(?Protocol.Error, !Array.<RuntimeAgent.PropertyDescriptor>, ! Array.<RuntimeAgent.InternalPropertyDescriptor>=):void=} opt_callback | |
588 */ | |
589 RuntimeAgent.getProperties = function(objectId, opt_ownProperties, opt_accessorP ropertiesOnly, opt_callback) {} | |
590 /** @param {function(?Protocol.Error, !Array.<RuntimeAgent.PropertyDescriptor>, !Array.<RuntimeAgent.InternalPropertyDescriptor>=):void=} opt_callback */ | |
591 RuntimeAgent.getProperties.invoke = function(obj, opt_callback) {} | |
592 | |
593 /** | |
594 * @param {RuntimeAgent.RemoteObjectId} objectId | |
595 * @param {function(?Protocol.Error):void=} opt_callback | |
596 */ | |
597 RuntimeAgent.releaseObject = function(objectId, opt_callback) {} | |
598 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
599 RuntimeAgent.releaseObject.invoke = function(obj, opt_callback) {} | |
600 | |
601 /** | |
602 * @param {string} objectGroup | |
603 * @param {function(?Protocol.Error):void=} opt_callback | |
604 */ | |
605 RuntimeAgent.releaseObjectGroup = function(objectGroup, opt_callback) {} | |
606 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
607 RuntimeAgent.releaseObjectGroup.invoke = function(obj, opt_callback) {} | |
608 | |
609 /** | |
610 * @param {function(?Protocol.Error):void=} opt_callback | |
611 */ | |
612 RuntimeAgent.run = function(opt_callback) {} | |
613 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
614 RuntimeAgent.run.invoke = function(obj, opt_callback) {} | |
615 | |
616 /** | |
617 * @param {function(?Protocol.Error):void=} opt_callback | |
618 */ | |
619 RuntimeAgent.enable = function(opt_callback) {} | |
620 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
621 RuntimeAgent.enable.invoke = function(obj, opt_callback) {} | |
622 | |
623 /** | |
624 * @param {function(?Protocol.Error):void=} opt_callback | |
625 */ | |
626 RuntimeAgent.disable = function(opt_callback) {} | |
627 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
628 RuntimeAgent.disable.invoke = function(obj, opt_callback) {} | |
629 /** @interface */ | |
630 RuntimeAgent.Dispatcher = function() {}; | |
631 /** | |
632 * @param {RuntimeAgent.ExecutionContextDescription} context | |
633 */ | |
634 RuntimeAgent.Dispatcher.prototype.executionContextCreated = function(context) {} ; | |
635 /** | |
636 * @param {RuntimeAgent.Dispatcher} dispatcher | |
637 */ | |
638 InspectorBackend.registerRuntimeDispatcher = function(dispatcher) {} | |
639 | |
640 | |
641 | |
642 var ConsoleAgent = {}; | |
643 | |
644 /** @typedef {number} */ | |
645 ConsoleAgent.Timestamp; | |
646 | |
647 /** @enum {string} */ | |
648 ConsoleAgent.ConsoleMessageSource = { | |
649 XML: "xml", | |
650 Javascript: "javascript", | |
651 Network: "network", | |
652 ConsoleAPI: "console-api", | |
653 Storage: "storage", | |
654 Appcache: "appcache", | |
655 Rendering: "rendering", | |
656 Css: "css", | |
657 Security: "security", | |
658 Other: "other", | |
659 Deprecation: "deprecation" | |
660 }; | |
661 | |
662 /** @enum {string} */ | |
663 ConsoleAgent.ConsoleMessageLevel = { | |
664 Log: "log", | |
665 Warning: "warning", | |
666 Error: "error", | |
667 Debug: "debug", | |
668 Info: "info" | |
669 }; | |
670 | |
671 /** @enum {string} */ | |
672 ConsoleAgent.ConsoleMessageType = { | |
673 Log: "log", | |
674 Dir: "dir", | |
675 DirXML: "dirxml", | |
676 Table: "table", | |
677 Trace: "trace", | |
678 Clear: "clear", | |
679 StartGroup: "startGroup", | |
680 StartGroupCollapsed: "startGroupCollapsed", | |
681 EndGroup: "endGroup", | |
682 Assert: "assert", | |
683 Profile: "profile", | |
684 ProfileEnd: "profileEnd" | |
685 }; | |
686 | |
687 /** @typedef {!{source:(ConsoleAgent.ConsoleMessageSource), level:(ConsoleAgent. ConsoleMessageLevel), text:(string), type:(ConsoleAgent.ConsoleMessageType|undef ined), url:(string|undefined), line:(number|undefined), column:(number|undefined ), repeatCount:(number|undefined), parameters:(!Array.<RuntimeAgent.RemoteObject >|undefined), stackTrace:(ConsoleAgent.StackTrace|undefined), networkRequestId:( NetworkAgent.RequestId|undefined), timestamp:(ConsoleAgent.Timestamp)}} */ | |
688 ConsoleAgent.ConsoleMessage; | |
689 | |
690 /** @typedef {!{functionName:(string), scriptId:(string), url:(string), lineNumb er:(number), columnNumber:(number)}} */ | |
691 ConsoleAgent.CallFrame; | |
692 | |
693 /** @typedef {!Array.<!ConsoleAgent.CallFrame>} */ | |
694 ConsoleAgent.StackTrace; | |
695 | |
696 /** | |
697 * @param {function(?Protocol.Error):void=} opt_callback | |
698 */ | |
699 ConsoleAgent.enable = function(opt_callback) {} | |
700 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
701 ConsoleAgent.enable.invoke = function(obj, opt_callback) {} | |
702 | |
703 /** | |
704 * @param {function(?Protocol.Error):void=} opt_callback | |
705 */ | |
706 ConsoleAgent.disable = function(opt_callback) {} | |
707 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
708 ConsoleAgent.disable.invoke = function(obj, opt_callback) {} | |
709 | |
710 /** | |
711 * @param {function(?Protocol.Error):void=} opt_callback | |
712 */ | |
713 ConsoleAgent.clearMessages = function(opt_callback) {} | |
714 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
715 ConsoleAgent.clearMessages.invoke = function(obj, opt_callback) {} | |
716 | |
717 /** | |
718 * @param {boolean} enabled | |
719 * @param {function(?Protocol.Error):void=} opt_callback | |
720 */ | |
721 ConsoleAgent.setMonitoringXHREnabled = function(enabled, opt_callback) {} | |
722 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
723 ConsoleAgent.setMonitoringXHREnabled.invoke = function(obj, opt_callback) {} | |
724 | |
725 /** | |
726 * @param {DOMAgent.NodeId} nodeId | |
727 * @param {function(?Protocol.Error):void=} opt_callback | |
728 */ | |
729 ConsoleAgent.addInspectedNode = function(nodeId, opt_callback) {} | |
730 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
731 ConsoleAgent.addInspectedNode.invoke = function(obj, opt_callback) {} | |
732 | |
733 /** | |
734 * @param {number} heapObjectId | |
735 * @param {function(?Protocol.Error):void=} opt_callback | |
736 */ | |
737 ConsoleAgent.addInspectedHeapObject = function(heapObjectId, opt_callback) {} | |
738 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
739 ConsoleAgent.addInspectedHeapObject.invoke = function(obj, opt_callback) {} | |
740 /** @interface */ | |
741 ConsoleAgent.Dispatcher = function() {}; | |
742 /** | |
743 * @param {ConsoleAgent.ConsoleMessage} message | |
744 */ | |
745 ConsoleAgent.Dispatcher.prototype.messageAdded = function(message) {}; | |
746 /** | |
747 * @param {number} count | |
748 * @param {ConsoleAgent.Timestamp} timestamp | |
749 */ | |
750 ConsoleAgent.Dispatcher.prototype.messageRepeatCountUpdated = function(count, ti mestamp) {}; | |
751 ConsoleAgent.Dispatcher.prototype.messagesCleared = function() {}; | |
752 /** | |
753 * @param {ConsoleAgent.Dispatcher} dispatcher | |
754 */ | |
755 InspectorBackend.registerConsoleDispatcher = function(dispatcher) {} | |
756 | |
757 | |
758 | |
759 var NetworkAgent = {}; | |
760 | |
761 /** @typedef {string} */ | |
762 NetworkAgent.LoaderId; | |
763 | |
764 /** @typedef {string} */ | |
765 NetworkAgent.RequestId; | |
766 | |
767 /** @typedef {number} */ | |
768 NetworkAgent.Timestamp; | |
769 | |
770 /** @typedef {!Object} */ | |
771 NetworkAgent.Headers; | |
772 | |
773 /** @typedef {!{requestTime:(number), proxyStart:(number), proxyEnd:(number), dn sStart:(number), dnsEnd:(number), connectStart:(number), connectEnd:(number), ss lStart:(number), sslEnd:(number), sendStart:(number), sendEnd:(number), receiveH eadersEnd:(number)}} */ | |
774 NetworkAgent.ResourceTiming; | |
775 | |
776 /** @typedef {!{url:(string), method:(string), headers:(NetworkAgent.Headers), p ostData:(string|undefined)}} */ | |
777 NetworkAgent.Request; | |
778 | |
779 /** @typedef {!{url:(string), status:(number), statusText:(string), headers:(Net workAgent.Headers), headersText:(string|undefined), mimeType:(string), requestHe aders:(NetworkAgent.Headers|undefined), requestHeadersText:(string|undefined), c onnectionReused:(boolean), connectionId:(number), remoteIPAddress:(string|undefi ned), remotePort:(number|undefined), fromDiskCache:(boolean|undefined), timing:( NetworkAgent.ResourceTiming|undefined)}} */ | |
780 NetworkAgent.Response; | |
781 | |
782 /** @typedef {!{headers:(NetworkAgent.Headers)}} */ | |
783 NetworkAgent.WebSocketRequest; | |
784 | |
785 /** @typedef {!{status:(number), statusText:(string), headers:(NetworkAgent.Head ers)}} */ | |
786 NetworkAgent.WebSocketResponse; | |
787 | |
788 /** @typedef {!{opcode:(number), mask:(boolean), payloadData:(string)}} */ | |
789 NetworkAgent.WebSocketFrame; | |
790 | |
791 /** @typedef {!{url:(string), type:(PageAgent.ResourceType), response:(NetworkAg ent.Response|undefined), bodySize:(number)}} */ | |
792 NetworkAgent.CachedResource; | |
793 | |
794 /** @enum {string} */ | |
795 NetworkAgent.InitiatorType = { | |
796 Parser: "parser", | |
797 Script: "script", | |
798 Other: "other" | |
799 }; | |
800 | |
801 /** @typedef {!{type:(NetworkAgent.InitiatorType), stackTrace:(ConsoleAgent.Stac kTrace|undefined), url:(string|undefined), lineNumber:(number|undefined)}} */ | |
802 NetworkAgent.Initiator; | |
803 | |
804 /** | |
805 * @param {function(?Protocol.Error):void=} opt_callback | |
806 */ | |
807 NetworkAgent.enable = function(opt_callback) {} | |
808 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
809 NetworkAgent.enable.invoke = function(obj, opt_callback) {} | |
810 | |
811 /** | |
812 * @param {function(?Protocol.Error):void=} opt_callback | |
813 */ | |
814 NetworkAgent.disable = function(opt_callback) {} | |
815 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
816 NetworkAgent.disable.invoke = function(obj, opt_callback) {} | |
817 | |
818 /** | |
819 * @param {string} userAgent | |
820 * @param {function(?Protocol.Error):void=} opt_callback | |
821 */ | |
822 NetworkAgent.setUserAgentOverride = function(userAgent, opt_callback) {} | |
823 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
824 NetworkAgent.setUserAgentOverride.invoke = function(obj, opt_callback) {} | |
825 | |
826 /** | |
827 * @param {NetworkAgent.Headers} headers | |
828 * @param {function(?Protocol.Error):void=} opt_callback | |
829 */ | |
830 NetworkAgent.setExtraHTTPHeaders = function(headers, opt_callback) {} | |
831 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
832 NetworkAgent.setExtraHTTPHeaders.invoke = function(obj, opt_callback) {} | |
833 | |
834 /** | |
835 * @param {NetworkAgent.RequestId} requestId | |
836 * @param {function(?Protocol.Error, string, boolean):void=} opt_callback | |
837 */ | |
838 NetworkAgent.getResponseBody = function(requestId, opt_callback) {} | |
839 /** @param {function(?Protocol.Error, string, boolean):void=} opt_callback */ | |
840 NetworkAgent.getResponseBody.invoke = function(obj, opt_callback) {} | |
841 | |
842 /** | |
843 * @param {NetworkAgent.RequestId} requestId | |
844 * @param {function(?Protocol.Error):void=} opt_callback | |
845 */ | |
846 NetworkAgent.replayXHR = function(requestId, opt_callback) {} | |
847 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
848 NetworkAgent.replayXHR.invoke = function(obj, opt_callback) {} | |
849 | |
850 /** | |
851 * @param {function(?Protocol.Error, boolean):void=} opt_callback | |
852 */ | |
853 NetworkAgent.canClearBrowserCache = function(opt_callback) {} | |
854 /** @param {function(?Protocol.Error, boolean):void=} opt_callback */ | |
855 NetworkAgent.canClearBrowserCache.invoke = function(obj, opt_callback) {} | |
856 | |
857 /** | |
858 * @param {function(?Protocol.Error):void=} opt_callback | |
859 */ | |
860 NetworkAgent.clearBrowserCache = function(opt_callback) {} | |
861 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
862 NetworkAgent.clearBrowserCache.invoke = function(obj, opt_callback) {} | |
863 | |
864 /** | |
865 * @param {function(?Protocol.Error, boolean):void=} opt_callback | |
866 */ | |
867 NetworkAgent.canClearBrowserCookies = function(opt_callback) {} | |
868 /** @param {function(?Protocol.Error, boolean):void=} opt_callback */ | |
869 NetworkAgent.canClearBrowserCookies.invoke = function(obj, opt_callback) {} | |
870 | |
871 /** | |
872 * @param {function(?Protocol.Error):void=} opt_callback | |
873 */ | |
874 NetworkAgent.clearBrowserCookies = function(opt_callback) {} | |
875 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
876 NetworkAgent.clearBrowserCookies.invoke = function(obj, opt_callback) {} | |
877 | |
878 /** | |
879 * @param {boolean} cacheDisabled | |
880 * @param {function(?Protocol.Error):void=} opt_callback | |
881 */ | |
882 NetworkAgent.setCacheDisabled = function(cacheDisabled, opt_callback) {} | |
883 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
884 NetworkAgent.setCacheDisabled.invoke = function(obj, opt_callback) {} | |
885 | |
886 /** | |
887 * @param {PageAgent.FrameId} frameId | |
888 * @param {string} url | |
889 * @param {NetworkAgent.Headers=} opt_requestHeaders | |
890 * @param {function(?Protocol.Error, number, NetworkAgent.Headers, string):void= } opt_callback | |
891 */ | |
892 NetworkAgent.loadResourceForFrontend = function(frameId, url, opt_requestHeaders , opt_callback) {} | |
893 /** @param {function(?Protocol.Error, number, NetworkAgent.Headers, string):void =} opt_callback */ | |
894 NetworkAgent.loadResourceForFrontend.invoke = function(obj, opt_callback) {} | |
895 /** @interface */ | |
896 NetworkAgent.Dispatcher = function() {}; | |
897 /** | |
898 * @param {NetworkAgent.RequestId} requestId | |
899 * @param {PageAgent.FrameId} frameId | |
900 * @param {NetworkAgent.LoaderId} loaderId | |
901 * @param {string} documentURL | |
902 * @param {NetworkAgent.Request} request | |
903 * @param {NetworkAgent.Timestamp} timestamp | |
904 * @param {NetworkAgent.Initiator} initiator | |
905 * @param {NetworkAgent.Response=} opt_redirectResponse | |
906 */ | |
907 NetworkAgent.Dispatcher.prototype.requestWillBeSent = function(requestId, frameI d, loaderId, documentURL, request, timestamp, initiator, opt_redirectResponse) { }; | |
908 /** | |
909 * @param {NetworkAgent.RequestId} requestId | |
910 */ | |
911 NetworkAgent.Dispatcher.prototype.requestServedFromCache = function(requestId) { }; | |
912 /** | |
913 * @param {NetworkAgent.RequestId} requestId | |
914 * @param {PageAgent.FrameId} frameId | |
915 * @param {NetworkAgent.LoaderId} loaderId | |
916 * @param {NetworkAgent.Timestamp} timestamp | |
917 * @param {PageAgent.ResourceType} type | |
918 * @param {NetworkAgent.Response} response | |
919 */ | |
920 NetworkAgent.Dispatcher.prototype.responseReceived = function(requestId, frameId , loaderId, timestamp, type, response) {}; | |
921 /** | |
922 * @param {NetworkAgent.RequestId} requestId | |
923 * @param {NetworkAgent.Timestamp} timestamp | |
924 * @param {number} dataLength | |
925 * @param {number} encodedDataLength | |
926 */ | |
927 NetworkAgent.Dispatcher.prototype.dataReceived = function(requestId, timestamp, dataLength, encodedDataLength) {}; | |
928 /** | |
929 * @param {NetworkAgent.RequestId} requestId | |
930 * @param {NetworkAgent.Timestamp} timestamp | |
931 */ | |
932 NetworkAgent.Dispatcher.prototype.loadingFinished = function(requestId, timestam p) {}; | |
933 /** | |
934 * @param {NetworkAgent.RequestId} requestId | |
935 * @param {NetworkAgent.Timestamp} timestamp | |
936 * @param {string} errorText | |
937 * @param {boolean=} opt_canceled | |
938 */ | |
939 NetworkAgent.Dispatcher.prototype.loadingFailed = function(requestId, timestamp, errorText, opt_canceled) {}; | |
940 /** | |
941 * @param {NetworkAgent.RequestId} requestId | |
942 * @param {NetworkAgent.Timestamp} timestamp | |
943 * @param {NetworkAgent.WebSocketRequest} request | |
944 */ | |
945 NetworkAgent.Dispatcher.prototype.webSocketWillSendHandshakeRequest = function(r equestId, timestamp, request) {}; | |
946 /** | |
947 * @param {NetworkAgent.RequestId} requestId | |
948 * @param {NetworkAgent.Timestamp} timestamp | |
949 * @param {NetworkAgent.WebSocketResponse} response | |
950 */ | |
951 NetworkAgent.Dispatcher.prototype.webSocketHandshakeResponseReceived = function( requestId, timestamp, response) {}; | |
952 /** | |
953 * @param {NetworkAgent.RequestId} requestId | |
954 * @param {string} url | |
955 */ | |
956 NetworkAgent.Dispatcher.prototype.webSocketCreated = function(requestId, url) {} ; | |
957 /** | |
958 * @param {NetworkAgent.RequestId} requestId | |
959 * @param {NetworkAgent.Timestamp} timestamp | |
960 */ | |
961 NetworkAgent.Dispatcher.prototype.webSocketClosed = function(requestId, timestam p) {}; | |
962 /** | |
963 * @param {NetworkAgent.RequestId} requestId | |
964 * @param {NetworkAgent.Timestamp} timestamp | |
965 * @param {NetworkAgent.WebSocketFrame} response | |
966 */ | |
967 NetworkAgent.Dispatcher.prototype.webSocketFrameReceived = function(requestId, t imestamp, response) {}; | |
968 /** | |
969 * @param {NetworkAgent.RequestId} requestId | |
970 * @param {NetworkAgent.Timestamp} timestamp | |
971 * @param {string} errorMessage | |
972 */ | |
973 NetworkAgent.Dispatcher.prototype.webSocketFrameError = function(requestId, time stamp, errorMessage) {}; | |
974 /** | |
975 * @param {NetworkAgent.RequestId} requestId | |
976 * @param {NetworkAgent.Timestamp} timestamp | |
977 * @param {NetworkAgent.WebSocketFrame} response | |
978 */ | |
979 NetworkAgent.Dispatcher.prototype.webSocketFrameSent = function(requestId, times tamp, response) {}; | |
980 /** | |
981 * @param {NetworkAgent.Dispatcher} dispatcher | |
982 */ | |
983 InspectorBackend.registerNetworkDispatcher = function(dispatcher) {} | |
984 | |
985 | |
986 | |
987 var DatabaseAgent = {}; | |
988 | |
989 /** @typedef {string} */ | |
990 DatabaseAgent.DatabaseId; | |
991 | |
992 /** @typedef {!{id:(DatabaseAgent.DatabaseId), domain:(string), name:(string), v ersion:(string)}} */ | |
993 DatabaseAgent.Database; | |
994 | |
995 /** @typedef {!{message:(string), code:(number)}} */ | |
996 DatabaseAgent.Error; | |
997 | |
998 /** | |
999 * @param {function(?Protocol.Error):void=} opt_callback | |
1000 */ | |
1001 DatabaseAgent.enable = function(opt_callback) {} | |
1002 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1003 DatabaseAgent.enable.invoke = function(obj, opt_callback) {} | |
1004 | |
1005 /** | |
1006 * @param {function(?Protocol.Error):void=} opt_callback | |
1007 */ | |
1008 DatabaseAgent.disable = function(opt_callback) {} | |
1009 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1010 DatabaseAgent.disable.invoke = function(obj, opt_callback) {} | |
1011 | |
1012 /** | |
1013 * @param {DatabaseAgent.DatabaseId} databaseId | |
1014 * @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback | |
1015 */ | |
1016 DatabaseAgent.getDatabaseTableNames = function(databaseId, opt_callback) {} | |
1017 /** @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback */ | |
1018 DatabaseAgent.getDatabaseTableNames.invoke = function(obj, opt_callback) {} | |
1019 | |
1020 /** | |
1021 * @param {DatabaseAgent.DatabaseId} databaseId | |
1022 * @param {string} query | |
1023 * @param {function(?Protocol.Error, !Array.<string>=, !Array.<*>=, DatabaseAgen t.Error=):void=} opt_callback | |
1024 */ | |
1025 DatabaseAgent.executeSQL = function(databaseId, query, opt_callback) {} | |
1026 /** @param {function(?Protocol.Error, !Array.<string>=, !Array.<*>=, DatabaseAge nt.Error=):void=} opt_callback */ | |
1027 DatabaseAgent.executeSQL.invoke = function(obj, opt_callback) {} | |
1028 /** @interface */ | |
1029 DatabaseAgent.Dispatcher = function() {}; | |
1030 /** | |
1031 * @param {DatabaseAgent.Database} database | |
1032 */ | |
1033 DatabaseAgent.Dispatcher.prototype.addDatabase = function(database) {}; | |
1034 /** | |
1035 * @param {DatabaseAgent.Dispatcher} dispatcher | |
1036 */ | |
1037 InspectorBackend.registerDatabaseDispatcher = function(dispatcher) {} | |
1038 | |
1039 | |
1040 | |
1041 var IndexedDBAgent = {}; | |
1042 | |
1043 /** @typedef {!{name:(string), version:(string), intVersion:(number), objectStor es:(!Array.<IndexedDBAgent.ObjectStore>)}} */ | |
1044 IndexedDBAgent.DatabaseWithObjectStores; | |
1045 | |
1046 /** @typedef {!{name:(string), keyPath:(IndexedDBAgent.KeyPath), autoIncrement:( boolean), indexes:(!Array.<IndexedDBAgent.ObjectStoreIndex>)}} */ | |
1047 IndexedDBAgent.ObjectStore; | |
1048 | |
1049 /** @typedef {!{name:(string), keyPath:(IndexedDBAgent.KeyPath), unique:(boolean ), multiEntry:(boolean)}} */ | |
1050 IndexedDBAgent.ObjectStoreIndex; | |
1051 | |
1052 /** @enum {string} */ | |
1053 IndexedDBAgent.KeyType = { | |
1054 Number: "number", | |
1055 String: "string", | |
1056 Date: "date", | |
1057 Array: "array" | |
1058 }; | |
1059 | |
1060 /** @typedef {!{type:(IndexedDBAgent.KeyType), number:(number|undefined), string :(string|undefined), date:(number|undefined), array:(!Array.<IndexedDBAgent.Key> |undefined)}} */ | |
1061 IndexedDBAgent.Key; | |
1062 | |
1063 /** @typedef {!{lower:(IndexedDBAgent.Key|undefined), upper:(IndexedDBAgent.Key| undefined), lowerOpen:(boolean), upperOpen:(boolean)}} */ | |
1064 IndexedDBAgent.KeyRange; | |
1065 | |
1066 /** @typedef {!{key:(RuntimeAgent.RemoteObject), primaryKey:(RuntimeAgent.Remote Object), value:(RuntimeAgent.RemoteObject)}} */ | |
1067 IndexedDBAgent.DataEntry; | |
1068 | |
1069 /** @enum {string} */ | |
1070 IndexedDBAgent.KeyPathType = { | |
1071 Null: "null", | |
1072 String: "string", | |
1073 Array: "array" | |
1074 }; | |
1075 | |
1076 /** @typedef {!{type:(IndexedDBAgent.KeyPathType), string:(string|undefined), ar ray:(!Array.<string>|undefined)}} */ | |
1077 IndexedDBAgent.KeyPath; | |
1078 | |
1079 /** | |
1080 * @param {function(?Protocol.Error):void=} opt_callback | |
1081 */ | |
1082 IndexedDBAgent.enable = function(opt_callback) {} | |
1083 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1084 IndexedDBAgent.enable.invoke = function(obj, opt_callback) {} | |
1085 | |
1086 /** | |
1087 * @param {function(?Protocol.Error):void=} opt_callback | |
1088 */ | |
1089 IndexedDBAgent.disable = function(opt_callback) {} | |
1090 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1091 IndexedDBAgent.disable.invoke = function(obj, opt_callback) {} | |
1092 | |
1093 /** | |
1094 * @param {string} securityOrigin | |
1095 * @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback | |
1096 */ | |
1097 IndexedDBAgent.requestDatabaseNames = function(securityOrigin, opt_callback) {} | |
1098 /** @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback */ | |
1099 IndexedDBAgent.requestDatabaseNames.invoke = function(obj, opt_callback) {} | |
1100 | |
1101 /** | |
1102 * @param {string} securityOrigin | |
1103 * @param {string} databaseName | |
1104 * @param {function(?Protocol.Error, IndexedDBAgent.DatabaseWithObjectStores):vo id=} opt_callback | |
1105 */ | |
1106 IndexedDBAgent.requestDatabase = function(securityOrigin, databaseName, opt_call back) {} | |
1107 /** @param {function(?Protocol.Error, IndexedDBAgent.DatabaseWithObjectStores):v oid=} opt_callback */ | |
1108 IndexedDBAgent.requestDatabase.invoke = function(obj, opt_callback) {} | |
1109 | |
1110 /** | |
1111 * @param {string} securityOrigin | |
1112 * @param {string} databaseName | |
1113 * @param {string} objectStoreName | |
1114 * @param {string} indexName | |
1115 * @param {number} skipCount | |
1116 * @param {number} pageSize | |
1117 * @param {IndexedDBAgent.KeyRange=} opt_keyRange | |
1118 * @param {function(?Protocol.Error, !Array.<IndexedDBAgent.DataEntry>, boolean) :void=} opt_callback | |
1119 */ | |
1120 IndexedDBAgent.requestData = function(securityOrigin, databaseName, objectStoreN ame, indexName, skipCount, pageSize, opt_keyRange, opt_callback) {} | |
1121 /** @param {function(?Protocol.Error, !Array.<IndexedDBAgent.DataEntry>, boolean ):void=} opt_callback */ | |
1122 IndexedDBAgent.requestData.invoke = function(obj, opt_callback) {} | |
1123 | |
1124 /** | |
1125 * @param {string} securityOrigin | |
1126 * @param {string} databaseName | |
1127 * @param {string} objectStoreName | |
1128 * @param {function(?Protocol.Error):void=} opt_callback | |
1129 */ | |
1130 IndexedDBAgent.clearObjectStore = function(securityOrigin, databaseName, objectS toreName, opt_callback) {} | |
1131 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1132 IndexedDBAgent.clearObjectStore.invoke = function(obj, opt_callback) {} | |
1133 /** @interface */ | |
1134 IndexedDBAgent.Dispatcher = function() {}; | |
1135 /** | |
1136 * @param {IndexedDBAgent.Dispatcher} dispatcher | |
1137 */ | |
1138 InspectorBackend.registerIndexedDBDispatcher = function(dispatcher) {} | |
1139 | |
1140 | |
1141 | |
1142 var DOMStorageAgent = {}; | |
1143 | |
1144 /** @typedef {!{securityOrigin:(string), isLocalStorage:(boolean)}} */ | |
1145 DOMStorageAgent.StorageId; | |
1146 | |
1147 /** @typedef {!Array.<!string>} */ | |
1148 DOMStorageAgent.Item; | |
1149 | |
1150 /** | |
1151 * @param {function(?Protocol.Error):void=} opt_callback | |
1152 */ | |
1153 DOMStorageAgent.enable = function(opt_callback) {} | |
1154 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1155 DOMStorageAgent.enable.invoke = function(obj, opt_callback) {} | |
1156 | |
1157 /** | |
1158 * @param {function(?Protocol.Error):void=} opt_callback | |
1159 */ | |
1160 DOMStorageAgent.disable = function(opt_callback) {} | |
1161 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1162 DOMStorageAgent.disable.invoke = function(obj, opt_callback) {} | |
1163 | |
1164 /** | |
1165 * @param {DOMStorageAgent.StorageId} storageId | |
1166 * @param {function(?Protocol.Error, !Array.<DOMStorageAgent.Item>):void=} opt_c allback | |
1167 */ | |
1168 DOMStorageAgent.getDOMStorageItems = function(storageId, opt_callback) {} | |
1169 /** @param {function(?Protocol.Error, !Array.<DOMStorageAgent.Item>):void=} opt_ callback */ | |
1170 DOMStorageAgent.getDOMStorageItems.invoke = function(obj, opt_callback) {} | |
1171 | |
1172 /** | |
1173 * @param {DOMStorageAgent.StorageId} storageId | |
1174 * @param {string} key | |
1175 * @param {string} value | |
1176 * @param {function(?Protocol.Error):void=} opt_callback | |
1177 */ | |
1178 DOMStorageAgent.setDOMStorageItem = function(storageId, key, value, opt_callback ) {} | |
1179 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1180 DOMStorageAgent.setDOMStorageItem.invoke = function(obj, opt_callback) {} | |
1181 | |
1182 /** | |
1183 * @param {DOMStorageAgent.StorageId} storageId | |
1184 * @param {string} key | |
1185 * @param {function(?Protocol.Error):void=} opt_callback | |
1186 */ | |
1187 DOMStorageAgent.removeDOMStorageItem = function(storageId, key, opt_callback) {} | |
1188 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1189 DOMStorageAgent.removeDOMStorageItem.invoke = function(obj, opt_callback) {} | |
1190 /** @interface */ | |
1191 DOMStorageAgent.Dispatcher = function() {}; | |
1192 /** | |
1193 * @param {DOMStorageAgent.StorageId} storageId | |
1194 */ | |
1195 DOMStorageAgent.Dispatcher.prototype.domStorageItemsCleared = function(storageId ) {}; | |
1196 /** | |
1197 * @param {DOMStorageAgent.StorageId} storageId | |
1198 * @param {string} key | |
1199 */ | |
1200 DOMStorageAgent.Dispatcher.prototype.domStorageItemRemoved = function(storageId, key) {}; | |
1201 /** | |
1202 * @param {DOMStorageAgent.StorageId} storageId | |
1203 * @param {string} key | |
1204 * @param {string} newValue | |
1205 */ | |
1206 DOMStorageAgent.Dispatcher.prototype.domStorageItemAdded = function(storageId, k ey, newValue) {}; | |
1207 /** | |
1208 * @param {DOMStorageAgent.StorageId} storageId | |
1209 * @param {string} key | |
1210 * @param {string} oldValue | |
1211 * @param {string} newValue | |
1212 */ | |
1213 DOMStorageAgent.Dispatcher.prototype.domStorageItemUpdated = function(storageId, key, oldValue, newValue) {}; | |
1214 /** | |
1215 * @param {DOMStorageAgent.Dispatcher} dispatcher | |
1216 */ | |
1217 InspectorBackend.registerDOMStorageDispatcher = function(dispatcher) {} | |
1218 | |
1219 | |
1220 | |
1221 var ApplicationCacheAgent = {}; | |
1222 | |
1223 /** @typedef {!{url:(string), size:(number), type:(string)}} */ | |
1224 ApplicationCacheAgent.ApplicationCacheResource; | |
1225 | |
1226 /** @typedef {!{manifestURL:(string), size:(number), creationTime:(number), upda teTime:(number), resources:(!Array.<ApplicationCacheAgent.ApplicationCacheResour ce>)}} */ | |
1227 ApplicationCacheAgent.ApplicationCache; | |
1228 | |
1229 /** @typedef {!{frameId:(PageAgent.FrameId), manifestURL:(string), status:(numbe r)}} */ | |
1230 ApplicationCacheAgent.FrameWithManifest; | |
1231 | |
1232 /** | |
1233 * @param {function(?Protocol.Error, !Array.<ApplicationCacheAgent.FrameWithMani fest>):void=} opt_callback | |
1234 */ | |
1235 ApplicationCacheAgent.getFramesWithManifests = function(opt_callback) {} | |
1236 /** @param {function(?Protocol.Error, !Array.<ApplicationCacheAgent.FrameWithMan ifest>):void=} opt_callback */ | |
1237 ApplicationCacheAgent.getFramesWithManifests.invoke = function(obj, opt_callback ) {} | |
1238 | |
1239 /** | |
1240 * @param {function(?Protocol.Error):void=} opt_callback | |
1241 */ | |
1242 ApplicationCacheAgent.enable = function(opt_callback) {} | |
1243 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1244 ApplicationCacheAgent.enable.invoke = function(obj, opt_callback) {} | |
1245 | |
1246 /** | |
1247 * @param {PageAgent.FrameId} frameId | |
1248 * @param {function(?Protocol.Error, string):void=} opt_callback | |
1249 */ | |
1250 ApplicationCacheAgent.getManifestForFrame = function(frameId, opt_callback) {} | |
1251 /** @param {function(?Protocol.Error, string):void=} opt_callback */ | |
1252 ApplicationCacheAgent.getManifestForFrame.invoke = function(obj, opt_callback) { } | |
1253 | |
1254 /** | |
1255 * @param {PageAgent.FrameId} frameId | |
1256 * @param {function(?Protocol.Error, ApplicationCacheAgent.ApplicationCache):voi d=} opt_callback | |
1257 */ | |
1258 ApplicationCacheAgent.getApplicationCacheForFrame = function(frameId, opt_callba ck) {} | |
1259 /** @param {function(?Protocol.Error, ApplicationCacheAgent.ApplicationCache):vo id=} opt_callback */ | |
1260 ApplicationCacheAgent.getApplicationCacheForFrame.invoke = function(obj, opt_cal lback) {} | |
1261 /** @interface */ | |
1262 ApplicationCacheAgent.Dispatcher = function() {}; | |
1263 /** | |
1264 * @param {PageAgent.FrameId} frameId | |
1265 * @param {string} manifestURL | |
1266 * @param {number} status | |
1267 */ | |
1268 ApplicationCacheAgent.Dispatcher.prototype.applicationCacheStatusUpdated = funct ion(frameId, manifestURL, status) {}; | |
1269 /** | |
1270 * @param {boolean} isNowOnline | |
1271 */ | |
1272 ApplicationCacheAgent.Dispatcher.prototype.networkStateUpdated = function(isNowO nline) {}; | |
1273 /** | |
1274 * @param {ApplicationCacheAgent.Dispatcher} dispatcher | |
1275 */ | |
1276 InspectorBackend.registerApplicationCacheDispatcher = function(dispatcher) {} | |
1277 | |
1278 | |
1279 | |
1280 var FileSystemAgent = {}; | |
1281 | |
1282 /** @typedef {!{url:(string), name:(string), isDirectory:(boolean), mimeType:(st ring|undefined), resourceType:(PageAgent.ResourceType|undefined), isTextFile:(bo olean|undefined)}} */ | |
1283 FileSystemAgent.Entry; | |
1284 | |
1285 /** @typedef {!{modificationTime:(number), size:(number)}} */ | |
1286 FileSystemAgent.Metadata; | |
1287 | |
1288 /** | |
1289 * @param {function(?Protocol.Error):void=} opt_callback | |
1290 */ | |
1291 FileSystemAgent.enable = function(opt_callback) {} | |
1292 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1293 FileSystemAgent.enable.invoke = function(obj, opt_callback) {} | |
1294 | |
1295 /** | |
1296 * @param {function(?Protocol.Error):void=} opt_callback | |
1297 */ | |
1298 FileSystemAgent.disable = function(opt_callback) {} | |
1299 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1300 FileSystemAgent.disable.invoke = function(obj, opt_callback) {} | |
1301 | |
1302 /** | |
1303 * @param {string} origin | |
1304 * @param {string} type | |
1305 * @param {function(?Protocol.Error, number, FileSystemAgent.Entry=):void=} opt_ callback | |
1306 */ | |
1307 FileSystemAgent.requestFileSystemRoot = function(origin, type, opt_callback) {} | |
1308 /** @param {function(?Protocol.Error, number, FileSystemAgent.Entry=):void=} opt _callback */ | |
1309 FileSystemAgent.requestFileSystemRoot.invoke = function(obj, opt_callback) {} | |
1310 | |
1311 /** | |
1312 * @param {string} url | |
1313 * @param {function(?Protocol.Error, number, !Array.<FileSystemAgent.Entry>=):vo id=} opt_callback | |
1314 */ | |
1315 FileSystemAgent.requestDirectoryContent = function(url, opt_callback) {} | |
1316 /** @param {function(?Protocol.Error, number, !Array.<FileSystemAgent.Entry>=):v oid=} opt_callback */ | |
1317 FileSystemAgent.requestDirectoryContent.invoke = function(obj, opt_callback) {} | |
1318 | |
1319 /** | |
1320 * @param {string} url | |
1321 * @param {function(?Protocol.Error, number, FileSystemAgent.Metadata=):void=} o pt_callback | |
1322 */ | |
1323 FileSystemAgent.requestMetadata = function(url, opt_callback) {} | |
1324 /** @param {function(?Protocol.Error, number, FileSystemAgent.Metadata=):void=} opt_callback */ | |
1325 FileSystemAgent.requestMetadata.invoke = function(obj, opt_callback) {} | |
1326 | |
1327 /** | |
1328 * @param {string} url | |
1329 * @param {boolean} readAsText | |
1330 * @param {number=} opt_start | |
1331 * @param {number=} opt_end | |
1332 * @param {string=} opt_charset | |
1333 * @param {function(?Protocol.Error, number, string=, string=):void=} opt_callba ck | |
1334 */ | |
1335 FileSystemAgent.requestFileContent = function(url, readAsText, opt_start, opt_en d, opt_charset, opt_callback) {} | |
1336 /** @param {function(?Protocol.Error, number, string=, string=):void=} opt_callb ack */ | |
1337 FileSystemAgent.requestFileContent.invoke = function(obj, opt_callback) {} | |
1338 | |
1339 /** | |
1340 * @param {string} url | |
1341 * @param {function(?Protocol.Error, number):void=} opt_callback | |
1342 */ | |
1343 FileSystemAgent.deleteEntry = function(url, opt_callback) {} | |
1344 /** @param {function(?Protocol.Error, number):void=} opt_callback */ | |
1345 FileSystemAgent.deleteEntry.invoke = function(obj, opt_callback) {} | |
1346 /** @interface */ | |
1347 FileSystemAgent.Dispatcher = function() {}; | |
1348 /** | |
1349 * @param {FileSystemAgent.Dispatcher} dispatcher | |
1350 */ | |
1351 InspectorBackend.registerFileSystemDispatcher = function(dispatcher) {} | |
1352 | |
1353 | |
1354 | |
1355 var DOMAgent = {}; | |
1356 | |
1357 /** @typedef {number} */ | |
1358 DOMAgent.NodeId; | |
1359 | |
1360 /** @typedef {number} */ | |
1361 DOMAgent.BackendNodeId; | |
1362 | |
1363 /** @enum {string} */ | |
1364 DOMAgent.PseudoType = { | |
1365 Before: "before", | |
1366 After: "after" | |
1367 }; | |
1368 | |
1369 /** @enum {string} */ | |
1370 DOMAgent.ShadowRootType = { | |
1371 UserAgent: "user-agent", | |
1372 Author: "author" | |
1373 }; | |
1374 | |
1375 /** @typedef {!{nodeId:(DOMAgent.NodeId), nodeType:(number), nodeName:(string), localName:(string), nodeValue:(string), childNodeCount:(number|undefined), child ren:(!Array.<DOMAgent.Node>|undefined), attributes:(!Array.<string>|undefined), documentURL:(string|undefined), baseURL:(string|undefined), publicId:(string|und efined), systemId:(string|undefined), internalSubset:(string|undefined), xmlVers ion:(string|undefined), name:(string|undefined), value:(string|undefined), pseud oType:(DOMAgent.PseudoType|undefined), shadowRootType:(DOMAgent.ShadowRootType|u ndefined), frameId:(PageAgent.FrameId|undefined), contentDocument:(DOMAgent.Node |undefined), shadowRoots:(!Array.<DOMAgent.Node>|undefined), templateContent:(DO MAgent.Node|undefined), pseudoElements:(!Array.<DOMAgent.Node>|undefined)}} */ | |
1376 DOMAgent.Node; | |
1377 | |
1378 /** @typedef {!{type:(string), useCapture:(boolean), isAttribute:(boolean), node Id:(DOMAgent.NodeId), handlerBody:(string), location:(DebuggerAgent.Location|und efined), sourceName:(string|undefined), handler:(RuntimeAgent.RemoteObject|undef ined)}} */ | |
1379 DOMAgent.EventListener; | |
1380 | |
1381 /** @typedef {!{r:(number), g:(number), b:(number), a:(number|undefined)}} */ | |
1382 DOMAgent.RGBA; | |
1383 | |
1384 /** @typedef {!Array.<!number>} */ | |
1385 DOMAgent.Quad; | |
1386 | |
1387 /** @typedef {!{content:(DOMAgent.Quad), padding:(DOMAgent.Quad), border:(DOMAge nt.Quad), margin:(DOMAgent.Quad), width:(number), height:(number)}} */ | |
1388 DOMAgent.BoxModel; | |
1389 | |
1390 /** @typedef {!{x:(number), y:(number), width:(number), height:(number)}} */ | |
1391 DOMAgent.Rect; | |
1392 | |
1393 /** @typedef {!{showInfo:(boolean|undefined), contentColor:(DOMAgent.RGBA|undefi ned), paddingColor:(DOMAgent.RGBA|undefined), borderColor:(DOMAgent.RGBA|undefin ed), marginColor:(DOMAgent.RGBA|undefined), eventTargetColor:(DOMAgent.RGBA|unde fined)}} */ | |
1394 DOMAgent.HighlightConfig; | |
1395 | |
1396 /** | |
1397 * @param {function(?Protocol.Error, DOMAgent.Node):void=} opt_callback | |
1398 */ | |
1399 DOMAgent.getDocument = function(opt_callback) {} | |
1400 /** @param {function(?Protocol.Error, DOMAgent.Node):void=} opt_callback */ | |
1401 DOMAgent.getDocument.invoke = function(obj, opt_callback) {} | |
1402 | |
1403 /** | |
1404 * @param {DOMAgent.NodeId} nodeId | |
1405 * @param {number=} opt_depth | |
1406 * @param {function(?Protocol.Error):void=} opt_callback | |
1407 */ | |
1408 DOMAgent.requestChildNodes = function(nodeId, opt_depth, opt_callback) {} | |
1409 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1410 DOMAgent.requestChildNodes.invoke = function(obj, opt_callback) {} | |
1411 | |
1412 /** | |
1413 * @param {DOMAgent.NodeId} nodeId | |
1414 * @param {string} selector | |
1415 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1416 */ | |
1417 DOMAgent.querySelector = function(nodeId, selector, opt_callback) {} | |
1418 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1419 DOMAgent.querySelector.invoke = function(obj, opt_callback) {} | |
1420 | |
1421 /** | |
1422 * @param {DOMAgent.NodeId} nodeId | |
1423 * @param {string} selector | |
1424 * @param {function(?Protocol.Error, !Array.<DOMAgent.NodeId>):void=} opt_callba ck | |
1425 */ | |
1426 DOMAgent.querySelectorAll = function(nodeId, selector, opt_callback) {} | |
1427 /** @param {function(?Protocol.Error, !Array.<DOMAgent.NodeId>):void=} opt_callb ack */ | |
1428 DOMAgent.querySelectorAll.invoke = function(obj, opt_callback) {} | |
1429 | |
1430 /** | |
1431 * @param {DOMAgent.NodeId} nodeId | |
1432 * @param {string} name | |
1433 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1434 */ | |
1435 DOMAgent.setNodeName = function(nodeId, name, opt_callback) {} | |
1436 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1437 DOMAgent.setNodeName.invoke = function(obj, opt_callback) {} | |
1438 | |
1439 /** | |
1440 * @param {DOMAgent.NodeId} nodeId | |
1441 * @param {string} value | |
1442 * @param {function(?Protocol.Error):void=} opt_callback | |
1443 */ | |
1444 DOMAgent.setNodeValue = function(nodeId, value, opt_callback) {} | |
1445 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1446 DOMAgent.setNodeValue.invoke = function(obj, opt_callback) {} | |
1447 | |
1448 /** | |
1449 * @param {DOMAgent.NodeId} nodeId | |
1450 * @param {function(?Protocol.Error):void=} opt_callback | |
1451 */ | |
1452 DOMAgent.removeNode = function(nodeId, opt_callback) {} | |
1453 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1454 DOMAgent.removeNode.invoke = function(obj, opt_callback) {} | |
1455 | |
1456 /** | |
1457 * @param {DOMAgent.NodeId} nodeId | |
1458 * @param {string} name | |
1459 * @param {string} value | |
1460 * @param {function(?Protocol.Error):void=} opt_callback | |
1461 */ | |
1462 DOMAgent.setAttributeValue = function(nodeId, name, value, opt_callback) {} | |
1463 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1464 DOMAgent.setAttributeValue.invoke = function(obj, opt_callback) {} | |
1465 | |
1466 /** | |
1467 * @param {DOMAgent.NodeId} nodeId | |
1468 * @param {string} text | |
1469 * @param {string=} opt_name | |
1470 * @param {function(?Protocol.Error):void=} opt_callback | |
1471 */ | |
1472 DOMAgent.setAttributesAsText = function(nodeId, text, opt_name, opt_callback) {} | |
1473 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1474 DOMAgent.setAttributesAsText.invoke = function(obj, opt_callback) {} | |
1475 | |
1476 /** | |
1477 * @param {DOMAgent.NodeId} nodeId | |
1478 * @param {string} name | |
1479 * @param {function(?Protocol.Error):void=} opt_callback | |
1480 */ | |
1481 DOMAgent.removeAttribute = function(nodeId, name, opt_callback) {} | |
1482 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1483 DOMAgent.removeAttribute.invoke = function(obj, opt_callback) {} | |
1484 | |
1485 /** | |
1486 * @param {DOMAgent.NodeId} nodeId | |
1487 * @param {string=} opt_objectGroup | |
1488 * @param {function(?Protocol.Error, !Array.<DOMAgent.EventListener>):void=} opt _callback | |
1489 */ | |
1490 DOMAgent.getEventListenersForNode = function(nodeId, opt_objectGroup, opt_callba ck) {} | |
1491 /** @param {function(?Protocol.Error, !Array.<DOMAgent.EventListener>):void=} op t_callback */ | |
1492 DOMAgent.getEventListenersForNode.invoke = function(obj, opt_callback) {} | |
1493 | |
1494 /** | |
1495 * @param {DOMAgent.NodeId} nodeId | |
1496 * @param {function(?Protocol.Error, string):void=} opt_callback | |
1497 */ | |
1498 DOMAgent.getOuterHTML = function(nodeId, opt_callback) {} | |
1499 /** @param {function(?Protocol.Error, string):void=} opt_callback */ | |
1500 DOMAgent.getOuterHTML.invoke = function(obj, opt_callback) {} | |
1501 | |
1502 /** | |
1503 * @param {DOMAgent.NodeId} nodeId | |
1504 * @param {string} outerHTML | |
1505 * @param {function(?Protocol.Error):void=} opt_callback | |
1506 */ | |
1507 DOMAgent.setOuterHTML = function(nodeId, outerHTML, opt_callback) {} | |
1508 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1509 DOMAgent.setOuterHTML.invoke = function(obj, opt_callback) {} | |
1510 | |
1511 /** | |
1512 * @param {string} query | |
1513 * @param {function(?Protocol.Error, string, number):void=} opt_callback | |
1514 */ | |
1515 DOMAgent.performSearch = function(query, opt_callback) {} | |
1516 /** @param {function(?Protocol.Error, string, number):void=} opt_callback */ | |
1517 DOMAgent.performSearch.invoke = function(obj, opt_callback) {} | |
1518 | |
1519 /** | |
1520 * @param {string} searchId | |
1521 * @param {number} fromIndex | |
1522 * @param {number} toIndex | |
1523 * @param {function(?Protocol.Error, !Array.<DOMAgent.NodeId>):void=} opt_callba ck | |
1524 */ | |
1525 DOMAgent.getSearchResults = function(searchId, fromIndex, toIndex, opt_callback) {} | |
1526 /** @param {function(?Protocol.Error, !Array.<DOMAgent.NodeId>):void=} opt_callb ack */ | |
1527 DOMAgent.getSearchResults.invoke = function(obj, opt_callback) {} | |
1528 | |
1529 /** | |
1530 * @param {string} searchId | |
1531 * @param {function(?Protocol.Error):void=} opt_callback | |
1532 */ | |
1533 DOMAgent.discardSearchResults = function(searchId, opt_callback) {} | |
1534 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1535 DOMAgent.discardSearchResults.invoke = function(obj, opt_callback) {} | |
1536 | |
1537 /** | |
1538 * @param {RuntimeAgent.RemoteObjectId} objectId | |
1539 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1540 */ | |
1541 DOMAgent.requestNode = function(objectId, opt_callback) {} | |
1542 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1543 DOMAgent.requestNode.invoke = function(obj, opt_callback) {} | |
1544 | |
1545 /** | |
1546 * @param {boolean} enabled | |
1547 * @param {boolean=} opt_inspectShadowDOM | |
1548 * @param {DOMAgent.HighlightConfig=} opt_highlightConfig | |
1549 * @param {function(?Protocol.Error):void=} opt_callback | |
1550 */ | |
1551 DOMAgent.setInspectModeEnabled = function(enabled, opt_inspectShadowDOM, opt_hig hlightConfig, opt_callback) {} | |
1552 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1553 DOMAgent.setInspectModeEnabled.invoke = function(obj, opt_callback) {} | |
1554 | |
1555 /** | |
1556 * @param {number} x | |
1557 * @param {number} y | |
1558 * @param {number} width | |
1559 * @param {number} height | |
1560 * @param {DOMAgent.RGBA=} opt_color | |
1561 * @param {DOMAgent.RGBA=} opt_outlineColor | |
1562 * @param {function(?Protocol.Error):void=} opt_callback | |
1563 */ | |
1564 DOMAgent.highlightRect = function(x, y, width, height, opt_color, opt_outlineCol or, opt_callback) {} | |
1565 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1566 DOMAgent.highlightRect.invoke = function(obj, opt_callback) {} | |
1567 | |
1568 /** | |
1569 * @param {DOMAgent.Quad} quad | |
1570 * @param {DOMAgent.RGBA=} opt_color | |
1571 * @param {DOMAgent.RGBA=} opt_outlineColor | |
1572 * @param {function(?Protocol.Error):void=} opt_callback | |
1573 */ | |
1574 DOMAgent.highlightQuad = function(quad, opt_color, opt_outlineColor, opt_callbac k) {} | |
1575 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1576 DOMAgent.highlightQuad.invoke = function(obj, opt_callback) {} | |
1577 | |
1578 /** | |
1579 * @param {DOMAgent.HighlightConfig} highlightConfig | |
1580 * @param {DOMAgent.NodeId=} opt_nodeId | |
1581 * @param {RuntimeAgent.RemoteObjectId=} opt_objectId | |
1582 * @param {function(?Protocol.Error):void=} opt_callback | |
1583 */ | |
1584 DOMAgent.highlightNode = function(highlightConfig, opt_nodeId, opt_objectId, opt _callback) {} | |
1585 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1586 DOMAgent.highlightNode.invoke = function(obj, opt_callback) {} | |
1587 | |
1588 /** | |
1589 * @param {function(?Protocol.Error):void=} opt_callback | |
1590 */ | |
1591 DOMAgent.hideHighlight = function(opt_callback) {} | |
1592 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1593 DOMAgent.hideHighlight.invoke = function(obj, opt_callback) {} | |
1594 | |
1595 /** | |
1596 * @param {PageAgent.FrameId} frameId | |
1597 * @param {DOMAgent.RGBA=} opt_contentColor | |
1598 * @param {DOMAgent.RGBA=} opt_contentOutlineColor | |
1599 * @param {function(?Protocol.Error):void=} opt_callback | |
1600 */ | |
1601 DOMAgent.highlightFrame = function(frameId, opt_contentColor, opt_contentOutline Color, opt_callback) {} | |
1602 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1603 DOMAgent.highlightFrame.invoke = function(obj, opt_callback) {} | |
1604 | |
1605 /** | |
1606 * @param {string} path | |
1607 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1608 */ | |
1609 DOMAgent.pushNodeByPathToFrontend = function(path, opt_callback) {} | |
1610 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1611 DOMAgent.pushNodeByPathToFrontend.invoke = function(obj, opt_callback) {} | |
1612 | |
1613 /** | |
1614 * @param {DOMAgent.BackendNodeId} backendNodeId | |
1615 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1616 */ | |
1617 DOMAgent.pushNodeByBackendIdToFrontend = function(backendNodeId, opt_callback) { } | |
1618 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1619 DOMAgent.pushNodeByBackendIdToFrontend.invoke = function(obj, opt_callback) {} | |
1620 | |
1621 /** | |
1622 * @param {string} nodeGroup | |
1623 * @param {function(?Protocol.Error):void=} opt_callback | |
1624 */ | |
1625 DOMAgent.releaseBackendNodeIds = function(nodeGroup, opt_callback) {} | |
1626 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1627 DOMAgent.releaseBackendNodeIds.invoke = function(obj, opt_callback) {} | |
1628 | |
1629 /** | |
1630 * @param {DOMAgent.NodeId} nodeId | |
1631 * @param {string=} opt_objectGroup | |
1632 * @param {function(?Protocol.Error, RuntimeAgent.RemoteObject):void=} opt_callb ack | |
1633 */ | |
1634 DOMAgent.resolveNode = function(nodeId, opt_objectGroup, opt_callback) {} | |
1635 /** @param {function(?Protocol.Error, RuntimeAgent.RemoteObject):void=} opt_call back */ | |
1636 DOMAgent.resolveNode.invoke = function(obj, opt_callback) {} | |
1637 | |
1638 /** | |
1639 * @param {DOMAgent.NodeId} nodeId | |
1640 * @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback | |
1641 */ | |
1642 DOMAgent.getAttributes = function(nodeId, opt_callback) {} | |
1643 /** @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback */ | |
1644 DOMAgent.getAttributes.invoke = function(obj, opt_callback) {} | |
1645 | |
1646 /** | |
1647 * @param {DOMAgent.NodeId} nodeId | |
1648 * @param {DOMAgent.NodeId} targetNodeId | |
1649 * @param {DOMAgent.NodeId=} opt_insertBeforeNodeId | |
1650 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1651 */ | |
1652 DOMAgent.moveTo = function(nodeId, targetNodeId, opt_insertBeforeNodeId, opt_cal lback) {} | |
1653 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1654 DOMAgent.moveTo.invoke = function(obj, opt_callback) {} | |
1655 | |
1656 /** | |
1657 * @param {function(?Protocol.Error):void=} opt_callback | |
1658 */ | |
1659 DOMAgent.undo = function(opt_callback) {} | |
1660 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1661 DOMAgent.undo.invoke = function(obj, opt_callback) {} | |
1662 | |
1663 /** | |
1664 * @param {function(?Protocol.Error):void=} opt_callback | |
1665 */ | |
1666 DOMAgent.redo = function(opt_callback) {} | |
1667 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1668 DOMAgent.redo.invoke = function(obj, opt_callback) {} | |
1669 | |
1670 /** | |
1671 * @param {function(?Protocol.Error):void=} opt_callback | |
1672 */ | |
1673 DOMAgent.markUndoableState = function(opt_callback) {} | |
1674 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1675 DOMAgent.markUndoableState.invoke = function(obj, opt_callback) {} | |
1676 | |
1677 /** | |
1678 * @param {DOMAgent.NodeId} nodeId | |
1679 * @param {function(?Protocol.Error):void=} opt_callback | |
1680 */ | |
1681 DOMAgent.focus = function(nodeId, opt_callback) {} | |
1682 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1683 DOMAgent.focus.invoke = function(obj, opt_callback) {} | |
1684 | |
1685 /** | |
1686 * @param {DOMAgent.NodeId} nodeId | |
1687 * @param {!Array.<string>} files | |
1688 * @param {function(?Protocol.Error):void=} opt_callback | |
1689 */ | |
1690 DOMAgent.setFileInputFiles = function(nodeId, files, opt_callback) {} | |
1691 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1692 DOMAgent.setFileInputFiles.invoke = function(obj, opt_callback) {} | |
1693 | |
1694 /** | |
1695 * @param {DOMAgent.NodeId} nodeId | |
1696 * @param {function(?Protocol.Error, DOMAgent.BoxModel):void=} opt_callback | |
1697 */ | |
1698 DOMAgent.getBoxModel = function(nodeId, opt_callback) {} | |
1699 /** @param {function(?Protocol.Error, DOMAgent.BoxModel):void=} opt_callback */ | |
1700 DOMAgent.getBoxModel.invoke = function(obj, opt_callback) {} | |
1701 | |
1702 /** | |
1703 * @param {number} x | |
1704 * @param {number} y | |
1705 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1706 */ | |
1707 DOMAgent.getNodeForLocation = function(x, y, opt_callback) {} | |
1708 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1709 DOMAgent.getNodeForLocation.invoke = function(obj, opt_callback) {} | |
1710 | |
1711 /** | |
1712 * @param {DOMAgent.NodeId} nodeId | |
1713 * @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback | |
1714 */ | |
1715 DOMAgent.getRelayoutBoundary = function(nodeId, opt_callback) {} | |
1716 /** @param {function(?Protocol.Error, DOMAgent.NodeId):void=} opt_callback */ | |
1717 DOMAgent.getRelayoutBoundary.invoke = function(obj, opt_callback) {} | |
1718 /** @interface */ | |
1719 DOMAgent.Dispatcher = function() {}; | |
1720 DOMAgent.Dispatcher.prototype.documentUpdated = function() {}; | |
1721 /** | |
1722 * @param {DOMAgent.NodeId} nodeId | |
1723 */ | |
1724 DOMAgent.Dispatcher.prototype.inspectNodeRequested = function(nodeId) {}; | |
1725 /** | |
1726 * @param {DOMAgent.NodeId} parentId | |
1727 * @param {!Array.<DOMAgent.Node>} nodes | |
1728 */ | |
1729 DOMAgent.Dispatcher.prototype.setChildNodes = function(parentId, nodes) {}; | |
1730 /** | |
1731 * @param {DOMAgent.NodeId} nodeId | |
1732 * @param {string} name | |
1733 * @param {string} value | |
1734 */ | |
1735 DOMAgent.Dispatcher.prototype.attributeModified = function(nodeId, name, value) {}; | |
1736 /** | |
1737 * @param {DOMAgent.NodeId} nodeId | |
1738 * @param {string} name | |
1739 */ | |
1740 DOMAgent.Dispatcher.prototype.attributeRemoved = function(nodeId, name) {}; | |
1741 /** | |
1742 * @param {!Array.<DOMAgent.NodeId>} nodeIds | |
1743 */ | |
1744 DOMAgent.Dispatcher.prototype.inlineStyleInvalidated = function(nodeIds) {}; | |
1745 /** | |
1746 * @param {DOMAgent.NodeId} nodeId | |
1747 * @param {string} characterData | |
1748 */ | |
1749 DOMAgent.Dispatcher.prototype.characterDataModified = function(nodeId, character Data) {}; | |
1750 /** | |
1751 * @param {DOMAgent.NodeId} nodeId | |
1752 * @param {number} childNodeCount | |
1753 */ | |
1754 DOMAgent.Dispatcher.prototype.childNodeCountUpdated = function(nodeId, childNode Count) {}; | |
1755 /** | |
1756 * @param {DOMAgent.NodeId} parentNodeId | |
1757 * @param {DOMAgent.NodeId} previousNodeId | |
1758 * @param {DOMAgent.Node} node | |
1759 */ | |
1760 DOMAgent.Dispatcher.prototype.childNodeInserted = function(parentNodeId, previou sNodeId, node) {}; | |
1761 /** | |
1762 * @param {DOMAgent.NodeId} parentNodeId | |
1763 * @param {DOMAgent.NodeId} nodeId | |
1764 */ | |
1765 DOMAgent.Dispatcher.prototype.childNodeRemoved = function(parentNodeId, nodeId) {}; | |
1766 /** | |
1767 * @param {DOMAgent.NodeId} hostId | |
1768 * @param {DOMAgent.Node} root | |
1769 */ | |
1770 DOMAgent.Dispatcher.prototype.shadowRootPushed = function(hostId, root) {}; | |
1771 /** | |
1772 * @param {DOMAgent.NodeId} hostId | |
1773 * @param {DOMAgent.NodeId} rootId | |
1774 */ | |
1775 DOMAgent.Dispatcher.prototype.shadowRootPopped = function(hostId, rootId) {}; | |
1776 /** | |
1777 * @param {DOMAgent.NodeId} parentId | |
1778 * @param {DOMAgent.Node} pseudoElement | |
1779 */ | |
1780 DOMAgent.Dispatcher.prototype.pseudoElementAdded = function(parentId, pseudoElem ent) {}; | |
1781 /** | |
1782 * @param {DOMAgent.NodeId} parentId | |
1783 * @param {DOMAgent.NodeId} pseudoElementId | |
1784 */ | |
1785 DOMAgent.Dispatcher.prototype.pseudoElementRemoved = function(parentId, pseudoEl ementId) {}; | |
1786 /** | |
1787 * @param {DOMAgent.Dispatcher} dispatcher | |
1788 */ | |
1789 InspectorBackend.registerDOMDispatcher = function(dispatcher) {} | |
1790 | |
1791 | |
1792 | |
1793 var CSSAgent = {}; | |
1794 | |
1795 /** @typedef {string} */ | |
1796 CSSAgent.StyleSheetId; | |
1797 | |
1798 /** @typedef {!{styleSheetId:(CSSAgent.StyleSheetId), ordinal:(number)}} */ | |
1799 CSSAgent.CSSStyleId; | |
1800 | |
1801 /** @enum {string} */ | |
1802 CSSAgent.StyleSheetOrigin = { | |
1803 User: "user", | |
1804 UserAgent: "user-agent", | |
1805 Inspector: "inspector", | |
1806 Regular: "regular" | |
1807 }; | |
1808 | |
1809 /** @typedef {!{styleSheetId:(CSSAgent.StyleSheetId), ordinal:(number)}} */ | |
1810 CSSAgent.CSSRuleId; | |
1811 | |
1812 /** @typedef {!{pseudoId:(number), matches:(!Array.<CSSAgent.RuleMatch>)}} */ | |
1813 CSSAgent.PseudoIdMatches; | |
1814 | |
1815 /** @typedef {!{inlineStyle:(CSSAgent.CSSStyle|undefined), matchedCSSRules:(!Arr ay.<CSSAgent.RuleMatch>)}} */ | |
1816 CSSAgent.InheritedStyleEntry; | |
1817 | |
1818 /** @typedef {!{rule:(CSSAgent.CSSRule), matchingSelectors:(!Array.<number>)}} * / | |
1819 CSSAgent.RuleMatch; | |
1820 | |
1821 /** @typedef {!{value:(string), range:(CSSAgent.SourceRange|undefined)}} */ | |
1822 CSSAgent.Selector; | |
1823 | |
1824 /** @typedef {!{selectors:(!Array.<CSSAgent.Selector>), text:(string)}} */ | |
1825 CSSAgent.SelectorList; | |
1826 | |
1827 /** @typedef {!{styleSheetId:(CSSAgent.StyleSheetId), frameId:(PageAgent.FrameId ), sourceURL:(string), sourceMapURL:(string|undefined), origin:(CSSAgent.StyleSh eetOrigin), title:(string), disabled:(boolean), hasSourceURL:(boolean|undefined) , isInline:(boolean), startLine:(number), startColumn:(number)}} */ | |
1828 CSSAgent.CSSStyleSheetHeader; | |
1829 | |
1830 /** @typedef {!{rules:(!Array.<CSSAgent.CSSRule>), text:(string|undefined)}} */ | |
1831 CSSAgent.CSSStyleSheetBody; | |
1832 | |
1833 /** @typedef {!{ruleId:(CSSAgent.CSSRuleId|undefined), selectorList:(CSSAgent.Se lectorList), sourceURL:(string|undefined), origin:(CSSAgent.StyleSheetOrigin), s tyle:(CSSAgent.CSSStyle), media:(!Array.<CSSAgent.CSSMedia>|undefined)}} */ | |
1834 CSSAgent.CSSRule; | |
1835 | |
1836 /** @typedef {!{startLine:(number), startColumn:(number), endLine:(number), endC olumn:(number)}} */ | |
1837 CSSAgent.SourceRange; | |
1838 | |
1839 /** @typedef {!{name:(string), value:(string)}} */ | |
1840 CSSAgent.ShorthandEntry; | |
1841 | |
1842 /** @typedef {!{name:(string), longhands:(!Array.<string>|undefined)}} */ | |
1843 CSSAgent.CSSPropertyInfo; | |
1844 | |
1845 /** @typedef {!{name:(string), value:(string)}} */ | |
1846 CSSAgent.CSSComputedStyleProperty; | |
1847 | |
1848 /** @typedef {!{styleId:(CSSAgent.CSSStyleId|undefined), cssProperties:(!Array.< CSSAgent.CSSProperty>), shorthandEntries:(!Array.<CSSAgent.ShorthandEntry>), css Text:(string|undefined), range:(CSSAgent.SourceRange|undefined)}} */ | |
1849 CSSAgent.CSSStyle; | |
1850 | |
1851 /** @enum {string} */ | |
1852 CSSAgent.CSSPropertyStatus = { | |
1853 Active: "active", | |
1854 Inactive: "inactive", | |
1855 Disabled: "disabled", | |
1856 Style: "style" | |
1857 }; | |
1858 | |
1859 /** @typedef {!{name:(string), value:(string), priority:(string|undefined), impl icit:(boolean|undefined), text:(string|undefined), parsedOk:(boolean|undefined), status:(CSSAgent.CSSPropertyStatus|undefined), range:(CSSAgent.SourceRange|unde fined)}} */ | |
1860 CSSAgent.CSSProperty; | |
1861 | |
1862 /** @enum {string} */ | |
1863 CSSAgent.CSSMediaSource = { | |
1864 MediaRule: "mediaRule", | |
1865 ImportRule: "importRule", | |
1866 LinkedSheet: "linkedSheet", | |
1867 InlineSheet: "inlineSheet" | |
1868 }; | |
1869 | |
1870 /** @typedef {!{text:(string), source:(CSSAgent.CSSMediaSource), sourceURL:(stri ng|undefined), range:(CSSAgent.SourceRange|undefined), parentStyleSheetId:(CSSAg ent.StyleSheetId|undefined)}} */ | |
1871 CSSAgent.CSSMedia; | |
1872 | |
1873 /** @typedef {!{familyName:(string), glyphCount:(number)}} */ | |
1874 CSSAgent.PlatformFontUsage; | |
1875 | |
1876 /** | |
1877 * @param {function(?Protocol.Error):void=} opt_callback | |
1878 */ | |
1879 CSSAgent.enable = function(opt_callback) {} | |
1880 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1881 CSSAgent.enable.invoke = function(obj, opt_callback) {} | |
1882 | |
1883 /** | |
1884 * @param {function(?Protocol.Error):void=} opt_callback | |
1885 */ | |
1886 CSSAgent.disable = function(opt_callback) {} | |
1887 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1888 CSSAgent.disable.invoke = function(obj, opt_callback) {} | |
1889 | |
1890 /** | |
1891 * @param {DOMAgent.NodeId} nodeId | |
1892 * @param {boolean=} opt_includePseudo | |
1893 * @param {boolean=} opt_includeInherited | |
1894 * @param {function(?Protocol.Error, !Array.<CSSAgent.RuleMatch>=, !Array.<CSSAg ent.PseudoIdMatches>=, !Array.<CSSAgent.InheritedStyleEntry>=):void=} opt_callba ck | |
1895 */ | |
1896 CSSAgent.getMatchedStylesForNode = function(nodeId, opt_includePseudo, opt_inclu deInherited, opt_callback) {} | |
1897 /** @param {function(?Protocol.Error, !Array.<CSSAgent.RuleMatch>=, !Array.<CSSA gent.PseudoIdMatches>=, !Array.<CSSAgent.InheritedStyleEntry>=):void=} opt_callb ack */ | |
1898 CSSAgent.getMatchedStylesForNode.invoke = function(obj, opt_callback) {} | |
1899 | |
1900 /** | |
1901 * @param {DOMAgent.NodeId} nodeId | |
1902 * @param {function(?Protocol.Error, CSSAgent.CSSStyle=, CSSAgent.CSSStyle=):voi d=} opt_callback | |
1903 */ | |
1904 CSSAgent.getInlineStylesForNode = function(nodeId, opt_callback) {} | |
1905 /** @param {function(?Protocol.Error, CSSAgent.CSSStyle=, CSSAgent.CSSStyle=):vo id=} opt_callback */ | |
1906 CSSAgent.getInlineStylesForNode.invoke = function(obj, opt_callback) {} | |
1907 | |
1908 /** | |
1909 * @param {DOMAgent.NodeId} nodeId | |
1910 * @param {function(?Protocol.Error, !Array.<CSSAgent.CSSComputedStyleProperty>) :void=} opt_callback | |
1911 */ | |
1912 CSSAgent.getComputedStyleForNode = function(nodeId, opt_callback) {} | |
1913 /** @param {function(?Protocol.Error, !Array.<CSSAgent.CSSComputedStyleProperty> ):void=} opt_callback */ | |
1914 CSSAgent.getComputedStyleForNode.invoke = function(obj, opt_callback) {} | |
1915 | |
1916 /** | |
1917 * @param {DOMAgent.NodeId} nodeId | |
1918 * @param {function(?Protocol.Error, string, !Array.<CSSAgent.PlatformFontUsage> ):void=} opt_callback | |
1919 */ | |
1920 CSSAgent.getPlatformFontsForNode = function(nodeId, opt_callback) {} | |
1921 /** @param {function(?Protocol.Error, string, !Array.<CSSAgent.PlatformFontUsage >):void=} opt_callback */ | |
1922 CSSAgent.getPlatformFontsForNode.invoke = function(obj, opt_callback) {} | |
1923 | |
1924 /** | |
1925 * @param {function(?Protocol.Error, !Array.<CSSAgent.CSSStyleSheetHeader>):void =} opt_callback | |
1926 */ | |
1927 CSSAgent.getAllStyleSheets = function(opt_callback) {} | |
1928 /** @param {function(?Protocol.Error, !Array.<CSSAgent.CSSStyleSheetHeader>):voi d=} opt_callback */ | |
1929 CSSAgent.getAllStyleSheets.invoke = function(obj, opt_callback) {} | |
1930 | |
1931 /** | |
1932 * @param {CSSAgent.StyleSheetId} styleSheetId | |
1933 * @param {function(?Protocol.Error, CSSAgent.CSSStyleSheetBody):void=} opt_call back | |
1934 */ | |
1935 CSSAgent.getStyleSheet = function(styleSheetId, opt_callback) {} | |
1936 /** @param {function(?Protocol.Error, CSSAgent.CSSStyleSheetBody):void=} opt_cal lback */ | |
1937 CSSAgent.getStyleSheet.invoke = function(obj, opt_callback) {} | |
1938 | |
1939 /** | |
1940 * @param {CSSAgent.StyleSheetId} styleSheetId | |
1941 * @param {function(?Protocol.Error, string):void=} opt_callback | |
1942 */ | |
1943 CSSAgent.getStyleSheetText = function(styleSheetId, opt_callback) {} | |
1944 /** @param {function(?Protocol.Error, string):void=} opt_callback */ | |
1945 CSSAgent.getStyleSheetText.invoke = function(obj, opt_callback) {} | |
1946 | |
1947 /** | |
1948 * @param {CSSAgent.StyleSheetId} styleSheetId | |
1949 * @param {string} text | |
1950 * @param {function(?Protocol.Error):void=} opt_callback | |
1951 */ | |
1952 CSSAgent.setStyleSheetText = function(styleSheetId, text, opt_callback) {} | |
1953 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
1954 CSSAgent.setStyleSheetText.invoke = function(obj, opt_callback) {} | |
1955 | |
1956 /** | |
1957 * @param {CSSAgent.CSSStyleId} styleId | |
1958 * @param {string} text | |
1959 * @param {function(?Protocol.Error, CSSAgent.CSSStyle):void=} opt_callback | |
1960 */ | |
1961 CSSAgent.setStyleText = function(styleId, text, opt_callback) {} | |
1962 /** @param {function(?Protocol.Error, CSSAgent.CSSStyle):void=} opt_callback */ | |
1963 CSSAgent.setStyleText.invoke = function(obj, opt_callback) {} | |
1964 | |
1965 /** | |
1966 * @param {CSSAgent.CSSStyleId} styleId | |
1967 * @param {number} propertyIndex | |
1968 * @param {string} text | |
1969 * @param {boolean} overwrite | |
1970 * @param {function(?Protocol.Error, CSSAgent.CSSStyle):void=} opt_callback | |
1971 */ | |
1972 CSSAgent.setPropertyText = function(styleId, propertyIndex, text, overwrite, opt _callback) {} | |
1973 /** @param {function(?Protocol.Error, CSSAgent.CSSStyle):void=} opt_callback */ | |
1974 CSSAgent.setPropertyText.invoke = function(obj, opt_callback) {} | |
1975 | |
1976 /** | |
1977 * @param {CSSAgent.CSSStyleId} styleId | |
1978 * @param {number} propertyIndex | |
1979 * @param {boolean} disable | |
1980 * @param {function(?Protocol.Error, CSSAgent.CSSStyle):void=} opt_callback | |
1981 */ | |
1982 CSSAgent.toggleProperty = function(styleId, propertyIndex, disable, opt_callback ) {} | |
1983 /** @param {function(?Protocol.Error, CSSAgent.CSSStyle):void=} opt_callback */ | |
1984 CSSAgent.toggleProperty.invoke = function(obj, opt_callback) {} | |
1985 | |
1986 /** | |
1987 * @param {CSSAgent.CSSRuleId} ruleId | |
1988 * @param {string} selector | |
1989 * @param {function(?Protocol.Error, CSSAgent.CSSRule):void=} opt_callback | |
1990 */ | |
1991 CSSAgent.setRuleSelector = function(ruleId, selector, opt_callback) {} | |
1992 /** @param {function(?Protocol.Error, CSSAgent.CSSRule):void=} opt_callback */ | |
1993 CSSAgent.setRuleSelector.invoke = function(obj, opt_callback) {} | |
1994 | |
1995 /** | |
1996 * @param {DOMAgent.NodeId} contextNodeId | |
1997 * @param {string} selector | |
1998 * @param {function(?Protocol.Error, CSSAgent.CSSRule):void=} opt_callback | |
1999 */ | |
2000 CSSAgent.addRule = function(contextNodeId, selector, opt_callback) {} | |
2001 /** @param {function(?Protocol.Error, CSSAgent.CSSRule):void=} opt_callback */ | |
2002 CSSAgent.addRule.invoke = function(obj, opt_callback) {} | |
2003 | |
2004 /** | |
2005 * @param {function(?Protocol.Error, !Array.<CSSAgent.CSSPropertyInfo>):void=} o pt_callback | |
2006 */ | |
2007 CSSAgent.getSupportedCSSProperties = function(opt_callback) {} | |
2008 /** @param {function(?Protocol.Error, !Array.<CSSAgent.CSSPropertyInfo>):void=} opt_callback */ | |
2009 CSSAgent.getSupportedCSSProperties.invoke = function(obj, opt_callback) {} | |
2010 | |
2011 /** | |
2012 * @param {DOMAgent.NodeId} nodeId | |
2013 * @param {!Array.<string>} forcedPseudoClasses | |
2014 * @param {function(?Protocol.Error):void=} opt_callback | |
2015 */ | |
2016 CSSAgent.forcePseudoState = function(nodeId, forcedPseudoClasses, opt_callback) {} | |
2017 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2018 CSSAgent.forcePseudoState.invoke = function(obj, opt_callback) {} | |
2019 /** @interface */ | |
2020 CSSAgent.Dispatcher = function() {}; | |
2021 CSSAgent.Dispatcher.prototype.mediaQueryResultChanged = function() {}; | |
2022 /** | |
2023 * @param {CSSAgent.StyleSheetId} styleSheetId | |
2024 */ | |
2025 CSSAgent.Dispatcher.prototype.styleSheetChanged = function(styleSheetId) {}; | |
2026 /** | |
2027 * @param {CSSAgent.CSSStyleSheetHeader} header | |
2028 */ | |
2029 CSSAgent.Dispatcher.prototype.styleSheetAdded = function(header) {}; | |
2030 /** | |
2031 * @param {CSSAgent.StyleSheetId} styleSheetId | |
2032 */ | |
2033 CSSAgent.Dispatcher.prototype.styleSheetRemoved = function(styleSheetId) {}; | |
2034 /** | |
2035 * @param {CSSAgent.Dispatcher} dispatcher | |
2036 */ | |
2037 InspectorBackend.registerCSSDispatcher = function(dispatcher) {} | |
2038 | |
2039 | |
2040 | |
2041 var TimelineAgent = {}; | |
2042 | |
2043 /** @typedef {!{documents:(number|undefined), nodes:(number|undefined), jsEventL isteners:(number|undefined), jsHeapSizeUsed:(number|undefined), gpuMemoryUsedKB: (number|undefined)}} */ | |
2044 TimelineAgent.Counters; | |
2045 | |
2046 /** @typedef {!{type:(string), data:(!Object), startTime:(number), endTime:(numb er|undefined), children:(!Array.<TimelineAgent.TimelineEvent>|undefined), thread :(string|undefined), counters:(TimelineAgent.Counters|undefined), stackTrace:(Co nsoleAgent.StackTrace|undefined), frameId:(string|undefined), usedHeapSizeDelta: (number|undefined)}} */ | |
2047 TimelineAgent.TimelineEvent; | |
2048 | |
2049 /** | |
2050 * @param {function(?Protocol.Error):void=} opt_callback | |
2051 */ | |
2052 TimelineAgent.enable = function(opt_callback) {} | |
2053 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2054 TimelineAgent.enable.invoke = function(obj, opt_callback) {} | |
2055 | |
2056 /** | |
2057 * @param {function(?Protocol.Error):void=} opt_callback | |
2058 */ | |
2059 TimelineAgent.disable = function(opt_callback) {} | |
2060 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2061 TimelineAgent.disable.invoke = function(obj, opt_callback) {} | |
2062 | |
2063 /** | |
2064 * @param {number=} opt_maxCallStackDepth | |
2065 * @param {boolean=} opt_bufferEvents | |
2066 * @param {boolean=} opt_includeCounters | |
2067 * @param {boolean=} opt_includeGPUEvents | |
2068 * @param {function(?Protocol.Error):void=} opt_callback | |
2069 */ | |
2070 TimelineAgent.start = function(opt_maxCallStackDepth, opt_bufferEvents, opt_incl udeCounters, opt_includeGPUEvents, opt_callback) {} | |
2071 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2072 TimelineAgent.start.invoke = function(obj, opt_callback) {} | |
2073 | |
2074 /** | |
2075 * @param {function(?Protocol.Error, !Array.<TimelineAgent.TimelineEvent>=):void =} opt_callback | |
2076 */ | |
2077 TimelineAgent.stop = function(opt_callback) {} | |
2078 /** @param {function(?Protocol.Error, !Array.<TimelineAgent.TimelineEvent>=):voi d=} opt_callback */ | |
2079 TimelineAgent.stop.invoke = function(obj, opt_callback) {} | |
2080 /** @interface */ | |
2081 TimelineAgent.Dispatcher = function() {}; | |
2082 /** | |
2083 * @param {TimelineAgent.TimelineEvent} record | |
2084 */ | |
2085 TimelineAgent.Dispatcher.prototype.eventRecorded = function(record) {}; | |
2086 /** | |
2087 * @param {boolean=} opt_consoleTimeline | |
2088 */ | |
2089 TimelineAgent.Dispatcher.prototype.started = function(opt_consoleTimeline) {}; | |
2090 /** | |
2091 * @param {boolean=} opt_consoleTimeline | |
2092 */ | |
2093 TimelineAgent.Dispatcher.prototype.stopped = function(opt_consoleTimeline) {}; | |
2094 /** | |
2095 * @param {TimelineAgent.Dispatcher} dispatcher | |
2096 */ | |
2097 InspectorBackend.registerTimelineDispatcher = function(dispatcher) {} | |
2098 | |
2099 | |
2100 | |
2101 var DebuggerAgent = {}; | |
2102 | |
2103 /** @typedef {string} */ | |
2104 DebuggerAgent.BreakpointId; | |
2105 | |
2106 /** @typedef {string} */ | |
2107 DebuggerAgent.ScriptId; | |
2108 | |
2109 /** @typedef {string} */ | |
2110 DebuggerAgent.CallFrameId; | |
2111 | |
2112 /** @typedef {!{scriptId:(DebuggerAgent.ScriptId), lineNumber:(number), columnNu mber:(number|undefined)}} */ | |
2113 DebuggerAgent.Location; | |
2114 | |
2115 /** @typedef {!{location:(DebuggerAgent.Location), functionName:(string), scopeC hain:(!Array.<DebuggerAgent.Scope>|undefined)}} */ | |
2116 DebuggerAgent.FunctionDetails; | |
2117 | |
2118 /** @typedef {!{callFrameId:(DebuggerAgent.CallFrameId), functionName:(string), location:(DebuggerAgent.Location), scopeChain:(!Array.<DebuggerAgent.Scope>), th is:(RuntimeAgent.RemoteObject), returnValue:(RuntimeAgent.RemoteObject|undefined )}} */ | |
2119 DebuggerAgent.CallFrame; | |
2120 | |
2121 /** @typedef {!{callFrames:(!Array.<DebuggerAgent.CallFrame>), description:(stri ng|undefined), asyncStackTrace:(DebuggerAgent.StackTrace|undefined)}} */ | |
2122 DebuggerAgent.StackTrace; | |
2123 | |
2124 /** @enum {string} */ | |
2125 DebuggerAgent.ScopeType = { | |
2126 Global: "global", | |
2127 Local: "local", | |
2128 With: "with", | |
2129 Closure: "closure", | |
2130 Catch: "catch" | |
2131 }; | |
2132 | |
2133 /** @typedef {!{type:(DebuggerAgent.ScopeType), object:(RuntimeAgent.RemoteObjec t)}} */ | |
2134 DebuggerAgent.Scope; | |
2135 | |
2136 /** @typedef {!{compileError:(!Object|undefined)}} */ | |
2137 DebuggerAgent.SetScriptSourceError; | |
2138 | |
2139 /** | |
2140 * @param {function(?Protocol.Error):void=} opt_callback | |
2141 */ | |
2142 DebuggerAgent.enable = function(opt_callback) {} | |
2143 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2144 DebuggerAgent.enable.invoke = function(obj, opt_callback) {} | |
2145 | |
2146 /** | |
2147 * @param {function(?Protocol.Error):void=} opt_callback | |
2148 */ | |
2149 DebuggerAgent.disable = function(opt_callback) {} | |
2150 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2151 DebuggerAgent.disable.invoke = function(obj, opt_callback) {} | |
2152 | |
2153 /** | |
2154 * @param {boolean} active | |
2155 * @param {function(?Protocol.Error):void=} opt_callback | |
2156 */ | |
2157 DebuggerAgent.setBreakpointsActive = function(active, opt_callback) {} | |
2158 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2159 DebuggerAgent.setBreakpointsActive.invoke = function(obj, opt_callback) {} | |
2160 | |
2161 /** | |
2162 * @param {boolean} skipped | |
2163 * @param {boolean=} opt_untilReload | |
2164 * @param {function(?Protocol.Error):void=} opt_callback | |
2165 */ | |
2166 DebuggerAgent.setSkipAllPauses = function(skipped, opt_untilReload, opt_callback ) {} | |
2167 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2168 DebuggerAgent.setSkipAllPauses.invoke = function(obj, opt_callback) {} | |
2169 | |
2170 /** | |
2171 * @param {number} lineNumber | |
2172 * @param {string=} opt_url | |
2173 * @param {string=} opt_urlRegex | |
2174 * @param {number=} opt_columnNumber | |
2175 * @param {string=} opt_condition | |
2176 * @param {boolean=} opt_isAntibreakpoint | |
2177 * @param {function(?Protocol.Error, DebuggerAgent.BreakpointId, !Array.<Debugge rAgent.Location>):void=} opt_callback | |
2178 */ | |
2179 DebuggerAgent.setBreakpointByUrl = function(lineNumber, opt_url, opt_urlRegex, o pt_columnNumber, opt_condition, opt_isAntibreakpoint, opt_callback) {} | |
2180 /** @param {function(?Protocol.Error, DebuggerAgent.BreakpointId, !Array.<Debugg erAgent.Location>):void=} opt_callback */ | |
2181 DebuggerAgent.setBreakpointByUrl.invoke = function(obj, opt_callback) {} | |
2182 | |
2183 /** | |
2184 * @param {DebuggerAgent.Location} location | |
2185 * @param {string=} opt_condition | |
2186 * @param {function(?Protocol.Error, DebuggerAgent.BreakpointId, DebuggerAgent.L ocation):void=} opt_callback | |
2187 */ | |
2188 DebuggerAgent.setBreakpoint = function(location, opt_condition, opt_callback) {} | |
2189 /** @param {function(?Protocol.Error, DebuggerAgent.BreakpointId, DebuggerAgent. Location):void=} opt_callback */ | |
2190 DebuggerAgent.setBreakpoint.invoke = function(obj, opt_callback) {} | |
2191 | |
2192 /** | |
2193 * @param {DebuggerAgent.BreakpointId} breakpointId | |
2194 * @param {function(?Protocol.Error):void=} opt_callback | |
2195 */ | |
2196 DebuggerAgent.removeBreakpoint = function(breakpointId, opt_callback) {} | |
2197 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2198 DebuggerAgent.removeBreakpoint.invoke = function(obj, opt_callback) {} | |
2199 | |
2200 /** | |
2201 * @param {DebuggerAgent.Location} location | |
2202 * @param {boolean=} opt_interstatementLocation | |
2203 * @param {function(?Protocol.Error):void=} opt_callback | |
2204 */ | |
2205 DebuggerAgent.continueToLocation = function(location, opt_interstatementLocation , opt_callback) {} | |
2206 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2207 DebuggerAgent.continueToLocation.invoke = function(obj, opt_callback) {} | |
2208 | |
2209 /** | |
2210 * @param {DebuggerAgent.CallFrameId=} opt_callFrameId | |
2211 * @param {function(?Protocol.Error):void=} opt_callback | |
2212 */ | |
2213 DebuggerAgent.stepOver = function(opt_callFrameId, opt_callback) {} | |
2214 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2215 DebuggerAgent.stepOver.invoke = function(obj, opt_callback) {} | |
2216 | |
2217 /** | |
2218 * @param {function(?Protocol.Error):void=} opt_callback | |
2219 */ | |
2220 DebuggerAgent.stepInto = function(opt_callback) {} | |
2221 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2222 DebuggerAgent.stepInto.invoke = function(obj, opt_callback) {} | |
2223 | |
2224 /** | |
2225 * @param {DebuggerAgent.CallFrameId=} opt_callFrameId | |
2226 * @param {function(?Protocol.Error):void=} opt_callback | |
2227 */ | |
2228 DebuggerAgent.stepOut = function(opt_callFrameId, opt_callback) {} | |
2229 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2230 DebuggerAgent.stepOut.invoke = function(obj, opt_callback) {} | |
2231 | |
2232 /** | |
2233 * @param {function(?Protocol.Error):void=} opt_callback | |
2234 */ | |
2235 DebuggerAgent.pause = function(opt_callback) {} | |
2236 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2237 DebuggerAgent.pause.invoke = function(obj, opt_callback) {} | |
2238 | |
2239 /** | |
2240 * @param {function(?Protocol.Error):void=} opt_callback | |
2241 */ | |
2242 DebuggerAgent.resume = function(opt_callback) {} | |
2243 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2244 DebuggerAgent.resume.invoke = function(obj, opt_callback) {} | |
2245 | |
2246 /** | |
2247 * @param {DebuggerAgent.ScriptId} scriptId | |
2248 * @param {string} query | |
2249 * @param {boolean=} opt_caseSensitive | |
2250 * @param {boolean=} opt_isRegex | |
2251 * @param {function(?Protocol.Error, !Array.<PageAgent.SearchMatch>):void=} opt_ callback | |
2252 */ | |
2253 DebuggerAgent.searchInContent = function(scriptId, query, opt_caseSensitive, opt _isRegex, opt_callback) {} | |
2254 /** @param {function(?Protocol.Error, !Array.<PageAgent.SearchMatch>):void=} opt _callback */ | |
2255 DebuggerAgent.searchInContent.invoke = function(obj, opt_callback) {} | |
2256 | |
2257 /** | |
2258 * @param {function(?Protocol.Error, boolean):void=} opt_callback | |
2259 */ | |
2260 DebuggerAgent.canSetScriptSource = function(opt_callback) {} | |
2261 /** @param {function(?Protocol.Error, boolean):void=} opt_callback */ | |
2262 DebuggerAgent.canSetScriptSource.invoke = function(obj, opt_callback) {} | |
2263 | |
2264 /** | |
2265 * @param {DebuggerAgent.ScriptId} scriptId | |
2266 * @param {string} scriptSource | |
2267 * @param {boolean=} opt_preview | |
2268 * @param {function(?Protocol.Error, DebuggerAgent.SetScriptSourceError=, !Array .<DebuggerAgent.CallFrame>=, !Object=, DebuggerAgent.StackTrace=):void=} opt_cal lback | |
2269 */ | |
2270 DebuggerAgent.setScriptSource = function(scriptId, scriptSource, opt_preview, op t_callback) {} | |
2271 /** @param {function(?Protocol.Error, DebuggerAgent.SetScriptSourceError=, !Arra y.<DebuggerAgent.CallFrame>=, !Object=, DebuggerAgent.StackTrace=):void=} opt_ca llback */ | |
2272 DebuggerAgent.setScriptSource.invoke = function(obj, opt_callback) {} | |
2273 | |
2274 /** | |
2275 * @param {DebuggerAgent.CallFrameId} callFrameId | |
2276 * @param {function(?Protocol.Error, !Array.<DebuggerAgent.CallFrame>, !Object, DebuggerAgent.StackTrace=):void=} opt_callback | |
2277 */ | |
2278 DebuggerAgent.restartFrame = function(callFrameId, opt_callback) {} | |
2279 /** @param {function(?Protocol.Error, !Array.<DebuggerAgent.CallFrame>, !Object, DebuggerAgent.StackTrace=):void=} opt_callback */ | |
2280 DebuggerAgent.restartFrame.invoke = function(obj, opt_callback) {} | |
2281 | |
2282 /** | |
2283 * @param {DebuggerAgent.ScriptId} scriptId | |
2284 * @param {function(?Protocol.Error, string):void=} opt_callback | |
2285 */ | |
2286 DebuggerAgent.getScriptSource = function(scriptId, opt_callback) {} | |
2287 /** @param {function(?Protocol.Error, string):void=} opt_callback */ | |
2288 DebuggerAgent.getScriptSource.invoke = function(obj, opt_callback) {} | |
2289 | |
2290 /** | |
2291 * @param {RuntimeAgent.RemoteObjectId} functionId | |
2292 * @param {function(?Protocol.Error, DebuggerAgent.FunctionDetails):void=} opt_c allback | |
2293 */ | |
2294 DebuggerAgent.getFunctionDetails = function(functionId, opt_callback) {} | |
2295 /** @param {function(?Protocol.Error, DebuggerAgent.FunctionDetails):void=} opt_ callback */ | |
2296 DebuggerAgent.getFunctionDetails.invoke = function(obj, opt_callback) {} | |
2297 | |
2298 /** | |
2299 * @param {string} state | |
2300 * @param {function(?Protocol.Error):void=} opt_callback | |
2301 */ | |
2302 DebuggerAgent.setPauseOnExceptions = function(state, opt_callback) {} | |
2303 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2304 DebuggerAgent.setPauseOnExceptions.invoke = function(obj, opt_callback) {} | |
2305 | |
2306 /** | |
2307 * @param {DebuggerAgent.CallFrameId} callFrameId | |
2308 * @param {string} expression | |
2309 * @param {string=} opt_objectGroup | |
2310 * @param {boolean=} opt_includeCommandLineAPI | |
2311 * @param {boolean=} opt_doNotPauseOnExceptionsAndMuteConsole | |
2312 * @param {boolean=} opt_returnByValue | |
2313 * @param {boolean=} opt_generatePreview | |
2314 * @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void=} opt_callback | |
2315 */ | |
2316 DebuggerAgent.evaluateOnCallFrame = function(callFrameId, expression, opt_object Group, opt_includeCommandLineAPI, opt_doNotPauseOnExceptionsAndMuteConsole, opt_ returnByValue, opt_generatePreview, opt_callback) {} | |
2317 /** @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void= } opt_callback */ | |
2318 DebuggerAgent.evaluateOnCallFrame.invoke = function(obj, opt_callback) {} | |
2319 | |
2320 /** | |
2321 * @param {string} expression | |
2322 * @param {string} sourceURL | |
2323 * @param {function(?Protocol.Error, DebuggerAgent.ScriptId=, string=):void=} op t_callback | |
2324 */ | |
2325 DebuggerAgent.compileScript = function(expression, sourceURL, opt_callback) {} | |
2326 /** @param {function(?Protocol.Error, DebuggerAgent.ScriptId=, string=):void=} o pt_callback */ | |
2327 DebuggerAgent.compileScript.invoke = function(obj, opt_callback) {} | |
2328 | |
2329 /** | |
2330 * @param {DebuggerAgent.ScriptId} scriptId | |
2331 * @param {RuntimeAgent.ExecutionContextId=} opt_contextId | |
2332 * @param {string=} opt_objectGroup | |
2333 * @param {boolean=} opt_doNotPauseOnExceptionsAndMuteConsole | |
2334 * @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void=} opt_callback | |
2335 */ | |
2336 DebuggerAgent.runScript = function(scriptId, opt_contextId, opt_objectGroup, opt _doNotPauseOnExceptionsAndMuteConsole, opt_callback) {} | |
2337 /** @param {function(?Protocol.Error, RuntimeAgent.RemoteObject, boolean=):void= } opt_callback */ | |
2338 DebuggerAgent.runScript.invoke = function(obj, opt_callback) {} | |
2339 | |
2340 /** | |
2341 * @param {string=} opt_message | |
2342 * @param {function(?Protocol.Error):void=} opt_callback | |
2343 */ | |
2344 DebuggerAgent.setOverlayMessage = function(opt_message, opt_callback) {} | |
2345 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2346 DebuggerAgent.setOverlayMessage.invoke = function(obj, opt_callback) {} | |
2347 | |
2348 /** | |
2349 * @param {number} scopeNumber | |
2350 * @param {string} variableName | |
2351 * @param {RuntimeAgent.CallArgument} newValue | |
2352 * @param {DebuggerAgent.CallFrameId=} opt_callFrameId | |
2353 * @param {RuntimeAgent.RemoteObjectId=} opt_functionObjectId | |
2354 * @param {function(?Protocol.Error):void=} opt_callback | |
2355 */ | |
2356 DebuggerAgent.setVariableValue = function(scopeNumber, variableName, newValue, o pt_callFrameId, opt_functionObjectId, opt_callback) {} | |
2357 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2358 DebuggerAgent.setVariableValue.invoke = function(obj, opt_callback) {} | |
2359 | |
2360 /** | |
2361 * @param {DebuggerAgent.CallFrameId} callFrameId | |
2362 * @param {function(?Protocol.Error, !Array.<DebuggerAgent.Location>=):void=} op t_callback | |
2363 */ | |
2364 DebuggerAgent.getStepInPositions = function(callFrameId, opt_callback) {} | |
2365 /** @param {function(?Protocol.Error, !Array.<DebuggerAgent.Location>=):void=} o pt_callback */ | |
2366 DebuggerAgent.getStepInPositions.invoke = function(obj, opt_callback) {} | |
2367 | |
2368 /** | |
2369 * @param {function(?Protocol.Error, !Array.<DebuggerAgent.CallFrame>, DebuggerA gent.StackTrace=):void=} opt_callback | |
2370 */ | |
2371 DebuggerAgent.getBacktrace = function(opt_callback) {} | |
2372 /** @param {function(?Protocol.Error, !Array.<DebuggerAgent.CallFrame>, Debugger Agent.StackTrace=):void=} opt_callback */ | |
2373 DebuggerAgent.getBacktrace.invoke = function(obj, opt_callback) {} | |
2374 | |
2375 /** | |
2376 * @param {string=} opt_script | |
2377 * @param {function(?Protocol.Error):void=} opt_callback | |
2378 */ | |
2379 DebuggerAgent.skipStackFrames = function(opt_script, opt_callback) {} | |
2380 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2381 DebuggerAgent.skipStackFrames.invoke = function(obj, opt_callback) {} | |
2382 | |
2383 /** | |
2384 * @param {number} maxDepth | |
2385 * @param {function(?Protocol.Error):void=} opt_callback | |
2386 */ | |
2387 DebuggerAgent.setAsyncCallStackDepth = function(maxDepth, opt_callback) {} | |
2388 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2389 DebuggerAgent.setAsyncCallStackDepth.invoke = function(obj, opt_callback) {} | |
2390 /** @interface */ | |
2391 DebuggerAgent.Dispatcher = function() {}; | |
2392 DebuggerAgent.Dispatcher.prototype.globalObjectCleared = function() {}; | |
2393 /** | |
2394 * @param {DebuggerAgent.ScriptId} scriptId | |
2395 * @param {string} url | |
2396 * @param {number} startLine | |
2397 * @param {number} startColumn | |
2398 * @param {number} endLine | |
2399 * @param {number} endColumn | |
2400 * @param {boolean=} opt_isContentScript | |
2401 * @param {string=} opt_sourceMapURL | |
2402 * @param {boolean=} opt_hasSourceURL | |
2403 */ | |
2404 DebuggerAgent.Dispatcher.prototype.scriptParsed = function(scriptId, url, startL ine, startColumn, endLine, endColumn, opt_isContentScript, opt_sourceMapURL, opt _hasSourceURL) {}; | |
2405 /** | |
2406 * @param {string} url | |
2407 * @param {string} scriptSource | |
2408 * @param {number} startLine | |
2409 * @param {number} errorLine | |
2410 * @param {string} errorMessage | |
2411 */ | |
2412 DebuggerAgent.Dispatcher.prototype.scriptFailedToParse = function(url, scriptSou rce, startLine, errorLine, errorMessage) {}; | |
2413 /** | |
2414 * @param {DebuggerAgent.BreakpointId} breakpointId | |
2415 * @param {DebuggerAgent.Location} location | |
2416 */ | |
2417 DebuggerAgent.Dispatcher.prototype.breakpointResolved = function(breakpointId, l ocation) {}; | |
2418 /** | |
2419 * @param {!Array.<DebuggerAgent.CallFrame>} callFrames | |
2420 * @param {string} reason | |
2421 * @param {!Object=} opt_data | |
2422 * @param {!Array.<string>=} opt_hitBreakpoints | |
2423 * @param {DebuggerAgent.StackTrace=} opt_asyncStackTrace | |
2424 */ | |
2425 DebuggerAgent.Dispatcher.prototype.paused = function(callFrames, reason, opt_dat a, opt_hitBreakpoints, opt_asyncStackTrace) {}; | |
2426 DebuggerAgent.Dispatcher.prototype.resumed = function() {}; | |
2427 /** | |
2428 * @param {DebuggerAgent.Dispatcher} dispatcher | |
2429 */ | |
2430 InspectorBackend.registerDebuggerDispatcher = function(dispatcher) {} | |
2431 | |
2432 | |
2433 | |
2434 var DOMDebuggerAgent = {}; | |
2435 | |
2436 /** @enum {string} */ | |
2437 DOMDebuggerAgent.DOMBreakpointType = { | |
2438 SubtreeModified: "subtree-modified", | |
2439 AttributeModified: "attribute-modified", | |
2440 NodeRemoved: "node-removed" | |
2441 }; | |
2442 | |
2443 /** | |
2444 * @param {DOMAgent.NodeId} nodeId | |
2445 * @param {DOMDebuggerAgent.DOMBreakpointType} type | |
2446 * @param {function(?Protocol.Error):void=} opt_callback | |
2447 */ | |
2448 DOMDebuggerAgent.setDOMBreakpoint = function(nodeId, type, opt_callback) {} | |
2449 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2450 DOMDebuggerAgent.setDOMBreakpoint.invoke = function(obj, opt_callback) {} | |
2451 | |
2452 /** | |
2453 * @param {DOMAgent.NodeId} nodeId | |
2454 * @param {DOMDebuggerAgent.DOMBreakpointType} type | |
2455 * @param {function(?Protocol.Error):void=} opt_callback | |
2456 */ | |
2457 DOMDebuggerAgent.removeDOMBreakpoint = function(nodeId, type, opt_callback) {} | |
2458 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2459 DOMDebuggerAgent.removeDOMBreakpoint.invoke = function(obj, opt_callback) {} | |
2460 | |
2461 /** | |
2462 * @param {string} eventName | |
2463 * @param {function(?Protocol.Error):void=} opt_callback | |
2464 */ | |
2465 DOMDebuggerAgent.setEventListenerBreakpoint = function(eventName, opt_callback) {} | |
2466 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2467 DOMDebuggerAgent.setEventListenerBreakpoint.invoke = function(obj, opt_callback) {} | |
2468 | |
2469 /** | |
2470 * @param {string} eventName | |
2471 * @param {function(?Protocol.Error):void=} opt_callback | |
2472 */ | |
2473 DOMDebuggerAgent.removeEventListenerBreakpoint = function(eventName, opt_callbac k) {} | |
2474 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2475 DOMDebuggerAgent.removeEventListenerBreakpoint.invoke = function(obj, opt_callba ck) {} | |
2476 | |
2477 /** | |
2478 * @param {string} eventName | |
2479 * @param {function(?Protocol.Error):void=} opt_callback | |
2480 */ | |
2481 DOMDebuggerAgent.setInstrumentationBreakpoint = function(eventName, opt_callback ) {} | |
2482 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2483 DOMDebuggerAgent.setInstrumentationBreakpoint.invoke = function(obj, opt_callbac k) {} | |
2484 | |
2485 /** | |
2486 * @param {string} eventName | |
2487 * @param {function(?Protocol.Error):void=} opt_callback | |
2488 */ | |
2489 DOMDebuggerAgent.removeInstrumentationBreakpoint = function(eventName, opt_callb ack) {} | |
2490 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2491 DOMDebuggerAgent.removeInstrumentationBreakpoint.invoke = function(obj, opt_call back) {} | |
2492 | |
2493 /** | |
2494 * @param {string} url | |
2495 * @param {function(?Protocol.Error):void=} opt_callback | |
2496 */ | |
2497 DOMDebuggerAgent.setXHRBreakpoint = function(url, opt_callback) {} | |
2498 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2499 DOMDebuggerAgent.setXHRBreakpoint.invoke = function(obj, opt_callback) {} | |
2500 | |
2501 /** | |
2502 * @param {string} url | |
2503 * @param {function(?Protocol.Error):void=} opt_callback | |
2504 */ | |
2505 DOMDebuggerAgent.removeXHRBreakpoint = function(url, opt_callback) {} | |
2506 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2507 DOMDebuggerAgent.removeXHRBreakpoint.invoke = function(obj, opt_callback) {} | |
2508 /** @interface */ | |
2509 DOMDebuggerAgent.Dispatcher = function() {}; | |
2510 /** | |
2511 * @param {DOMDebuggerAgent.Dispatcher} dispatcher | |
2512 */ | |
2513 InspectorBackend.registerDOMDebuggerDispatcher = function(dispatcher) {} | |
2514 | |
2515 | |
2516 | |
2517 var ProfilerAgent = {}; | |
2518 | |
2519 /** @typedef {!{functionName:(string), scriptId:(DebuggerAgent.ScriptId), url:(s tring), lineNumber:(number), columnNumber:(number), hitCount:(number), callUID:( number), children:(!Array.<ProfilerAgent.CPUProfileNode>), deoptReason:(string), id:(number|undefined)}} */ | |
2520 ProfilerAgent.CPUProfileNode; | |
2521 | |
2522 /** @typedef {!{head:(ProfilerAgent.CPUProfileNode), startTime:(number), endTime :(number), samples:(!Array.<number>|undefined)}} */ | |
2523 ProfilerAgent.CPUProfile; | |
2524 | |
2525 /** | |
2526 * @param {function(?Protocol.Error):void=} opt_callback | |
2527 */ | |
2528 ProfilerAgent.enable = function(opt_callback) {} | |
2529 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2530 ProfilerAgent.enable.invoke = function(obj, opt_callback) {} | |
2531 | |
2532 /** | |
2533 * @param {function(?Protocol.Error):void=} opt_callback | |
2534 */ | |
2535 ProfilerAgent.disable = function(opt_callback) {} | |
2536 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2537 ProfilerAgent.disable.invoke = function(obj, opt_callback) {} | |
2538 | |
2539 /** | |
2540 * @param {number} interval | |
2541 * @param {function(?Protocol.Error):void=} opt_callback | |
2542 */ | |
2543 ProfilerAgent.setSamplingInterval = function(interval, opt_callback) {} | |
2544 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2545 ProfilerAgent.setSamplingInterval.invoke = function(obj, opt_callback) {} | |
2546 | |
2547 /** | |
2548 * @param {function(?Protocol.Error):void=} opt_callback | |
2549 */ | |
2550 ProfilerAgent.start = function(opt_callback) {} | |
2551 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2552 ProfilerAgent.start.invoke = function(obj, opt_callback) {} | |
2553 | |
2554 /** | |
2555 * @param {function(?Protocol.Error, ProfilerAgent.CPUProfile):void=} opt_callba ck | |
2556 */ | |
2557 ProfilerAgent.stop = function(opt_callback) {} | |
2558 /** @param {function(?Protocol.Error, ProfilerAgent.CPUProfile):void=} opt_callb ack */ | |
2559 ProfilerAgent.stop.invoke = function(obj, opt_callback) {} | |
2560 /** @interface */ | |
2561 ProfilerAgent.Dispatcher = function() {}; | |
2562 /** | |
2563 * @param {string} id | |
2564 * @param {DebuggerAgent.Location} location | |
2565 * @param {string=} opt_title | |
2566 */ | |
2567 ProfilerAgent.Dispatcher.prototype.consoleProfileStarted = function(id, location , opt_title) {}; | |
2568 /** | |
2569 * @param {string} id | |
2570 * @param {DebuggerAgent.Location} location | |
2571 * @param {ProfilerAgent.CPUProfile} profile | |
2572 * @param {string=} opt_title | |
2573 */ | |
2574 ProfilerAgent.Dispatcher.prototype.consoleProfileFinished = function(id, locatio n, profile, opt_title) {}; | |
2575 /** | |
2576 * @param {ProfilerAgent.Dispatcher} dispatcher | |
2577 */ | |
2578 InspectorBackend.registerProfilerDispatcher = function(dispatcher) {} | |
2579 | |
2580 | |
2581 | |
2582 var HeapProfilerAgent = {}; | |
2583 | |
2584 /** @typedef {string} */ | |
2585 HeapProfilerAgent.HeapSnapshotObjectId; | |
2586 | |
2587 /** | |
2588 * @param {function(?Protocol.Error):void=} opt_callback | |
2589 */ | |
2590 HeapProfilerAgent.enable = function(opt_callback) {} | |
2591 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2592 HeapProfilerAgent.enable.invoke = function(obj, opt_callback) {} | |
2593 | |
2594 /** | |
2595 * @param {function(?Protocol.Error):void=} opt_callback | |
2596 */ | |
2597 HeapProfilerAgent.disable = function(opt_callback) {} | |
2598 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2599 HeapProfilerAgent.disable.invoke = function(obj, opt_callback) {} | |
2600 | |
2601 /** | |
2602 * @param {boolean=} opt_trackAllocations | |
2603 * @param {function(?Protocol.Error):void=} opt_callback | |
2604 */ | |
2605 HeapProfilerAgent.startTrackingHeapObjects = function(opt_trackAllocations, opt_ callback) {} | |
2606 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2607 HeapProfilerAgent.startTrackingHeapObjects.invoke = function(obj, opt_callback) {} | |
2608 | |
2609 /** | |
2610 * @param {boolean=} opt_reportProgress | |
2611 * @param {function(?Protocol.Error):void=} opt_callback | |
2612 */ | |
2613 HeapProfilerAgent.stopTrackingHeapObjects = function(opt_reportProgress, opt_cal lback) {} | |
2614 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2615 HeapProfilerAgent.stopTrackingHeapObjects.invoke = function(obj, opt_callback) { } | |
2616 | |
2617 /** | |
2618 * @param {boolean=} opt_reportProgress | |
2619 * @param {function(?Protocol.Error):void=} opt_callback | |
2620 */ | |
2621 HeapProfilerAgent.takeHeapSnapshot = function(opt_reportProgress, opt_callback) {} | |
2622 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2623 HeapProfilerAgent.takeHeapSnapshot.invoke = function(obj, opt_callback) {} | |
2624 | |
2625 /** | |
2626 * @param {function(?Protocol.Error):void=} opt_callback | |
2627 */ | |
2628 HeapProfilerAgent.collectGarbage = function(opt_callback) {} | |
2629 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2630 HeapProfilerAgent.collectGarbage.invoke = function(obj, opt_callback) {} | |
2631 | |
2632 /** | |
2633 * @param {HeapProfilerAgent.HeapSnapshotObjectId} objectId | |
2634 * @param {string=} opt_objectGroup | |
2635 * @param {function(?Protocol.Error, RuntimeAgent.RemoteObject):void=} opt_callb ack | |
2636 */ | |
2637 HeapProfilerAgent.getObjectByHeapObjectId = function(objectId, opt_objectGroup, opt_callback) {} | |
2638 /** @param {function(?Protocol.Error, RuntimeAgent.RemoteObject):void=} opt_call back */ | |
2639 HeapProfilerAgent.getObjectByHeapObjectId.invoke = function(obj, opt_callback) { } | |
2640 | |
2641 /** | |
2642 * @param {RuntimeAgent.RemoteObjectId} objectId | |
2643 * @param {function(?Protocol.Error, HeapProfilerAgent.HeapSnapshotObjectId):voi d=} opt_callback | |
2644 */ | |
2645 HeapProfilerAgent.getHeapObjectId = function(objectId, opt_callback) {} | |
2646 /** @param {function(?Protocol.Error, HeapProfilerAgent.HeapSnapshotObjectId):vo id=} opt_callback */ | |
2647 HeapProfilerAgent.getHeapObjectId.invoke = function(obj, opt_callback) {} | |
2648 /** @interface */ | |
2649 HeapProfilerAgent.Dispatcher = function() {}; | |
2650 /** | |
2651 * @param {string} chunk | |
2652 */ | |
2653 HeapProfilerAgent.Dispatcher.prototype.addHeapSnapshotChunk = function(chunk) {} ; | |
2654 HeapProfilerAgent.Dispatcher.prototype.resetProfiles = function() {}; | |
2655 /** | |
2656 * @param {number} done | |
2657 * @param {number} total | |
2658 * @param {boolean=} opt_finished | |
2659 */ | |
2660 HeapProfilerAgent.Dispatcher.prototype.reportHeapSnapshotProgress = function(don e, total, opt_finished) {}; | |
2661 /** | |
2662 * @param {number} lastSeenObjectId | |
2663 * @param {number} timestamp | |
2664 */ | |
2665 HeapProfilerAgent.Dispatcher.prototype.lastSeenObjectId = function(lastSeenObjec tId, timestamp) {}; | |
2666 /** | |
2667 * @param {!Array.<number>} statsUpdate | |
2668 */ | |
2669 HeapProfilerAgent.Dispatcher.prototype.heapStatsUpdate = function(statsUpdate) { }; | |
2670 /** | |
2671 * @param {HeapProfilerAgent.Dispatcher} dispatcher | |
2672 */ | |
2673 InspectorBackend.registerHeapProfilerDispatcher = function(dispatcher) {} | |
2674 | |
2675 | |
2676 | |
2677 var WorkerAgent = {}; | |
2678 | |
2679 /** | |
2680 * @param {function(?Protocol.Error):void=} opt_callback | |
2681 */ | |
2682 WorkerAgent.enable = function(opt_callback) {} | |
2683 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2684 WorkerAgent.enable.invoke = function(obj, opt_callback) {} | |
2685 | |
2686 /** | |
2687 * @param {function(?Protocol.Error):void=} opt_callback | |
2688 */ | |
2689 WorkerAgent.disable = function(opt_callback) {} | |
2690 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2691 WorkerAgent.disable.invoke = function(obj, opt_callback) {} | |
2692 | |
2693 /** | |
2694 * @param {number} workerId | |
2695 * @param {!Object} message | |
2696 * @param {function(?Protocol.Error):void=} opt_callback | |
2697 */ | |
2698 WorkerAgent.sendMessageToWorker = function(workerId, message, opt_callback) {} | |
2699 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2700 WorkerAgent.sendMessageToWorker.invoke = function(obj, opt_callback) {} | |
2701 | |
2702 /** | |
2703 * @param {function(?Protocol.Error, boolean):void=} opt_callback | |
2704 */ | |
2705 WorkerAgent.canInspectWorkers = function(opt_callback) {} | |
2706 /** @param {function(?Protocol.Error, boolean):void=} opt_callback */ | |
2707 WorkerAgent.canInspectWorkers.invoke = function(obj, opt_callback) {} | |
2708 | |
2709 /** | |
2710 * @param {number} workerId | |
2711 * @param {function(?Protocol.Error):void=} opt_callback | |
2712 */ | |
2713 WorkerAgent.connectToWorker = function(workerId, opt_callback) {} | |
2714 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2715 WorkerAgent.connectToWorker.invoke = function(obj, opt_callback) {} | |
2716 | |
2717 /** | |
2718 * @param {number} workerId | |
2719 * @param {function(?Protocol.Error):void=} opt_callback | |
2720 */ | |
2721 WorkerAgent.disconnectFromWorker = function(workerId, opt_callback) {} | |
2722 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2723 WorkerAgent.disconnectFromWorker.invoke = function(obj, opt_callback) {} | |
2724 | |
2725 /** | |
2726 * @param {boolean} value | |
2727 * @param {function(?Protocol.Error):void=} opt_callback | |
2728 */ | |
2729 WorkerAgent.setAutoconnectToWorkers = function(value, opt_callback) {} | |
2730 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2731 WorkerAgent.setAutoconnectToWorkers.invoke = function(obj, opt_callback) {} | |
2732 /** @interface */ | |
2733 WorkerAgent.Dispatcher = function() {}; | |
2734 /** | |
2735 * @param {number} workerId | |
2736 * @param {string} url | |
2737 * @param {boolean} inspectorConnected | |
2738 */ | |
2739 WorkerAgent.Dispatcher.prototype.workerCreated = function(workerId, url, inspect orConnected) {}; | |
2740 /** | |
2741 * @param {number} workerId | |
2742 */ | |
2743 WorkerAgent.Dispatcher.prototype.workerTerminated = function(workerId) {}; | |
2744 /** | |
2745 * @param {number} workerId | |
2746 * @param {!Object} message | |
2747 */ | |
2748 WorkerAgent.Dispatcher.prototype.dispatchMessageFromWorker = function(workerId, message) {}; | |
2749 WorkerAgent.Dispatcher.prototype.disconnectedFromWorker = function() {}; | |
2750 /** | |
2751 * @param {WorkerAgent.Dispatcher} dispatcher | |
2752 */ | |
2753 InspectorBackend.registerWorkerDispatcher = function(dispatcher) {} | |
2754 | |
2755 | |
2756 | |
2757 var CanvasAgent = {}; | |
2758 | |
2759 /** @typedef {string} */ | |
2760 CanvasAgent.ResourceId; | |
2761 | |
2762 /** @typedef {!{name:(string), enumValueForName:(string|undefined), value:(Canva sAgent.CallArgument|undefined), values:(!Array.<CanvasAgent.ResourceStateDescrip tor>|undefined), isArray:(boolean|undefined)}} */ | |
2763 CanvasAgent.ResourceStateDescriptor; | |
2764 | |
2765 /** @typedef {!{id:(CanvasAgent.ResourceId), traceLogId:(CanvasAgent.TraceLogId) , descriptors:(!Array.<CanvasAgent.ResourceStateDescriptor>|undefined), imageURL :(string|undefined)}} */ | |
2766 CanvasAgent.ResourceState; | |
2767 | |
2768 /** @enum {string} */ | |
2769 CanvasAgent.CallArgumentType = { | |
2770 Object: "object", | |
2771 Function: "function", | |
2772 Undefined: "undefined", | |
2773 String: "string", | |
2774 Number: "number", | |
2775 Boolean: "boolean" | |
2776 }; | |
2777 | |
2778 /** @enum {string} */ | |
2779 CanvasAgent.CallArgumentSubtype = { | |
2780 Array: "array", | |
2781 Null: "null", | |
2782 Node: "node", | |
2783 Regexp: "regexp", | |
2784 Date: "date" | |
2785 }; | |
2786 | |
2787 /** @typedef {!{description:(string), enumName:(string|undefined), resourceId:(C anvasAgent.ResourceId|undefined), type:(CanvasAgent.CallArgumentType|undefined), subtype:(CanvasAgent.CallArgumentSubtype|undefined), remoteObject:(RuntimeAgent .RemoteObject|undefined)}} */ | |
2788 CanvasAgent.CallArgument; | |
2789 | |
2790 /** @typedef {!{contextId:(CanvasAgent.ResourceId), functionName:(string|undefin ed), arguments:(!Array.<CanvasAgent.CallArgument>|undefined), result:(CanvasAgen t.CallArgument|undefined), isDrawingCall:(boolean|undefined), isFrameEndCall:(bo olean|undefined), property:(string|undefined), value:(CanvasAgent.CallArgument|u ndefined), sourceURL:(string|undefined), lineNumber:(number|undefined), columnNu mber:(number|undefined)}} */ | |
2791 CanvasAgent.Call; | |
2792 | |
2793 /** @typedef {string} */ | |
2794 CanvasAgent.TraceLogId; | |
2795 | |
2796 /** @typedef {!{id:(CanvasAgent.TraceLogId), calls:(!Array.<CanvasAgent.Call>), contexts:(!Array.<CanvasAgent.CallArgument>), startOffset:(number), alive:(boole an), totalAvailableCalls:(number)}} */ | |
2797 CanvasAgent.TraceLog; | |
2798 | |
2799 /** | |
2800 * @param {function(?Protocol.Error):void=} opt_callback | |
2801 */ | |
2802 CanvasAgent.enable = function(opt_callback) {} | |
2803 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2804 CanvasAgent.enable.invoke = function(obj, opt_callback) {} | |
2805 | |
2806 /** | |
2807 * @param {function(?Protocol.Error):void=} opt_callback | |
2808 */ | |
2809 CanvasAgent.disable = function(opt_callback) {} | |
2810 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2811 CanvasAgent.disable.invoke = function(obj, opt_callback) {} | |
2812 | |
2813 /** | |
2814 * @param {CanvasAgent.TraceLogId} traceLogId | |
2815 * @param {function(?Protocol.Error):void=} opt_callback | |
2816 */ | |
2817 CanvasAgent.dropTraceLog = function(traceLogId, opt_callback) {} | |
2818 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2819 CanvasAgent.dropTraceLog.invoke = function(obj, opt_callback) {} | |
2820 | |
2821 /** | |
2822 * @param {function(?Protocol.Error, boolean):void=} opt_callback | |
2823 */ | |
2824 CanvasAgent.hasUninstrumentedCanvases = function(opt_callback) {} | |
2825 /** @param {function(?Protocol.Error, boolean):void=} opt_callback */ | |
2826 CanvasAgent.hasUninstrumentedCanvases.invoke = function(obj, opt_callback) {} | |
2827 | |
2828 /** | |
2829 * @param {PageAgent.FrameId=} opt_frameId | |
2830 * @param {function(?Protocol.Error, CanvasAgent.TraceLogId):void=} opt_callback | |
2831 */ | |
2832 CanvasAgent.captureFrame = function(opt_frameId, opt_callback) {} | |
2833 /** @param {function(?Protocol.Error, CanvasAgent.TraceLogId):void=} opt_callbac k */ | |
2834 CanvasAgent.captureFrame.invoke = function(obj, opt_callback) {} | |
2835 | |
2836 /** | |
2837 * @param {PageAgent.FrameId=} opt_frameId | |
2838 * @param {function(?Protocol.Error, CanvasAgent.TraceLogId):void=} opt_callback | |
2839 */ | |
2840 CanvasAgent.startCapturing = function(opt_frameId, opt_callback) {} | |
2841 /** @param {function(?Protocol.Error, CanvasAgent.TraceLogId):void=} opt_callbac k */ | |
2842 CanvasAgent.startCapturing.invoke = function(obj, opt_callback) {} | |
2843 | |
2844 /** | |
2845 * @param {CanvasAgent.TraceLogId} traceLogId | |
2846 * @param {function(?Protocol.Error):void=} opt_callback | |
2847 */ | |
2848 CanvasAgent.stopCapturing = function(traceLogId, opt_callback) {} | |
2849 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2850 CanvasAgent.stopCapturing.invoke = function(obj, opt_callback) {} | |
2851 | |
2852 /** | |
2853 * @param {CanvasAgent.TraceLogId} traceLogId | |
2854 * @param {number=} opt_startOffset | |
2855 * @param {number=} opt_maxLength | |
2856 * @param {function(?Protocol.Error, CanvasAgent.TraceLog):void=} opt_callback | |
2857 */ | |
2858 CanvasAgent.getTraceLog = function(traceLogId, opt_startOffset, opt_maxLength, o pt_callback) {} | |
2859 /** @param {function(?Protocol.Error, CanvasAgent.TraceLog):void=} opt_callback */ | |
2860 CanvasAgent.getTraceLog.invoke = function(obj, opt_callback) {} | |
2861 | |
2862 /** | |
2863 * @param {CanvasAgent.TraceLogId} traceLogId | |
2864 * @param {number} stepNo | |
2865 * @param {function(?Protocol.Error, CanvasAgent.ResourceState, number):void=} o pt_callback | |
2866 */ | |
2867 CanvasAgent.replayTraceLog = function(traceLogId, stepNo, opt_callback) {} | |
2868 /** @param {function(?Protocol.Error, CanvasAgent.ResourceState, number):void=} opt_callback */ | |
2869 CanvasAgent.replayTraceLog.invoke = function(obj, opt_callback) {} | |
2870 | |
2871 /** | |
2872 * @param {CanvasAgent.TraceLogId} traceLogId | |
2873 * @param {CanvasAgent.ResourceId} resourceId | |
2874 * @param {function(?Protocol.Error, CanvasAgent.ResourceState):void=} opt_callb ack | |
2875 */ | |
2876 CanvasAgent.getResourceState = function(traceLogId, resourceId, opt_callback) {} | |
2877 /** @param {function(?Protocol.Error, CanvasAgent.ResourceState):void=} opt_call back */ | |
2878 CanvasAgent.getResourceState.invoke = function(obj, opt_callback) {} | |
2879 | |
2880 /** | |
2881 * @param {CanvasAgent.TraceLogId} traceLogId | |
2882 * @param {number} callIndex | |
2883 * @param {number} argumentIndex | |
2884 * @param {string=} opt_objectGroup | |
2885 * @param {function(?Protocol.Error, RuntimeAgent.RemoteObject=, CanvasAgent.Res ourceState=):void=} opt_callback | |
2886 */ | |
2887 CanvasAgent.evaluateTraceLogCallArgument = function(traceLogId, callIndex, argum entIndex, opt_objectGroup, opt_callback) {} | |
2888 /** @param {function(?Protocol.Error, RuntimeAgent.RemoteObject=, CanvasAgent.Re sourceState=):void=} opt_callback */ | |
2889 CanvasAgent.evaluateTraceLogCallArgument.invoke = function(obj, opt_callback) {} | |
2890 /** @interface */ | |
2891 CanvasAgent.Dispatcher = function() {}; | |
2892 /** | |
2893 * @param {PageAgent.FrameId} frameId | |
2894 */ | |
2895 CanvasAgent.Dispatcher.prototype.contextCreated = function(frameId) {}; | |
2896 /** | |
2897 * @param {PageAgent.FrameId=} opt_frameId | |
2898 * @param {CanvasAgent.TraceLogId=} opt_traceLogId | |
2899 */ | |
2900 CanvasAgent.Dispatcher.prototype.traceLogsRemoved = function(opt_frameId, opt_tr aceLogId) {}; | |
2901 /** | |
2902 * @param {CanvasAgent.Dispatcher} dispatcher | |
2903 */ | |
2904 InspectorBackend.registerCanvasDispatcher = function(dispatcher) {} | |
2905 | |
2906 | |
2907 | |
2908 var InputAgent = {}; | |
2909 | |
2910 /** @enum {string} */ | |
2911 InputAgent.TouchPointState = { | |
2912 TouchPressed: "touchPressed", | |
2913 TouchReleased: "touchReleased", | |
2914 TouchMoved: "touchMoved", | |
2915 TouchStationary: "touchStationary", | |
2916 TouchCancelled: "touchCancelled" | |
2917 }; | |
2918 | |
2919 /** @typedef {!{state:(InputAgent.TouchPointState), x:(number), y:(number), radi usX:(number|undefined), radiusY:(number|undefined), rotationAngle:(number|undefi ned), force:(number|undefined), id:(number|undefined)}} */ | |
2920 InputAgent.TouchPoint; | |
2921 | |
2922 /** | |
2923 * @param {string} type | |
2924 * @param {number=} opt_modifiers | |
2925 * @param {number=} opt_timestamp | |
2926 * @param {string=} opt_text | |
2927 * @param {string=} opt_unmodifiedText | |
2928 * @param {string=} opt_keyIdentifier | |
2929 * @param {number=} opt_windowsVirtualKeyCode | |
2930 * @param {number=} opt_nativeVirtualKeyCode | |
2931 * @param {number=} opt_macCharCode | |
2932 * @param {boolean=} opt_autoRepeat | |
2933 * @param {boolean=} opt_isKeypad | |
2934 * @param {boolean=} opt_isSystemKey | |
2935 * @param {function(?Protocol.Error):void=} opt_callback | |
2936 */ | |
2937 InputAgent.dispatchKeyEvent = function(type, opt_modifiers, opt_timestamp, opt_t ext, opt_unmodifiedText, opt_keyIdentifier, opt_windowsVirtualKeyCode, opt_nativ eVirtualKeyCode, opt_macCharCode, opt_autoRepeat, opt_isKeypad, opt_isSystemKey, opt_callback) {} | |
2938 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2939 InputAgent.dispatchKeyEvent.invoke = function(obj, opt_callback) {} | |
2940 | |
2941 /** | |
2942 * @param {string} type | |
2943 * @param {number} x | |
2944 * @param {number} y | |
2945 * @param {number=} opt_modifiers | |
2946 * @param {number=} opt_timestamp | |
2947 * @param {string=} opt_button | |
2948 * @param {number=} opt_clickCount | |
2949 * @param {boolean=} opt_deviceSpace | |
2950 * @param {function(?Protocol.Error):void=} opt_callback | |
2951 */ | |
2952 InputAgent.dispatchMouseEvent = function(type, x, y, opt_modifiers, opt_timestam p, opt_button, opt_clickCount, opt_deviceSpace, opt_callback) {} | |
2953 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2954 InputAgent.dispatchMouseEvent.invoke = function(obj, opt_callback) {} | |
2955 | |
2956 /** | |
2957 * @param {string} type | |
2958 * @param {!Array.<InputAgent.TouchPoint>} touchPoints | |
2959 * @param {number=} opt_modifiers | |
2960 * @param {number=} opt_timestamp | |
2961 * @param {function(?Protocol.Error):void=} opt_callback | |
2962 */ | |
2963 InputAgent.dispatchTouchEvent = function(type, touchPoints, opt_modifiers, opt_t imestamp, opt_callback) {} | |
2964 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2965 InputAgent.dispatchTouchEvent.invoke = function(obj, opt_callback) {} | |
2966 | |
2967 /** | |
2968 * @param {string} type | |
2969 * @param {number} x | |
2970 * @param {number} y | |
2971 * @param {number=} opt_timestamp | |
2972 * @param {number=} opt_deltaX | |
2973 * @param {number=} opt_deltaY | |
2974 * @param {number=} opt_pinchScale | |
2975 * @param {function(?Protocol.Error):void=} opt_callback | |
2976 */ | |
2977 InputAgent.dispatchGestureEvent = function(type, x, y, opt_timestamp, opt_deltaX , opt_deltaY, opt_pinchScale, opt_callback) {} | |
2978 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
2979 InputAgent.dispatchGestureEvent.invoke = function(obj, opt_callback) {} | |
2980 /** @interface */ | |
2981 InputAgent.Dispatcher = function() {}; | |
2982 /** | |
2983 * @param {InputAgent.Dispatcher} dispatcher | |
2984 */ | |
2985 InspectorBackend.registerInputDispatcher = function(dispatcher) {} | |
2986 | |
2987 | |
2988 | |
2989 var LayerTreeAgent = {}; | |
2990 | |
2991 /** @typedef {string} */ | |
2992 LayerTreeAgent.LayerId; | |
2993 | |
2994 /** @typedef {string} */ | |
2995 LayerTreeAgent.SnapshotId; | |
2996 | |
2997 /** @typedef {!{layerId:(LayerTreeAgent.LayerId), parentLayerId:(LayerTreeAgent. LayerId|undefined), nodeId:(DOMAgent.NodeId|undefined), offsetX:(number), offset Y:(number), width:(number), height:(number), transform:(!Array.<number>|undefine d), anchorX:(number|undefined), anchorY:(number|undefined), anchorZ:(number|unde fined), paintCount:(number), invisible:(boolean|undefined)}} */ | |
2998 LayerTreeAgent.Layer; | |
2999 | |
3000 /** @typedef {!Array.<!number>} */ | |
3001 LayerTreeAgent.PaintProfile; | |
3002 | |
3003 /** | |
3004 * @param {function(?Protocol.Error):void=} opt_callback | |
3005 */ | |
3006 LayerTreeAgent.enable = function(opt_callback) {} | |
3007 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
3008 LayerTreeAgent.enable.invoke = function(obj, opt_callback) {} | |
3009 | |
3010 /** | |
3011 * @param {function(?Protocol.Error):void=} opt_callback | |
3012 */ | |
3013 LayerTreeAgent.disable = function(opt_callback) {} | |
3014 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
3015 LayerTreeAgent.disable.invoke = function(obj, opt_callback) {} | |
3016 | |
3017 /** | |
3018 * @param {LayerTreeAgent.LayerId} layerId | |
3019 * @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback | |
3020 */ | |
3021 LayerTreeAgent.compositingReasons = function(layerId, opt_callback) {} | |
3022 /** @param {function(?Protocol.Error, !Array.<string>):void=} opt_callback */ | |
3023 LayerTreeAgent.compositingReasons.invoke = function(obj, opt_callback) {} | |
3024 | |
3025 /** | |
3026 * @param {LayerTreeAgent.LayerId} layerId | |
3027 * @param {function(?Protocol.Error, LayerTreeAgent.SnapshotId):void=} opt_callb ack | |
3028 */ | |
3029 LayerTreeAgent.makeSnapshot = function(layerId, opt_callback) {} | |
3030 /** @param {function(?Protocol.Error, LayerTreeAgent.SnapshotId):void=} opt_call back */ | |
3031 LayerTreeAgent.makeSnapshot.invoke = function(obj, opt_callback) {} | |
3032 | |
3033 /** | |
3034 * @param {LayerTreeAgent.SnapshotId} snapshotId | |
3035 * @param {function(?Protocol.Error):void=} opt_callback | |
3036 */ | |
3037 LayerTreeAgent.releaseSnapshot = function(snapshotId, opt_callback) {} | |
3038 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
3039 LayerTreeAgent.releaseSnapshot.invoke = function(obj, opt_callback) {} | |
3040 | |
3041 /** | |
3042 * @param {LayerTreeAgent.SnapshotId} snapshotId | |
3043 * @param {number=} opt_minRepeatCount | |
3044 * @param {number=} opt_minDuration | |
3045 * @param {function(?Protocol.Error, !Array.<LayerTreeAgent.PaintProfile>):void= } opt_callback | |
3046 */ | |
3047 LayerTreeAgent.profileSnapshot = function(snapshotId, opt_minRepeatCount, opt_mi nDuration, opt_callback) {} | |
3048 /** @param {function(?Protocol.Error, !Array.<LayerTreeAgent.PaintProfile>):void =} opt_callback */ | |
3049 LayerTreeAgent.profileSnapshot.invoke = function(obj, opt_callback) {} | |
3050 | |
3051 /** | |
3052 * @param {LayerTreeAgent.SnapshotId} snapshotId | |
3053 * @param {number=} opt_fromStep | |
3054 * @param {number=} opt_toStep | |
3055 * @param {function(?Protocol.Error, string):void=} opt_callback | |
3056 */ | |
3057 LayerTreeAgent.replaySnapshot = function(snapshotId, opt_fromStep, opt_toStep, o pt_callback) {} | |
3058 /** @param {function(?Protocol.Error, string):void=} opt_callback */ | |
3059 LayerTreeAgent.replaySnapshot.invoke = function(obj, opt_callback) {} | |
3060 /** @interface */ | |
3061 LayerTreeAgent.Dispatcher = function() {}; | |
3062 /** | |
3063 * @param {!Array.<LayerTreeAgent.Layer>=} opt_layers | |
3064 */ | |
3065 LayerTreeAgent.Dispatcher.prototype.layerTreeDidChange = function(opt_layers) {} ; | |
3066 /** | |
3067 * @param {LayerTreeAgent.LayerId} layerId | |
3068 * @param {DOMAgent.Rect} clip | |
3069 */ | |
3070 LayerTreeAgent.Dispatcher.prototype.layerPainted = function(layerId, clip) {}; | |
3071 /** | |
3072 * @param {LayerTreeAgent.Dispatcher} dispatcher | |
3073 */ | |
3074 InspectorBackend.registerLayerTreeDispatcher = function(dispatcher) {} | |
3075 | |
3076 | |
3077 | |
3078 var GeolocationAgent = {}; | |
3079 | |
3080 /** | |
3081 * @param {number=} opt_latitude | |
3082 * @param {number=} opt_longitude | |
3083 * @param {number=} opt_accuracy | |
3084 * @param {function(?Protocol.Error):void=} opt_callback | |
3085 */ | |
3086 GeolocationAgent.setGeolocationOverride = function(opt_latitude, opt_longitude, opt_accuracy, opt_callback) {} | |
3087 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
3088 GeolocationAgent.setGeolocationOverride.invoke = function(obj, opt_callback) {} | |
3089 | |
3090 /** | |
3091 * @param {function(?Protocol.Error):void=} opt_callback | |
3092 */ | |
3093 GeolocationAgent.clearGeolocationOverride = function(opt_callback) {} | |
3094 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
3095 GeolocationAgent.clearGeolocationOverride.invoke = function(obj, opt_callback) { } | |
3096 /** @interface */ | |
3097 GeolocationAgent.Dispatcher = function() {}; | |
3098 /** | |
3099 * @param {GeolocationAgent.Dispatcher} dispatcher | |
3100 */ | |
3101 InspectorBackend.registerGeolocationDispatcher = function(dispatcher) {} | |
3102 | |
3103 | |
3104 | |
3105 var TracingAgent = {}; | |
3106 | |
3107 /** | |
3108 * @param {string} categories | |
3109 * @param {string} options | |
3110 * @param {function(?Protocol.Error):void=} opt_callback | |
3111 */ | |
3112 TracingAgent.start = function(categories, options, opt_callback) {} | |
3113 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
3114 TracingAgent.start.invoke = function(obj, opt_callback) {} | |
3115 | |
3116 /** | |
3117 * @param {function(?Protocol.Error):void=} opt_callback | |
3118 */ | |
3119 TracingAgent.end = function(opt_callback) {} | |
3120 /** @param {function(?Protocol.Error):void=} opt_callback */ | |
3121 TracingAgent.end.invoke = function(obj, opt_callback) {} | |
3122 /** @interface */ | |
3123 TracingAgent.Dispatcher = function() {}; | |
3124 /** | |
3125 * @param {!Array.<!Object>} value | |
3126 */ | |
3127 TracingAgent.Dispatcher.prototype.dataCollected = function(value) {}; | |
3128 TracingAgent.Dispatcher.prototype.tracingComplete = function() {}; | |
3129 /** | |
3130 * @param {TracingAgent.Dispatcher} dispatcher | |
3131 */ | |
3132 InspectorBackend.registerTracingDispatcher = function(dispatcher) {} | |
OLD | NEW |