OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "2" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Inspector", | 4 "domain": "Inspector", |
5 "experimental": true, | 5 "experimental": true, |
6 "types": [], | 6 "types": [], |
7 "commands": [ | 7 "commands": [ |
8 { | 8 { |
9 "name": "enable", | 9 "name": "enable", |
10 "description": "Enables inspector domain notifications.", | 10 "description": "Enables inspector domain notifications.", |
11 "handlers": ["browser"] | 11 "handlers": [] |
12 }, | 12 }, |
13 { | 13 { |
14 "name": "disable", | 14 "name": "disable", |
15 "description": "Disables inspector domain notifications.", | 15 "description": "Disables inspector domain notifications.", |
16 "handlers": ["browser"] | 16 "handlers": [] |
17 } | 17 } |
18 ], | 18 ], |
19 "events": [ | 19 "events": [ |
20 { | 20 { |
21 "name": "detached", | 21 "name": "detached", |
22 "description": "Fired when remote debugging connection is about
to be terminated. Contains detach reason.", | 22 "description": "Fired when remote debugging connection is about
to be terminated. Contains detach reason.", |
23 "parameters": [ | 23 "parameters": [ |
24 { "name": "reason", "type": "string", "description": "The re
ason why connection has been terminated." } | 24 { "name": "reason", "type": "string", "description": "The re
ason why connection has been terminated." } |
25 ], | 25 ], |
26 "handlers": ["browser"] | 26 "handlers": [] |
27 }, | 27 }, |
28 { | 28 { |
29 "name": "targetCrashed", | 29 "name": "targetCrashed", |
30 "description": "Fired when debugging target has crashed", | 30 "description": "Fired when debugging target has crashed", |
31 "handlers": ["browser"] | 31 "handlers": [] |
32 } | 32 } |
33 ] | 33 ] |
34 }, | 34 }, |
35 { | 35 { |
36 "domain": "Memory", | 36 "domain": "Memory", |
37 "experimental": true, | 37 "experimental": true, |
38 "types": [ | 38 "types": [ |
39 { | 39 { |
40 "id": "PressureLevel", | 40 "id": "PressureLevel", |
41 "type": "string", | 41 "type": "string", |
42 "enum": ["moderate", "critical"], | 42 "enum": ["moderate", "critical"], |
43 "description": "Memory pressure level." | 43 "description": "Memory pressure level." |
44 } | 44 } |
45 ], | 45 ], |
46 "commands": [ | 46 "commands": [ |
47 { | 47 { |
48 "name": "getDOMCounters", | 48 "name": "getDOMCounters", |
49 "returns": [ | 49 "returns": [ |
50 { "name": "documents", "type": "integer" }, | 50 { "name": "documents", "type": "integer" }, |
51 { "name": "nodes", "type": "integer" }, | 51 { "name": "nodes", "type": "integer" }, |
52 { "name": "jsEventListeners", "type": "integer" } | 52 { "name": "jsEventListeners", "type": "integer" } |
53 ] | 53 ] |
54 }, | 54 }, |
55 { | 55 { |
56 "name": "setPressureNotificationsSuppressed", | 56 "name": "setPressureNotificationsSuppressed", |
57 "description": "Enable/disable suppressing memory pressure notif
ications in all processes.", | 57 "description": "Enable/disable suppressing memory pressure notif
ications in all processes.", |
58 "parameters": [ | 58 "parameters": [ |
59 { "name": "suppressed", "type": "boolean", "description": "I
f true, memory pressure notifications will be suppressed."} | 59 { "name": "suppressed", "type": "boolean", "description": "I
f true, memory pressure notifications will be suppressed."} |
60 ], | 60 ], |
61 "handlers": ["browser"] | 61 "handlers": [] |
62 }, | 62 }, |
63 { | 63 { |
64 "name": "simulatePressureNotification", | 64 "name": "simulatePressureNotification", |
65 "description": "Simulate a memory pressure notification in all p
rocesses.", | 65 "description": "Simulate a memory pressure notification in all p
rocesses.", |
66 "parameters": [ | 66 "parameters": [ |
67 { "name": "level", "$ref": "PressureLevel", "description": "
Memory pressure level of the notification." } | 67 { "name": "level", "$ref": "PressureLevel", "description": "
Memory pressure level of the notification." } |
68 ], | 68 ], |
69 "handlers": ["browser"] | 69 "handlers": [] |
70 } | 70 } |
71 ] | 71 ] |
72 }, | 72 }, |
73 { | 73 { |
74 "domain": "Page", | 74 "domain": "Page", |
75 "description": "Actions and events related to the inspected page belong
to the page domain.", | 75 "description": "Actions and events related to the inspected page belong
to the page domain.", |
76 "dependencies": ["Debugger", "DOM"], | 76 "dependencies": ["Debugger", "DOM"], |
77 "types": [ | 77 "types": [ |
78 { | 78 { |
79 "id": "ResourceType", | 79 "id": "ResourceType", |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 { "name": "pageY", "type": "number", "description": "Vertica
l offset relative to the document (CSS pixels)." }, | 208 { "name": "pageY", "type": "number", "description": "Vertica
l offset relative to the document (CSS pixels)." }, |
209 { "name": "clientWidth", "type": "number", "description": "W
idth (CSS pixels), excludes scrollbar if present." }, | 209 { "name": "clientWidth", "type": "number", "description": "W
idth (CSS pixels), excludes scrollbar if present." }, |
210 { "name": "clientHeight", "type": "number", "description": "
Height (CSS pixels), excludes scrollbar if present." }, | 210 { "name": "clientHeight", "type": "number", "description": "
Height (CSS pixels), excludes scrollbar if present." }, |
211 { "name": "scale", "type": "number", "description": "Scale r
elative to the ideal viewport (size at width=device-width)." } | 211 { "name": "scale", "type": "number", "description": "Scale r
elative to the ideal viewport (size at width=device-width)." } |
212 ] | 212 ] |
213 } | 213 } |
214 ], | 214 ], |
215 "commands": [ | 215 "commands": [ |
216 { | 216 { |
217 "name": "enable", | 217 "name": "enable", |
218 "description": "Enables page domain notifications.", | 218 "description": "Enables page domain notifications." |
219 "handlers": ["browser", "renderer"] | |
220 }, | 219 }, |
221 { | 220 { |
222 "name": "disable", | 221 "name": "disable", |
223 "description": "Disables page domain notifications.", | 222 "description": "Disables page domain notifications." |
224 "handlers": ["browser", "renderer"] | |
225 }, | 223 }, |
226 { | 224 { |
227 "name": "addScriptToEvaluateOnLoad", | 225 "name": "addScriptToEvaluateOnLoad", |
228 "parameters": [ | 226 "parameters": [ |
229 { "name": "scriptSource", "type": "string" } | 227 { "name": "scriptSource", "type": "string" } |
230 ], | 228 ], |
231 "returns": [ | 229 "returns": [ |
232 { "name": "identifier", "$ref": "ScriptIdentifier", "descrip
tion": "Identifier of the added script." } | 230 { "name": "identifier", "$ref": "ScriptIdentifier", "descrip
tion": "Identifier of the added script." } |
233 ], | 231 ], |
234 "experimental": true | 232 "experimental": true |
(...skipping 12 matching lines...) Expand all Loading... |
247 ], | 245 ], |
248 "description": "Controls whether browser will open a new inspect
or window for connected pages.", | 246 "description": "Controls whether browser will open a new inspect
or window for connected pages.", |
249 "experimental": true | 247 "experimental": true |
250 }, | 248 }, |
251 { | 249 { |
252 "name": "reload", | 250 "name": "reload", |
253 "parameters": [ | 251 "parameters": [ |
254 { "name": "ignoreCache", "type": "boolean", "optional": true
, "description": "If true, browser cache is ignored (as if the user pressed Shif
t+refresh)." }, | 252 { "name": "ignoreCache", "type": "boolean", "optional": true
, "description": "If true, browser cache is ignored (as if the user pressed Shif
t+refresh)." }, |
255 { "name": "scriptToEvaluateOnLoad", "type": "string", "optio
nal": true, "description": "If set, the script will be injected into all frames
of the inspected page after reload." } | 253 { "name": "scriptToEvaluateOnLoad", "type": "string", "optio
nal": true, "description": "If set, the script will be injected into all frames
of the inspected page after reload." } |
256 ], | 254 ], |
257 "description": "Reloads given page optionally ignoring the cache
.", | 255 "description": "Reloads given page optionally ignoring the cache
." |
258 "handlers": ["browser", "renderer"] | |
259 }, | 256 }, |
260 { | 257 { |
261 "name": "navigate", | 258 "name": "navigate", |
262 "parameters": [ | 259 "parameters": [ |
263 { "name": "url", "type": "string", "description": "URL to na
vigate the page to." } | 260 { "name": "url", "type": "string", "description": "URL to na
vigate the page to." } |
264 ], | 261 ], |
265 "returns": [ | 262 "returns": [ |
266 { "name": "frameId", "$ref": "FrameId", "experimental": true
, "description": "Frame id that will be navigated." } | 263 { "name": "frameId", "$ref": "FrameId", "experimental": true
, "description": "Frame id that will be navigated." } |
267 ], | 264 ], |
268 "description": "Navigates current page to the given URL.", | 265 "description": "Navigates current page to the given URL." |
269 "handlers": ["browser", "renderer"] | |
270 }, | 266 }, |
271 { | 267 { |
272 "name": "getNavigationHistory", | 268 "name": "getNavigationHistory", |
273 "returns": [ | 269 "returns": [ |
274 { "name": "currentIndex", "type": "integer", "description": "Ind
ex of the current navigation history entry." }, | 270 { "name": "currentIndex", "type": "integer", "description": "Ind
ex of the current navigation history entry." }, |
275 { "name": "entries", "type": "array", "items": { "$ref": "Naviga
tionEntry" }, "description": "Array of navigation history entries." } | 271 { "name": "entries", "type": "array", "items": { "$ref": "Naviga
tionEntry" }, "description": "Array of navigation history entries." } |
276 ], | 272 ], |
277 "description": "Returns navigation history for the current page.", | 273 "description": "Returns navigation history for the current page.", |
278 "experimental": true, | 274 "experimental": true, |
279 "handlers": ["browser"] | 275 "handlers": [] |
280 }, | 276 }, |
281 { | 277 { |
282 "name": "navigateToHistoryEntry", | 278 "name": "navigateToHistoryEntry", |
283 "parameters": [ | 279 "parameters": [ |
284 { "name": "entryId", "type": "integer", "description": "Unique
id of the entry to navigate to." } | 280 { "name": "entryId", "type": "integer", "description": "Unique
id of the entry to navigate to." } |
285 ], | 281 ], |
286 "description": "Navigates current page to the given history entry.
", | 282 "description": "Navigates current page to the given history entry.
", |
287 "experimental": true, | 283 "experimental": true, |
288 "handlers": ["browser"] | 284 "handlers": [] |
289 }, | 285 }, |
290 { | 286 { |
291 "name": "getCookies", | 287 "name": "getCookies", |
292 "returns": [ | 288 "returns": [ |
293 { "name": "cookies", "type": "array", "items": { "$ref": "Ne
twork.Cookie" }, "description": "Array of cookie objects." } | 289 { "name": "cookies", "type": "array", "items": { "$ref": "Ne
twork.Cookie" }, "description": "Array of cookie objects." } |
294 ], | 290 ], |
295 "description": "Returns all browser cookies. Depending on the ba
ckend support, will return detailed cookie information in the <code>cookies</cod
e> field.", | 291 "description": "Returns all browser cookies. Depending on the ba
ckend support, will return detailed cookie information in the <code>cookies</cod
e> field.", |
296 "handlers": ["browser"], | 292 "handlers": [], |
297 "async": true, | 293 "async": true, |
298 "experimental": true, | 294 "experimental": true, |
299 "redirect": "Network" | 295 "redirect": "Network" |
300 }, | 296 }, |
301 { | 297 { |
302 "name": "deleteCookie", | 298 "name": "deleteCookie", |
303 "parameters": [ | 299 "parameters": [ |
304 { "name": "cookieName", "type": "string", "description": "Na
me of the cookie to remove." }, | 300 { "name": "cookieName", "type": "string", "description": "Na
me of the cookie to remove." }, |
305 { "name": "url", "type": "string", "description": "URL to ma
tch cooke domain and path." } | 301 { "name": "url", "type": "string", "description": "URL to ma
tch cooke domain and path." } |
306 ], | 302 ], |
307 "description": "Deletes browser cookie with given name, domain a
nd path.", | 303 "description": "Deletes browser cookie with given name, domain a
nd path.", |
308 "handlers": ["browser"], | 304 "handlers": [], |
309 "async": true, | 305 "async": true, |
310 "experimental": true, | 306 "experimental": true, |
311 "redirect": "Network" | 307 "redirect": "Network" |
312 }, | 308 }, |
313 { | 309 { |
314 "name": "getResourceTree", | 310 "name": "getResourceTree", |
315 "description": "Returns present frame / resource tree structure.
", | 311 "description": "Returns present frame / resource tree structure.
", |
316 "returns": [ | 312 "returns": [ |
317 { "name": "frameTree", "$ref": "FrameResourceTree", "descrip
tion": "Present frame / resource tree structure." } | 313 { "name": "frameTree", "$ref": "FrameResourceTree", "descrip
tion": "Present frame / resource tree structure." } |
318 ], | 314 ], |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 { "name": "fitWindow", "type": "boolean", "description": "Wh
ether a view that exceeds the available browser window area should be scaled dow
n to fit." }, | 364 { "name": "fitWindow", "type": "boolean", "description": "Wh
ether a view that exceeds the available browser window area should be scaled dow
n to fit." }, |
369 { "name": "scale", "type": "number", "optional": true, "desc
ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode."
}, | 365 { "name": "scale", "type": "number", "optional": true, "desc
ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode."
}, |
370 { "name": "offsetX", "type": "number", "optional": true, "de
scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m
ode." }, | 366 { "name": "offsetX", "type": "number", "optional": true, "de
scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m
ode." }, |
371 { "name": "offsetY", "type": "number", "optional": true, "de
scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m
ode." }, | 367 { "name": "offsetY", "type": "number", "optional": true, "de
scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m
ode." }, |
372 { "name": "screenWidth", "type": "integer", "optional": true
, "description": "Overriding screen width value in pixels (minimum 0, maximum 10
000000). Only used for |mobile==true|." }, | 368 { "name": "screenWidth", "type": "integer", "optional": true
, "description": "Overriding screen width value in pixels (minimum 0, maximum 10
000000). Only used for |mobile==true|." }, |
373 { "name": "screenHeight", "type": "integer", "optional": tru
e, "description": "Overriding screen height value in pixels (minimum 0, maximum
10000000). Only used for |mobile==true|." }, | 369 { "name": "screenHeight", "type": "integer", "optional": tru
e, "description": "Overriding screen height value in pixels (minimum 0, maximum
10000000). Only used for |mobile==true|." }, |
374 { "name": "positionX", "type": "integer", "optional": true,
"description": "Overriding view X position on screen in pixels (minimum 0, maxim
um 10000000). Only used for |mobile==true|." }, | 370 { "name": "positionX", "type": "integer", "optional": true,
"description": "Overriding view X position on screen in pixels (minimum 0, maxim
um 10000000). Only used for |mobile==true|." }, |
375 { "name": "positionY", "type": "integer", "optional": true,
"description": "Overriding view Y position on screen in pixels (minimum 0, maxim
um 10000000). Only used for |mobile==true|." }, | 371 { "name": "positionY", "type": "integer", "optional": true,
"description": "Overriding view Y position on screen in pixels (minimum 0, maxim
um 10000000). Only used for |mobile==true|." }, |
376 { "name": "screenOrientation", "$ref": "Emulation.ScreenOrie
ntation", "optional": true, "description": "Screen orientation override." } | 372 { "name": "screenOrientation", "$ref": "Emulation.ScreenOrie
ntation", "optional": true, "description": "Screen orientation override." } |
377 ], | 373 ], |
378 "handlers": ["browser"], | 374 "handlers": [], |
379 "redirect": "Emulation", | 375 "redirect": "Emulation", |
380 "experimental": true | 376 "experimental": true |
381 }, | 377 }, |
382 { | 378 { |
383 "name": "clearDeviceMetricsOverride", | 379 "name": "clearDeviceMetricsOverride", |
384 "description": "Clears the overriden device metrics.", | 380 "description": "Clears the overriden device metrics.", |
385 "handlers": ["browser"], | 381 "handlers": [], |
386 "redirect": "Emulation", | 382 "redirect": "Emulation", |
387 "experimental": true | 383 "experimental": true |
388 }, | 384 }, |
389 { | 385 { |
390 "name": "setGeolocationOverride", | 386 "name": "setGeolocationOverride", |
391 "description": "Overrides the Geolocation Position or Error. Omi
tting any of the parameters emulates position unavailable.", | 387 "description": "Overrides the Geolocation Position or Error. Omi
tting any of the parameters emulates position unavailable.", |
392 "parameters": [ | 388 "parameters": [ |
393 { "name": "latitude", "type": "number", "optional": true, "d
escription": "Mock latitude"}, | 389 { "name": "latitude", "type": "number", "optional": true, "d
escription": "Mock latitude"}, |
394 { "name": "longitude", "type": "number", "optional": true, "
description": "Mock longitude"}, | 390 { "name": "longitude", "type": "number", "optional": true, "
description": "Mock longitude"}, |
395 { "name": "accuracy", "type": "number", "optional": true, "d
escription": "Mock accuracy"} | 391 { "name": "accuracy", "type": "number", "optional": true, "d
escription": "Mock accuracy"} |
396 ], | 392 ], |
397 "redirect": "Emulation", | 393 "redirect": "Emulation", |
398 "handlers": ["browser"] | 394 "handlers": [] |
399 }, | 395 }, |
400 { | 396 { |
401 "name": "clearGeolocationOverride", | 397 "name": "clearGeolocationOverride", |
402 "description": "Clears the overriden Geolocation Position and Er
ror.", | 398 "description": "Clears the overriden Geolocation Position and Er
ror.", |
403 "redirect": "Emulation", | 399 "redirect": "Emulation", |
404 "handlers": ["browser"] | 400 "handlers": [] |
405 }, | 401 }, |
406 { | 402 { |
407 "name": "setDeviceOrientationOverride", | 403 "name": "setDeviceOrientationOverride", |
408 "description": "Overrides the Device Orientation.", | 404 "description": "Overrides the Device Orientation.", |
409 "parameters": [ | 405 "parameters": [ |
410 { "name": "alpha", "type": "number", "description": "Mock al
pha"}, | 406 { "name": "alpha", "type": "number", "description": "Mock al
pha"}, |
411 { "name": "beta", "type": "number", "description": "Mock bet
a"}, | 407 { "name": "beta", "type": "number", "description": "Mock bet
a"}, |
412 { "name": "gamma", "type": "number", "description": "Mock ga
mma"} | 408 { "name": "gamma", "type": "number", "description": "Mock ga
mma"} |
413 ], | 409 ], |
414 "redirect": "DeviceOrientation", | 410 "redirect": "DeviceOrientation", |
415 "experimental": true | 411 "experimental": true |
416 }, | 412 }, |
417 { | 413 { |
418 "name": "clearDeviceOrientationOverride", | 414 "name": "clearDeviceOrientationOverride", |
419 "description": "Clears the overridden Device Orientation.", | 415 "description": "Clears the overridden Device Orientation.", |
420 "redirect": "DeviceOrientation", | 416 "redirect": "DeviceOrientation", |
421 "experimental": true | 417 "experimental": true |
422 }, | 418 }, |
423 { | 419 { |
424 "name": "setTouchEmulationEnabled", | 420 "name": "setTouchEmulationEnabled", |
425 "parameters": [ | 421 "parameters": [ |
426 { "name": "enabled", "type": "boolean", "description": "Whet
her the touch event emulation should be enabled." }, | 422 { "name": "enabled", "type": "boolean", "description": "Whet
her the touch event emulation should be enabled." }, |
427 { "name": "configuration", "type": "string", "enum": ["mobil
e", "desktop"], "optional": true, "description": "Touch/gesture events configura
tion. Default: current platform." } | 423 { "name": "configuration", "type": "string", "enum": ["mobil
e", "desktop"], "optional": true, "description": "Touch/gesture events configura
tion. Default: current platform." } |
428 ], | 424 ], |
429 "description": "Toggles mouse event-based touch event emulation.
", | 425 "description": "Toggles mouse event-based touch event emulation.
", |
430 "experimental": true, | 426 "experimental": true, |
431 "redirect": "Emulation", | 427 "redirect": "Emulation" |
432 "handlers": ["browser", "renderer"] | |
433 }, | 428 }, |
434 { | 429 { |
435 "name": "captureScreenshot", | 430 "name": "captureScreenshot", |
436 "async": true, | 431 "async": true, |
437 "description": "Capture page screenshot.", | 432 "description": "Capture page screenshot.", |
438 "returns": [ | 433 "returns": [ |
439 { "name": "data", "type": "string", "description": "Base64-e
ncoded image data (PNG)." } | 434 { "name": "data", "type": "string", "description": "Base64-e
ncoded image data (PNG)." } |
440 ], | 435 ], |
441 "experimental": true, | 436 "experimental": true, |
442 "handlers": ["browser"] | 437 "handlers": [] |
443 }, | 438 }, |
444 { | 439 { |
445 "name": "startScreencast", | 440 "name": "startScreencast", |
446 "description": "Starts sending each frame using the <code>screen
castFrame</code> event.", | 441 "description": "Starts sending each frame using the <code>screen
castFrame</code> event.", |
447 "parameters": [ | 442 "parameters": [ |
448 { "name": "format", "type": "string", "optional": true, "enu
m": ["jpeg", "png"], "description": "Image compression format." }, | 443 { "name": "format", "type": "string", "optional": true, "enu
m": ["jpeg", "png"], "description": "Image compression format." }, |
449 { "name": "quality", "type": "integer", "optional": true, "d
escription": "Compression quality from range [0..100]." }, | 444 { "name": "quality", "type": "integer", "optional": true, "d
escription": "Compression quality from range [0..100]." }, |
450 { "name": "maxWidth", "type": "integer", "optional": true, "
description": "Maximum screenshot width." }, | 445 { "name": "maxWidth", "type": "integer", "optional": true, "
description": "Maximum screenshot width." }, |
451 { "name": "maxHeight", "type": "integer", "optional": true,
"description": "Maximum screenshot height." }, | 446 { "name": "maxHeight", "type": "integer", "optional": true,
"description": "Maximum screenshot height." }, |
452 { "name": "everyNthFrame", "type": "integer", "optional": tr
ue, "description": "Send every n-th frame." } | 447 { "name": "everyNthFrame", "type": "integer", "optional": tr
ue, "description": "Send every n-th frame." } |
453 ], | 448 ], |
454 "experimental": true, | 449 "experimental": true |
455 "handlers": ["browser", "renderer"] | |
456 }, | 450 }, |
457 { | 451 { |
458 "name": "stopScreencast", | 452 "name": "stopScreencast", |
459 "description": "Stops sending each frame in the <code>screencast
Frame</code>.", | 453 "description": "Stops sending each frame in the <code>screencast
Frame</code>.", |
460 "experimental": true, | 454 "experimental": true |
461 "handlers": ["browser", "renderer"] | |
462 }, | 455 }, |
463 { | 456 { |
464 "name": "screencastFrameAck", | 457 "name": "screencastFrameAck", |
465 "description": "Acknowledges that a screencast frame has been re
ceived by the frontend.", | 458 "description": "Acknowledges that a screencast frame has been re
ceived by the frontend.", |
466 "parameters": [ | 459 "parameters": [ |
467 { "name": "sessionId", "type": "integer", "description": "Fr
ame number." } | 460 { "name": "sessionId", "type": "integer", "description": "Fr
ame number." } |
468 ], | 461 ], |
469 "experimental": true, | 462 "experimental": true, |
470 "handlers": ["browser"] | 463 "handlers": [] |
471 }, | 464 }, |
472 { | 465 { |
473 "name": "handleJavaScriptDialog", | 466 "name": "handleJavaScriptDialog", |
474 "description": "Accepts or dismisses a JavaScript initiated dial
og (alert, confirm, prompt, or onbeforeunload).", | 467 "description": "Accepts or dismisses a JavaScript initiated dial
og (alert, confirm, prompt, or onbeforeunload).", |
475 "parameters": [ | 468 "parameters": [ |
476 { "name": "accept", "type": "boolean", "description": "Wheth
er to accept or dismiss the dialog." }, | 469 { "name": "accept", "type": "boolean", "description": "Wheth
er to accept or dismiss the dialog." }, |
477 { "name": "promptText", "type": "string", "optional": true,
"description": "The text to enter into the dialog prompt before accepting. Used
only if this is a prompt dialog." } | 470 { "name": "promptText", "type": "string", "optional": true,
"description": "The text to enter into the dialog prompt before accepting. Used
only if this is a prompt dialog." } |
478 ], | 471 ], |
479 "handlers": ["browser"] | 472 "handlers": [] |
480 }, | 473 }, |
481 { | 474 { |
482 "name": "setColorPickerEnabled", | 475 "name": "setColorPickerEnabled", |
483 "parameters": [ | 476 "parameters": [ |
484 { "name": "enabled", "type": "boolean", "description": "Show
s / hides color picker" } | 477 { "name": "enabled", "type": "boolean", "description": "Show
s / hides color picker" } |
485 ], | 478 ], |
486 "description": "Shows / hides color picker", | 479 "description": "Shows / hides color picker", |
487 "experimental": true, | 480 "experimental": true, |
488 "handlers": ["browser"] | 481 "handlers": [] |
489 }, | 482 }, |
490 { | 483 { |
491 "name": "configureOverlay", | 484 "name": "configureOverlay", |
492 "parameters": [ | 485 "parameters": [ |
493 { "name": "suspended", "type": "boolean", "optional": true,
"description": "Whether overlay should be suspended and not consume any resource
s." }, | 486 { "name": "suspended", "type": "boolean", "optional": true,
"description": "Whether overlay should be suspended and not consume any resource
s." }, |
494 { "name": "message", "type": "string", "optional": true, "de
scription": "Overlay message to display." } | 487 { "name": "message", "type": "string", "optional": true, "de
scription": "Overlay message to display." } |
495 ], | 488 ], |
496 "experimental": true, | 489 "experimental": true, |
497 "description": "Configures overlay." | 490 "description": "Configures overlay." |
498 }, | 491 }, |
499 { | 492 { |
500 "name": "getAppManifest", | 493 "name": "getAppManifest", |
501 "experimental": true, | 494 "experimental": true, |
502 "returns": [ | 495 "returns": [ |
503 { "name": "url", "type": "string", "description": "Manifest
location." }, | 496 { "name": "url", "type": "string", "description": "Manifest
location." }, |
504 { "name": "errors", "type": "array", "items": { "$ref": "App
ManifestError" } }, | 497 { "name": "errors", "type": "array", "items": { "$ref": "App
ManifestError" } }, |
505 { "name": "data", "type": "string", "optional": true, "descr
iption": "Manifest content." } | 498 { "name": "data", "type": "string", "optional": true, "descr
iption": "Manifest content." } |
506 ], | 499 ], |
507 "handlers": ["none"] | 500 "handlers": ["none"] |
508 }, | 501 }, |
509 { | 502 { |
510 "name": "requestAppBanner", | 503 "name": "requestAppBanner", |
511 "experimental": true, | 504 "experimental": true, |
512 "handlers": ["browser"] | 505 "handlers": [] |
513 }, | 506 }, |
514 { | 507 { |
515 "name": "setBlockedEventsWarningThreshold", | 508 "name": "setBlockedEventsWarningThreshold", |
516 "experimental": true, | 509 "experimental": true, |
517 "parameters": [ | 510 "parameters": [ |
518 { "name": "threshold", "type": "number", "description": "If
set to a positive number, specifies threshold in seconds for input event latency
that will cause a console warning about blocked event to be issued. If zero or
less, the warning is disabled." } | 511 { "name": "threshold", "type": "number", "description": "If
set to a positive number, specifies threshold in seconds for input event latency
that will cause a console warning about blocked event to be issued. If zero or
less, the warning is disabled." } |
519 ] | 512 ] |
520 }, | 513 }, |
521 { | 514 { |
522 "name": "setControlNavigations", | 515 "name": "setControlNavigations", |
523 "parameters": [ | 516 "parameters": [ |
524 { "name": "enabled", "type": "boolean" } | 517 { "name": "enabled", "type": "boolean" } |
525 ], | 518 ], |
526 "description": "Toggles navigation throttling which allows progr
amatic control over navigation and redirect response.", | 519 "description": "Toggles navigation throttling which allows progr
amatic control over navigation and redirect response.", |
527 "experimental": true, | 520 "experimental": true, |
528 "handlers": ["browser"] | 521 "handlers": [] |
529 }, | 522 }, |
530 { | 523 { |
531 "name": "processNavigation", | 524 "name": "processNavigation", |
532 "parameters": [ | 525 "parameters": [ |
533 { "name": "response", "$ref": "NavigationResponse" }, | 526 { "name": "response", "$ref": "NavigationResponse" }, |
534 { "name": "navigationId", "type": "integer" } | 527 { "name": "navigationId", "type": "integer" } |
535 ], | 528 ], |
536 "description": "Should be sent in response to a navigationReques
ted or a redirectRequested event, telling the browser how to handle the navigati
on.", | 529 "description": "Should be sent in response to a navigationReques
ted or a redirectRequested event, telling the browser how to handle the navigati
on.", |
537 "experimental": true, | 530 "experimental": true, |
538 "handlers": ["browser"] | 531 "handlers": [] |
539 }, | 532 }, |
540 { | 533 { |
541 "name": "getLayoutMetrics", | 534 "name": "getLayoutMetrics", |
542 "description": "Returns metrics relating to the layouting of the
page, such as viewport bounds/scale.", | 535 "description": "Returns metrics relating to the layouting of the
page, such as viewport bounds/scale.", |
543 "experimental": true, | 536 "experimental": true, |
544 "returns": [ | 537 "returns": [ |
545 { "name": "layoutViewport", "$ref": "LayoutViewport", "descr
iption": "Metrics relating to the layout viewport." }, | 538 { "name": "layoutViewport", "$ref": "LayoutViewport", "descr
iption": "Metrics relating to the layout viewport." }, |
546 { "name": "visualViewport", "$ref": "VisualViewport", "descr
iption": "Metrics relating to the visual viewport." } | 539 { "name": "visualViewport", "$ref": "VisualViewport", "descr
iption": "Metrics relating to the visual viewport." } |
547 ] | 540 ] |
548 } | 541 } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 }, | 629 }, |
637 { | 630 { |
638 "name": "screencastFrame", | 631 "name": "screencastFrame", |
639 "description": "Compressed image data requested by the <code>sta
rtScreencast</code>.", | 632 "description": "Compressed image data requested by the <code>sta
rtScreencast</code>.", |
640 "parameters": [ | 633 "parameters": [ |
641 { "name": "data", "type": "string", "description": "Base64-e
ncoded compressed image." }, | 634 { "name": "data", "type": "string", "description": "Base64-e
ncoded compressed image." }, |
642 { "name": "metadata", "$ref": "ScreencastFrameMetadata", "de
scription": "Screencast frame metadata."}, | 635 { "name": "metadata", "$ref": "ScreencastFrameMetadata", "de
scription": "Screencast frame metadata."}, |
643 { "name": "sessionId", "type": "integer", "description": "Fr
ame number."} | 636 { "name": "sessionId", "type": "integer", "description": "Fr
ame number."} |
644 ], | 637 ], |
645 "experimental": true, | 638 "experimental": true, |
646 "handlers": ["browser"] | 639 "handlers": [] |
647 }, | 640 }, |
648 { | 641 { |
649 "name": "screencastVisibilityChanged", | 642 "name": "screencastVisibilityChanged", |
650 "description": "Fired when the page with currently enabled scree
ncast was shown or hidden </code>.", | 643 "description": "Fired when the page with currently enabled scree
ncast was shown or hidden </code>.", |
651 "parameters": [ | 644 "parameters": [ |
652 { "name": "visible", "type": "boolean", "description": "True
if the page is visible." } | 645 { "name": "visible", "type": "boolean", "description": "True
if the page is visible." } |
653 ], | 646 ], |
654 "experimental": true, | 647 "experimental": true, |
655 "handlers": ["browser"] | 648 "handlers": [] |
656 }, | 649 }, |
657 { | 650 { |
658 "name": "colorPicked", | 651 "name": "colorPicked", |
659 "description": "Fired when a color has been picked.", | 652 "description": "Fired when a color has been picked.", |
660 "parameters": [ | 653 "parameters": [ |
661 { "name": "color", "$ref": "DOM.RGBA", "description": "RGBA
of the picked color." } | 654 { "name": "color", "$ref": "DOM.RGBA", "description": "RGBA
of the picked color." } |
662 ], | 655 ], |
663 "experimental": true, | 656 "experimental": true, |
664 "handlers": ["browser"] | 657 "handlers": [] |
665 }, | 658 }, |
666 { | 659 { |
667 "name": "interstitialShown", | 660 "name": "interstitialShown", |
668 "description": "Fired when interstitial page was shown", | 661 "description": "Fired when interstitial page was shown", |
669 "handlers": ["browser"] | 662 "handlers": [] |
670 }, | 663 }, |
671 { | 664 { |
672 "name": "interstitialHidden", | 665 "name": "interstitialHidden", |
673 "description": "Fired when interstitial page was hidden", | 666 "description": "Fired when interstitial page was hidden", |
674 "handlers": ["browser"] | 667 "handlers": [] |
675 }, | 668 }, |
676 { | 669 { |
677 "name": "navigationRequested", | 670 "name": "navigationRequested", |
678 "description": "Fired when a navigation is started if navigation
throttles are enabled. The navigation will be deferred until processNavigation
is called.", | 671 "description": "Fired when a navigation is started if navigation
throttles are enabled. The navigation will be deferred until processNavigation
is called.", |
679 "parameters": [ | 672 "parameters": [ |
680 { "name": "isInMainFrame", "type": "boolean", "description":
"Whether the navigation is taking place in the main frame or in a subframe." }, | 673 { "name": "isInMainFrame", "type": "boolean", "description":
"Whether the navigation is taking place in the main frame or in a subframe." }, |
681 { "name": "isRedirect", "type": "boolean", "description": "W
hether the navigation has encountered a server redirect or not." }, | 674 { "name": "isRedirect", "type": "boolean", "description": "W
hether the navigation has encountered a server redirect or not." }, |
682 { "name": "navigationId", "type": "integer" }, | 675 { "name": "navigationId", "type": "integer" }, |
683 { "name": "url", "type": "string", "description": "URL of re
quested navigation." } | 676 { "name": "url", "type": "string", "description": "URL of re
quested navigation." } |
684 ], | 677 ], |
685 "handlers": ["browser"] | 678 "handlers": [] |
686 } | 679 } |
687 ] | 680 ] |
688 }, | 681 }, |
689 { | 682 { |
690 "domain": "Rendering", | 683 "domain": "Rendering", |
691 "description": "This domain allows to control rendering of the page.", | 684 "description": "This domain allows to control rendering of the page.", |
692 "experimental": true, | 685 "experimental": true, |
693 "commands": [ | 686 "commands": [ |
694 { | 687 { |
695 "name": "setShowPaintRects", | 688 "name": "setShowPaintRects", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 { "name": "fitWindow", "type": "boolean", "description": "Wh
ether a view that exceeds the available browser window area should be scaled dow
n to fit." }, | 758 { "name": "fitWindow", "type": "boolean", "description": "Wh
ether a view that exceeds the available browser window area should be scaled dow
n to fit." }, |
766 { "name": "scale", "type": "number", "optional": true, "expe
rimental": true, "description": "Scale to apply to resulting view image. Ignored
in |fitWindow| mode." }, | 759 { "name": "scale", "type": "number", "optional": true, "expe
rimental": true, "description": "Scale to apply to resulting view image. Ignored
in |fitWindow| mode." }, |
767 { "name": "offsetX", "type": "number", "optional": true, "de
precated": true, "experimental": true, "description": "Not used." }, | 760 { "name": "offsetX", "type": "number", "optional": true, "de
precated": true, "experimental": true, "description": "Not used." }, |
768 { "name": "offsetY", "type": "number", "optional": true, "de
precated": true, "experimental": true, "description": "Not used." }, | 761 { "name": "offsetY", "type": "number", "optional": true, "de
precated": true, "experimental": true, "description": "Not used." }, |
769 { "name": "screenWidth", "type": "integer", "optional": true
, "experimental": true, "description": "Overriding screen width value in pixels
(minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 762 { "name": "screenWidth", "type": "integer", "optional": true
, "experimental": true, "description": "Overriding screen width value in pixels
(minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
770 { "name": "screenHeight", "type": "integer", "optional": tru
e, "experimental": true, "description": "Overriding screen height value in pixel
s (minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 763 { "name": "screenHeight", "type": "integer", "optional": tru
e, "experimental": true, "description": "Overriding screen height value in pixel
s (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
771 { "name": "positionX", "type": "integer", "optional": true,
"experimental": true, "description": "Overriding view X position on screen in pi
xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 764 { "name": "positionX", "type": "integer", "optional": true,
"experimental": true, "description": "Overriding view X position on screen in pi
xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
772 { "name": "positionY", "type": "integer", "optional": true,
"experimental": true, "description": "Overriding view Y position on screen in pi
xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 765 { "name": "positionY", "type": "integer", "optional": true,
"experimental": true, "description": "Overriding view Y position on screen in pi
xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
773 { "name": "screenOrientation", "$ref": "ScreenOrientation",
"optional": true, "description": "Screen orientation override." } | 766 { "name": "screenOrientation", "$ref": "ScreenOrientation",
"optional": true, "description": "Screen orientation override." } |
774 ], | 767 ], |
775 "handlers": ["browser"] | 768 "handlers": [] |
776 }, | 769 }, |
777 { | 770 { |
778 "name": "clearDeviceMetricsOverride", | 771 "name": "clearDeviceMetricsOverride", |
779 "description": "Clears the overriden device metrics.", | 772 "description": "Clears the overriden device metrics.", |
780 "handlers": ["browser"] | 773 "handlers": [] |
781 }, | 774 }, |
782 { | 775 { |
783 "name": "forceViewport", | 776 "name": "forceViewport", |
784 "description": "Overrides the visible area of the page. The chan
ge is hidden from the page, i.e. the observable scroll position and page scale d
oes not change. In effect, the command moves the specified area of the page into
the top-left corner of the frame.", | 777 "description": "Overrides the visible area of the page. The chan
ge is hidden from the page, i.e. the observable scroll position and page scale d
oes not change. In effect, the command moves the specified area of the page into
the top-left corner of the frame.", |
785 "experimental": true, | 778 "experimental": true, |
786 "parameters": [ | 779 "parameters": [ |
787 { "name": "x", "type": "number", "description": "X coordinat
e of top-left corner of the area (CSS pixels)." }, | 780 { "name": "x", "type": "number", "description": "X coordinat
e of top-left corner of the area (CSS pixels)." }, |
788 { "name": "y", "type": "number", "description": "Y coordinat
e of top-left corner of the area (CSS pixels)." }, | 781 { "name": "y", "type": "number", "description": "Y coordinat
e of top-left corner of the area (CSS pixels)." }, |
789 { "name": "scale", "type": "number", "description": "Scale t
o apply to the area (relative to a page scale of 1.0)." } | 782 { "name": "scale", "type": "number", "description": "Scale t
o apply to the area (relative to a page scale of 1.0)." } |
790 ] | 783 ] |
(...skipping 17 matching lines...) Expand all Loading... |
808 ] | 801 ] |
809 }, | 802 }, |
810 { | 803 { |
811 "name": "setVisibleSize", | 804 "name": "setVisibleSize", |
812 "description": "Resizes the frame/viewport of the page. Note tha
t this does not affect the frame's container (e.g. browser window). Can be used
to produce screenshots of the specified size. Not supported on Android.", | 805 "description": "Resizes the frame/viewport of the page. Note tha
t this does not affect the frame's container (e.g. browser window). Can be used
to produce screenshots of the specified size. Not supported on Android.", |
813 "experimental": true, | 806 "experimental": true, |
814 "parameters": [ | 807 "parameters": [ |
815 { "name": "width", "type": "integer", "description": "Frame
width (DIP)." }, | 808 { "name": "width", "type": "integer", "description": "Frame
width (DIP)." }, |
816 { "name": "height", "type": "integer", "description": "Frame
height (DIP)." } | 809 { "name": "height", "type": "integer", "description": "Frame
height (DIP)." } |
817 ], | 810 ], |
818 "handlers": ["browser"] | 811 "handlers": [] |
819 }, | 812 }, |
820 { | 813 { |
821 "name": "setScriptExecutionDisabled", | 814 "name": "setScriptExecutionDisabled", |
822 "description": "Switches script execution in the page.", | 815 "description": "Switches script execution in the page.", |
823 "experimental": true, | 816 "experimental": true, |
824 "parameters": [ | 817 "parameters": [ |
825 { "name": "value", "type": "boolean", "description": "Whethe
r script execution should be disabled in the page." } | 818 { "name": "value", "type": "boolean", "description": "Whethe
r script execution should be disabled in the page." } |
826 ] | 819 ] |
827 }, | 820 }, |
828 { | 821 { |
829 "name": "setGeolocationOverride", | 822 "name": "setGeolocationOverride", |
830 "description": "Overrides the Geolocation Position or Error. Omi
tting any of the parameters emulates position unavailable.", | 823 "description": "Overrides the Geolocation Position or Error. Omi
tting any of the parameters emulates position unavailable.", |
831 "experimental": true, | 824 "experimental": true, |
832 "parameters": [ | 825 "parameters": [ |
833 { "name": "latitude", "type": "number", "optional": true, "d
escription": "Mock latitude"}, | 826 { "name": "latitude", "type": "number", "optional": true, "d
escription": "Mock latitude"}, |
834 { "name": "longitude", "type": "number", "optional": true, "
description": "Mock longitude"}, | 827 { "name": "longitude", "type": "number", "optional": true, "
description": "Mock longitude"}, |
835 { "name": "accuracy", "type": "number", "optional": true, "d
escription": "Mock accuracy"} | 828 { "name": "accuracy", "type": "number", "optional": true, "d
escription": "Mock accuracy"} |
836 ], | 829 ], |
837 "handlers": ["browser"] | 830 "handlers": [] |
838 }, | 831 }, |
839 { | 832 { |
840 "name": "clearGeolocationOverride", | 833 "name": "clearGeolocationOverride", |
841 "description": "Clears the overriden Geolocation Position and Er
ror.", | 834 "description": "Clears the overriden Geolocation Position and Er
ror.", |
842 "experimental": true, | 835 "experimental": true, |
843 "handlers": ["browser"] | 836 "handlers": [] |
844 }, | 837 }, |
845 { | 838 { |
846 "name": "setTouchEmulationEnabled", | 839 "name": "setTouchEmulationEnabled", |
847 "parameters": [ | 840 "parameters": [ |
848 { "name": "enabled", "type": "boolean", "description": "Whet
her the touch event emulation should be enabled." }, | 841 { "name": "enabled", "type": "boolean", "description": "Whet
her the touch event emulation should be enabled." }, |
849 { "name": "configuration", "type": "string", "enum": ["mobil
e", "desktop"], "optional": true, "description": "Touch/gesture events configura
tion. Default: current platform." } | 842 { "name": "configuration", "type": "string", "enum": ["mobil
e", "desktop"], "optional": true, "description": "Touch/gesture events configura
tion. Default: current platform." } |
850 ], | 843 ], |
851 "description": "Toggles mouse event-based touch event emulation.
", | 844 "description": "Toggles mouse event-based touch event emulation.
" |
852 "handlers": ["browser", "renderer"] | |
853 }, | 845 }, |
854 { | 846 { |
855 "name": "setEmulatedMedia", | 847 "name": "setEmulatedMedia", |
856 "parameters": [ | 848 "parameters": [ |
857 { "name": "media", "type": "string", "description": "Media t
ype to emulate. Empty string disables the override." } | 849 { "name": "media", "type": "string", "description": "Media t
ype to emulate. Empty string disables the override." } |
858 ], | 850 ], |
859 "description": "Emulates the given media for CSS media queries." | 851 "description": "Emulates the given media for CSS media queries." |
860 }, | 852 }, |
861 { | 853 { |
862 "name": "setCPUThrottlingRate", | 854 "name": "setCPUThrottlingRate", |
863 "parameters": [ | 855 "parameters": [ |
864 { "name": "rate", "type": "number", "description": "Throttli
ng rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)." } | 856 { "name": "rate", "type": "number", "description": "Throttli
ng rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)." } |
865 ], | 857 ], |
866 "experimental": true, | 858 "experimental": true, |
867 "description": "Enables CPU throttling to emulate slow CPUs." | 859 "description": "Enables CPU throttling to emulate slow CPUs." |
868 }, | 860 }, |
869 { | 861 { |
870 "name": "canEmulate", | 862 "name": "canEmulate", |
871 "description": "Tells whether emulation is supported.", | 863 "description": "Tells whether emulation is supported.", |
872 "returns": [ | 864 "returns": [ |
873 { "name": "result", "type": "boolean", "description": "True
if emulation is supported." } | 865 { "name": "result", "type": "boolean", "description": "True
if emulation is supported." } |
874 ], | 866 ], |
875 "experimental": true, | 867 "experimental": true, |
876 "handlers": ["browser"] | 868 "handlers": [] |
877 }, | 869 }, |
878 { | 870 { |
879 "name": "setVirtualTimePolicy", | 871 "name": "setVirtualTimePolicy", |
880 "description": "Turns on virtual time for all frames (replacing
real-time with a synthetic time source) and sets the current virtual time policy
. Note this supersedes any previous time budget.", | 872 "description": "Turns on virtual time for all frames (replacing
real-time with a synthetic time source) and sets the current virtual time policy
. Note this supersedes any previous time budget.", |
881 "parameters": [ | 873 "parameters": [ |
882 { "name": "policy", "$ref": "VirtualTimePolicy" }, | 874 { "name": "policy", "$ref": "VirtualTimePolicy" }, |
883 { "name": "budget", "type": "integer", "optional": true, "de
scription": "If set, after this many virtual milliseconds have elapsed virtual t
ime will be paused and a virtualTimeBudgetExpired event is sent." } | 875 { "name": "budget", "type": "integer", "optional": true, "de
scription": "If set, after this many virtual milliseconds have elapsed virtual t
ime will be paused and a virtualTimeBudgetExpired event is sent." } |
884 ], | 876 ], |
885 "experimental": true | 877 "experimental": true |
886 } | 878 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 { "name": "ranInsecureContentStyle", "$ref": "SecurityState"
, "description": "Security state representing a page that ran insecure content."
}, | 923 { "name": "ranInsecureContentStyle", "$ref": "SecurityState"
, "description": "Security state representing a page that ran insecure content."
}, |
932 { "name": "displayedInsecureContentStyle", "$ref": "Security
State", "description": "Security state representing a page that displayed insecu
re content." } | 924 { "name": "displayedInsecureContentStyle", "$ref": "Security
State", "description": "Security state representing a page that displayed insecu
re content." } |
933 ], | 925 ], |
934 "description": "Information about insecure content on the page." | 926 "description": "Information about insecure content on the page." |
935 } | 927 } |
936 ], | 928 ], |
937 "commands": [ | 929 "commands": [ |
938 { | 930 { |
939 "name": "enable", | 931 "name": "enable", |
940 "description": "Enables tracking security state changes.", | 932 "description": "Enables tracking security state changes.", |
941 "handlers": ["browser"] | 933 "handlers": [] |
942 }, | 934 }, |
943 { | 935 { |
944 "name": "disable", | 936 "name": "disable", |
945 "description": "Disables tracking security state changes.", | 937 "description": "Disables tracking security state changes.", |
946 "handlers": ["browser"] | 938 "handlers": [] |
947 }, | 939 }, |
948 { | 940 { |
949 "name": "showCertificateViewer", | 941 "name": "showCertificateViewer", |
950 "description": "Displays native dialog with the certificate deta
ils.", | 942 "description": "Displays native dialog with the certificate deta
ils.", |
951 "handlers": ["browser"] | 943 "handlers": [] |
952 } | 944 } |
953 ], | 945 ], |
954 "events": [ | 946 "events": [ |
955 { | 947 { |
956 "name": "securityStateChanged", | 948 "name": "securityStateChanged", |
957 "description": "The security state of the page changed.", | 949 "description": "The security state of the page changed.", |
958 "parameters": [ | 950 "parameters": [ |
959 { "name": "securityState", "$ref": "SecurityState", "descrip
tion": "Security state." }, | 951 { "name": "securityState", "$ref": "SecurityState", "descrip
tion": "Security state." }, |
960 { "name": "explanations", "type": "array", "items": { "$ref"
: "SecurityStateExplanation" }, "description": "List of explanations for the sec
urity state. If the overall security state is `insecure` or `warning`, at least
one corresponding explanation should be included.", "optional": true }, | 952 { "name": "explanations", "type": "array", "items": { "$ref"
: "SecurityStateExplanation" }, "description": "List of explanations for the sec
urity state. If the overall security state is `insecure` or `warning`, at least
one corresponding explanation should be included.", "optional": true }, |
961 { "name": "insecureContentStatus", "$ref": "InsecureContentS
tatus", "description": "Information about insecure content on the page.", "optio
nal": true }, | 953 { "name": "insecureContentStatus", "$ref": "InsecureContentS
tatus", "description": "Information about insecure content on the page.", "optio
nal": true }, |
962 { "name": "schemeIsCryptographic", "type": "boolean", "descr
iption": "True if the page was loaded over cryptographic transport such as HTTPS
.", "optional": true } | 954 { "name": "schemeIsCryptographic", "type": "boolean", "descr
iption": "True if the page was loaded over cryptographic transport such as HTTPS
.", "optional": true } |
963 ], | 955 ], |
964 "handlers": ["browser"] | 956 "handlers": [] |
965 } | 957 } |
966 ] | 958 ] |
967 }, | 959 }, |
968 { | 960 { |
969 "domain": "Network", | 961 "domain": "Network", |
970 "description": "Network domain allows tracking network activities of the
page. It exposes information about http, file, data and other requests and resp
onses, their headers, bodies, timing, etc.", | 962 "description": "Network domain allows tracking network activities of the
page. It exposes information about http, file, data and other requests and resp
onses, their headers, bodies, timing, etc.", |
971 "dependencies": ["Runtime", "Security"], | 963 "dependencies": ["Runtime", "Security"], |
972 "types": [ | 964 "types": [ |
973 { | 965 { |
974 "id": "LoaderId", | 966 "id": "LoaderId", |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 "experimental": true | 1178 "experimental": true |
1187 } | 1179 } |
1188 ], | 1180 ], |
1189 "commands": [ | 1181 "commands": [ |
1190 { | 1182 { |
1191 "name": "enable", | 1183 "name": "enable", |
1192 "description": "Enables network tracking, network events will no
w be delivered to the client.", | 1184 "description": "Enables network tracking, network events will no
w be delivered to the client.", |
1193 "parameters": [ | 1185 "parameters": [ |
1194 { "name": "maxTotalBufferSize", "type": "integer", "optional
": true, "experimental": true, "description": "Buffer size in bytes to use when
preserving network payloads (XHRs, etc)." }, | 1186 { "name": "maxTotalBufferSize", "type": "integer", "optional
": true, "experimental": true, "description": "Buffer size in bytes to use when
preserving network payloads (XHRs, etc)." }, |
1195 { "name": "maxResourceBufferSize", "type": "integer", "optio
nal": true, "experimental": true, "description": "Per-resource buffer size in by
tes to use when preserving network payloads (XHRs, etc)." } | 1187 { "name": "maxResourceBufferSize", "type": "integer", "optio
nal": true, "experimental": true, "description": "Per-resource buffer size in by
tes to use when preserving network payloads (XHRs, etc)." } |
1196 ], | 1188 ] |
1197 "handlers": ["renderer", "browser"] | |
1198 }, | 1189 }, |
1199 { | 1190 { |
1200 "name": "disable", | 1191 "name": "disable", |
1201 "description": "Disables network tracking, prevents network even
ts from being sent to the client.", | 1192 "description": "Disables network tracking, prevents network even
ts from being sent to the client." |
1202 "handlers": ["renderer", "browser"] | |
1203 }, | 1193 }, |
1204 { | 1194 { |
1205 "name": "setUserAgentOverride", | 1195 "name": "setUserAgentOverride", |
1206 "description": "Allows overriding user agent with the given stri
ng.", | 1196 "description": "Allows overriding user agent with the given stri
ng.", |
1207 "parameters": [ | 1197 "parameters": [ |
1208 { "name": "userAgent", "type": "string", "description": "Use
r agent to use." } | 1198 { "name": "userAgent", "type": "string", "description": "Use
r agent to use." } |
1209 ] | 1199 ] |
1210 }, | 1200 }, |
1211 { | 1201 { |
1212 "name": "setExtraHTTPHeaders", | 1202 "name": "setExtraHTTPHeaders", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 { | 1252 { |
1263 "name": "canClearBrowserCache", | 1253 "name": "canClearBrowserCache", |
1264 "description": "Tells whether clearing browser cache is supporte
d.", | 1254 "description": "Tells whether clearing browser cache is supporte
d.", |
1265 "returns": [ | 1255 "returns": [ |
1266 { "name": "result", "type": "boolean", "description": "True
if browser cache can be cleared." } | 1256 { "name": "result", "type": "boolean", "description": "True
if browser cache can be cleared." } |
1267 ] | 1257 ] |
1268 }, | 1258 }, |
1269 { | 1259 { |
1270 "name": "clearBrowserCache", | 1260 "name": "clearBrowserCache", |
1271 "description": "Clears browser cache.", | 1261 "description": "Clears browser cache.", |
1272 "handlers": ["browser"] | 1262 "handlers": [] |
1273 }, | 1263 }, |
1274 { | 1264 { |
1275 "name": "canClearBrowserCookies", | 1265 "name": "canClearBrowserCookies", |
1276 "description": "Tells whether clearing browser cookies is suppor
ted.", | 1266 "description": "Tells whether clearing browser cookies is suppor
ted.", |
1277 "returns": [ | 1267 "returns": [ |
1278 { "name": "result", "type": "boolean", "description": "True
if browser cookies can be cleared." } | 1268 { "name": "result", "type": "boolean", "description": "True
if browser cookies can be cleared." } |
1279 ] | 1269 ] |
1280 }, | 1270 }, |
1281 { | 1271 { |
1282 "name": "clearBrowserCookies", | 1272 "name": "clearBrowserCookies", |
1283 "description": "Clears browser cookies.", | 1273 "description": "Clears browser cookies.", |
1284 "handlers": ["browser"] | 1274 "handlers": [] |
1285 }, | 1275 }, |
1286 { | 1276 { |
1287 "name": "getCookies", | 1277 "name": "getCookies", |
1288 "returns": [ | 1278 "returns": [ |
1289 { "name": "cookies", "type": "array", "items": { "$ref": "Co
okie" }, "description": "Array of cookie objects." } | 1279 { "name": "cookies", "type": "array", "items": { "$ref": "Co
okie" }, "description": "Array of cookie objects." } |
1290 ], | 1280 ], |
1291 "description": "Returns all browser cookies. Depending on the ba
ckend support, will return detailed cookie information in the <code>cookies</cod
e> field.", | 1281 "description": "Returns all browser cookies. Depending on the ba
ckend support, will return detailed cookie information in the <code>cookies</cod
e> field.", |
1292 "handlers": ["browser"], | 1282 "handlers": [], |
1293 "async": true, | 1283 "async": true, |
1294 "experimental": true | 1284 "experimental": true |
1295 }, | 1285 }, |
1296 { | 1286 { |
1297 "name": "deleteCookie", | 1287 "name": "deleteCookie", |
1298 "parameters": [ | 1288 "parameters": [ |
1299 { "name": "cookieName", "type": "string", "description": "Na
me of the cookie to remove." }, | 1289 { "name": "cookieName", "type": "string", "description": "Na
me of the cookie to remove." }, |
1300 { "name": "url", "type": "string", "description": "URL to ma
tch cooke domain and path." } | 1290 { "name": "url", "type": "string", "description": "URL to ma
tch cooke domain and path." } |
1301 ], | 1291 ], |
1302 "description": "Deletes browser cookie with given name, domain a
nd path.", | 1292 "description": "Deletes browser cookie with given name, domain a
nd path.", |
1303 "handlers": ["browser"], | 1293 "handlers": [], |
1304 "async": true, | 1294 "async": true, |
1305 "experimental": true | 1295 "experimental": true |
1306 }, | 1296 }, |
1307 { | 1297 { |
1308 "name": "setCookie", | 1298 "name": "setCookie", |
1309 "parameters": [ | 1299 "parameters": [ |
1310 { "name": "url", "type": "string", "description": "The reque
st-URI to associate with the setting of the cookie. This value can affect the de
fault domain and path values of the created cookie." }, | 1300 { "name": "url", "type": "string", "description": "The reque
st-URI to associate with the setting of the cookie. This value can affect the de
fault domain and path values of the created cookie." }, |
1311 { "name": "name", "type": "string", "description": "The name
of the cookie." }, | 1301 { "name": "name", "type": "string", "description": "The name
of the cookie." }, |
1312 { "name": "value", "type": "string", "description": "The val
ue of the cookie." }, | 1302 { "name": "value", "type": "string", "description": "The val
ue of the cookie." }, |
1313 { "name": "domain", "type": "string", "optional": true, "des
cription": "If omitted, the cookie becomes a host-only cookie." }, | 1303 { "name": "domain", "type": "string", "optional": true, "des
cription": "If omitted, the cookie becomes a host-only cookie." }, |
1314 { "name": "path", "type": "string", "optional": true, "descr
iption": "Defaults to the path portion of the url parameter." }, | 1304 { "name": "path", "type": "string", "optional": true, "descr
iption": "Defaults to the path portion of the url parameter." }, |
1315 { "name": "secure", "type": "boolean", "optional": true, "de
scription": "Defaults ot false." }, | 1305 { "name": "secure", "type": "boolean", "optional": true, "de
scription": "Defaults ot false." }, |
1316 { "name": "httpOnly", "type": "boolean", "optional": true, "
description": "Defaults to false." }, | 1306 { "name": "httpOnly", "type": "boolean", "optional": true, "
description": "Defaults to false." }, |
1317 { "name": "sameSite", "$ref": "CookieSameSite", "optional":
true, "description": "Defaults to browser default behavior." }, | 1307 { "name": "sameSite", "$ref": "CookieSameSite", "optional":
true, "description": "Defaults to browser default behavior." }, |
1318 { "name": "expirationDate", "$ref": "Timestamp", "optional":
true, "description": "If omitted, the cookie becomes a session cookie." } | 1308 { "name": "expirationDate", "$ref": "Timestamp", "optional":
true, "description": "If omitted, the cookie becomes a session cookie." } |
1319 ], | 1309 ], |
1320 "returns": [ | 1310 "returns": [ |
1321 { "name": "success", "type": "boolean", "description": "True
if successfully set cookie." } | 1311 { "name": "success", "type": "boolean", "description": "True
if successfully set cookie." } |
1322 ], | 1312 ], |
1323 "description": "Sets a cookie with the given cookie data; may ov
erwrite equivalent cookies if they exist.", | 1313 "description": "Sets a cookie with the given cookie data; may ov
erwrite equivalent cookies if they exist.", |
1324 "handlers": ["browser"], | 1314 "handlers": [], |
1325 "async": true, | 1315 "async": true, |
1326 "experimental": true | 1316 "experimental": true |
1327 }, | 1317 }, |
1328 { | 1318 { |
1329 "name": "canEmulateNetworkConditions", | 1319 "name": "canEmulateNetworkConditions", |
1330 "description": "Tells whether emulation of network conditions is
supported.", | 1320 "description": "Tells whether emulation of network conditions is
supported.", |
1331 "returns": [ | 1321 "returns": [ |
1332 { "name": "result", "type": "boolean", "description": "True if
emulation of network conditions is supported." } | 1322 { "name": "result", "type": "boolean", "description": "True if
emulation of network conditions is supported." } |
1333 ], | 1323 ], |
1334 "experimental": true, | 1324 "experimental": true, |
1335 "handlers": ["browser"] | 1325 "handlers": [] |
1336 }, | 1326 }, |
1337 { | 1327 { |
1338 "name": "emulateNetworkConditions", | 1328 "name": "emulateNetworkConditions", |
1339 "description": "Activates emulation of network conditions.", | 1329 "description": "Activates emulation of network conditions.", |
1340 "parameters": [ | 1330 "parameters": [ |
1341 { "name": "offline", "type": "boolean", "description": "True
to emulate internet disconnection." }, | 1331 { "name": "offline", "type": "boolean", "description": "True
to emulate internet disconnection." }, |
1342 { "name": "latency", "type": "number", "description": "Addit
ional latency (ms)." }, | 1332 { "name": "latency", "type": "number", "description": "Addit
ional latency (ms)." }, |
1343 { "name": "downloadThroughput", "type": "number", "descripti
on": "Maximal aggregated download throughput." }, | 1333 { "name": "downloadThroughput", "type": "number", "descripti
on": "Maximal aggregated download throughput." }, |
1344 { "name": "uploadThroughput", "type": "number", "description
": "Maximal aggregated upload throughput." }, | 1334 { "name": "uploadThroughput", "type": "number", "description
": "Maximal aggregated upload throughput." }, |
1345 { "name": "connectionType", "$ref": "ConnectionType", "optio
nal": true, "description": "Connection type if known."} | 1335 { "name": "connectionType", "$ref": "ConnectionType", "optio
nal": true, "description": "Connection type if known."} |
1346 ], | 1336 ] |
1347 "handlers": ["browser", "renderer"] | |
1348 }, | 1337 }, |
1349 { | 1338 { |
1350 "name": "setCacheDisabled", | 1339 "name": "setCacheDisabled", |
1351 "parameters": [ | 1340 "parameters": [ |
1352 { "name": "cacheDisabled", "type": "boolean", "description":
"Cache disabled state." } | 1341 { "name": "cacheDisabled", "type": "boolean", "description":
"Cache disabled state." } |
1353 ], | 1342 ], |
1354 "description": "Toggles ignoring cache for each request. If <cod
e>true</code>, cache will not be used." | 1343 "description": "Toggles ignoring cache for each request. If <cod
e>true</code>, cache will not be used." |
1355 }, | 1344 }, |
1356 { | 1345 { |
1357 "name": "setBypassServiceWorker", | 1346 "name": "setBypassServiceWorker", |
(...skipping 14 matching lines...) Expand all Loading... |
1372 }, | 1361 }, |
1373 { | 1362 { |
1374 "name": "getCertificate", | 1363 "name": "getCertificate", |
1375 "description": "Returns the DER-encoded certificate.", | 1364 "description": "Returns the DER-encoded certificate.", |
1376 "parameters": [ | 1365 "parameters": [ |
1377 { "name": "origin", "type": "string", "description": "Origin
to get certificate for." } | 1366 { "name": "origin", "type": "string", "description": "Origin
to get certificate for." } |
1378 ], | 1367 ], |
1379 "returns": [ | 1368 "returns": [ |
1380 { "name": "tableNames", "type": "array", "items": { "type":
"string" } } | 1369 { "name": "tableNames", "type": "array", "items": { "type":
"string" } } |
1381 ], | 1370 ], |
1382 "handlers": ["renderer"], | |
1383 "experimental": true | 1371 "experimental": true |
1384 } | 1372 } |
1385 ], | 1373 ], |
1386 "events": [ | 1374 "events": [ |
1387 { | 1375 { |
1388 "name": "resourceChangedPriority", | 1376 "name": "resourceChangedPriority", |
1389 "description": "Fired when resource loading priority is changed"
, | 1377 "description": "Fired when resource loading priority is changed"
, |
1390 "parameters": [ | 1378 "parameters": [ |
1391 { "name": "requestId", "$ref": "RequestId", "description": "
Request identifier." }, | 1379 { "name": "requestId", "$ref": "RequestId", "description": "
Request identifier." }, |
1392 { "name": "newPriority", "$ref": "ResourcePriority", "descri
ption": "New priority" }, | 1380 { "name": "newPriority", "$ref": "ResourcePriority", "descri
ption": "New priority" }, |
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2519 "description": "Focuses the given element.", | 2507 "description": "Focuses the given element.", |
2520 "experimental": true | 2508 "experimental": true |
2521 }, | 2509 }, |
2522 { | 2510 { |
2523 "name": "setFileInputFiles", | 2511 "name": "setFileInputFiles", |
2524 "parameters": [ | 2512 "parameters": [ |
2525 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the file input node to set files for." }, | 2513 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the file input node to set files for." }, |
2526 { "name": "files", "type": "array", "items": { "type": "stri
ng" }, "description": "Array of file paths to set." } | 2514 { "name": "files", "type": "array", "items": { "type": "stri
ng" }, "description": "Array of file paths to set." } |
2527 ], | 2515 ], |
2528 "description": "Sets files for the given file input element.", | 2516 "description": "Sets files for the given file input element.", |
2529 "experimental": true, | 2517 "experimental": true |
2530 "handlers": ["browser", "renderer"] | |
2531 }, | 2518 }, |
2532 { | 2519 { |
2533 "name": "getBoxModel", | 2520 "name": "getBoxModel", |
2534 "parameters": [ | 2521 "parameters": [ |
2535 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node to get box model for." } | 2522 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node to get box model for." } |
2536 ], | 2523 ], |
2537 "returns": [ | 2524 "returns": [ |
2538 { "name": "model", "$ref": "BoxModel", "description": "Box m
odel for the node." } | 2525 { "name": "model", "$ref": "BoxModel", "description": "Box m
odel for the node." } |
2539 ], | 2526 ], |
2540 "description": "Returns boxes for the currently selected nodes."
, | 2527 "description": "Returns boxes for the currently selected nodes."
, |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3228 "async": true, | 3215 "async": true, |
3229 "parameters": [ | 3216 "parameters": [ |
3230 { "name": "handle", "$ref": "StreamHandle", "description": "
Handle of the stream to read." }, | 3217 { "name": "handle", "$ref": "StreamHandle", "description": "
Handle of the stream to read." }, |
3231 { "name": "offset", "type": "integer", "optional": true, "de
scription": "Seek to the specified offset before reading (if not specificed, pro
ceed with offset following the last read)." }, | 3218 { "name": "offset", "type": "integer", "optional": true, "de
scription": "Seek to the specified offset before reading (if not specificed, pro
ceed with offset following the last read)." }, |
3232 { "name": "size", "type": "integer", "optional": true, "des
cription": "Maximum number of bytes to read (left upon the agent discretion if n
ot specified)." } | 3219 { "name": "size", "type": "integer", "optional": true, "des
cription": "Maximum number of bytes to read (left upon the agent discretion if n
ot specified)." } |
3233 ], | 3220 ], |
3234 "returns": [ | 3221 "returns": [ |
3235 { "name": "data", "type": "string", "description": "Data tha
t were read." }, | 3222 { "name": "data", "type": "string", "description": "Data tha
t were read." }, |
3236 { "name": "eof", "type": "boolean", "description": "Set if t
he end-of-file condition occured while reading." } | 3223 { "name": "eof", "type": "boolean", "description": "Set if t
he end-of-file condition occured while reading." } |
3237 ], | 3224 ], |
3238 "handlers": ["browser"] | 3225 "handlers": [] |
3239 }, | 3226 }, |
3240 { | 3227 { |
3241 "name": "close", | 3228 "name": "close", |
3242 "description": "Close the stream, discard any temporary backing
storage.", | 3229 "description": "Close the stream, discard any temporary backing
storage.", |
3243 "parameters": [ | 3230 "parameters": [ |
3244 { "name": "handle", "$ref": "StreamHandle", "description": "
Handle of the stream to close." } | 3231 { "name": "handle", "$ref": "StreamHandle", "description": "
Handle of the stream to close." } |
3245 ], | 3232 ], |
3246 "handlers": ["browser"] | 3233 "handlers": [] |
3247 } | 3234 } |
3248 ] | 3235 ] |
3249 }, | 3236 }, |
3250 { | 3237 { |
3251 "domain": "DOMDebugger", | 3238 "domain": "DOMDebugger", |
3252 "description": "DOM debugging allows setting breakpoints on particular D
OM operations and events. JavaScript execution will stop on these operations as
if there was a regular breakpoint set.", | 3239 "description": "DOM debugging allows setting breakpoints on particular D
OM operations and events. JavaScript execution will stop on these operations as
if there was a regular breakpoint set.", |
3253 "dependencies": ["DOM", "Debugger"], | 3240 "dependencies": ["DOM", "Debugger"], |
3254 "types": [ | 3241 "types": [ |
3255 { | 3242 { |
3256 "id": "DOMBreakpointType", | 3243 "id": "DOMBreakpointType", |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3384 ] | 3371 ] |
3385 } | 3372 } |
3386 ], | 3373 ], |
3387 "commands": [ | 3374 "commands": [ |
3388 { | 3375 { |
3389 "name": "setDiscoverTargets", | 3376 "name": "setDiscoverTargets", |
3390 "description": "Controls whether to discover available targets a
nd notify via <code>targetCreated/targetDestroyed</code> events.", | 3377 "description": "Controls whether to discover available targets a
nd notify via <code>targetCreated/targetDestroyed</code> events.", |
3391 "parameters": [ | 3378 "parameters": [ |
3392 { "name": "discover", "type": "boolean", "description": "Whe
ther to discover available targets." } | 3379 { "name": "discover", "type": "boolean", "description": "Whe
ther to discover available targets." } |
3393 ], | 3380 ], |
3394 "handlers": ["browser"] | 3381 "handlers": [] |
3395 }, | 3382 }, |
3396 { | 3383 { |
3397 "name": "setAutoAttach", | 3384 "name": "setAutoAttach", |
3398 "description": "Controls whether to automatically attach to new
targets which are considered to be related to this one. When turned on, attaches
to all existing related targets as well. When turned off, automatically detache
s from all currently attached targets.", | 3385 "description": "Controls whether to automatically attach to new
targets which are considered to be related to this one. When turned on, attaches
to all existing related targets as well. When turned off, automatically detache
s from all currently attached targets.", |
3399 "parameters": [ | 3386 "parameters": [ |
3400 { "name": "autoAttach", "type": "boolean", "description": "W
hether to auto-attach to related targets." }, | 3387 { "name": "autoAttach", "type": "boolean", "description": "W
hether to auto-attach to related targets." }, |
3401 { "name": "waitForDebuggerOnStart", "type": "boolean", "desc
ription": "Whether to pause new targets when attaching to them. Use <code>Runtim
e.runIfWaitingForDebugger</code> to run paused targets." } | 3388 { "name": "waitForDebuggerOnStart", "type": "boolean", "desc
ription": "Whether to pause new targets when attaching to them. Use <code>Runtim
e.runIfWaitingForDebugger</code> to run paused targets." } |
3402 ], | 3389 ] |
3403 "handlers": ["browser", "renderer"] | |
3404 }, | 3390 }, |
3405 { | 3391 { |
3406 "name": "setAttachToFrames", | 3392 "name": "setAttachToFrames", |
3407 "parameters": [ | 3393 "parameters": [ |
3408 { "name": "value", "type": "boolean", "description": "Whethe
r to attach to frames." } | 3394 { "name": "value", "type": "boolean", "description": "Whethe
r to attach to frames." } |
3409 ], | 3395 ], |
3410 "handlers": ["browser"] | 3396 "handlers": [] |
3411 }, | 3397 }, |
3412 { | 3398 { |
3413 "name": "setRemoteLocations", | 3399 "name": "setRemoteLocations", |
3414 "description": "Enables target discovery for the specified locat
ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.", | 3400 "description": "Enables target discovery for the specified locat
ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.", |
3415 "parameters": [ | 3401 "parameters": [ |
3416 { "name": "locations", "type": "array", "items": { "$ref": "
RemoteLocation" }, "description": "List of remote locations." } | 3402 { "name": "locations", "type": "array", "items": { "$ref": "
RemoteLocation" }, "description": "List of remote locations." } |
3417 ], | 3403 ], |
3418 "handlers": ["browser"] | 3404 "handlers": [] |
3419 }, | 3405 }, |
3420 { | 3406 { |
3421 "name": "sendMessageToTarget", | 3407 "name": "sendMessageToTarget", |
3422 "description": "Sends protocol message to the target with given
id.", | 3408 "description": "Sends protocol message to the target with given
id.", |
3423 "parameters": [ | 3409 "parameters": [ |
3424 { "name": "targetId", "type": "string" }, | 3410 { "name": "targetId", "type": "string" }, |
3425 { "name": "message", "type": "string" } | 3411 { "name": "message", "type": "string" } |
3426 ], | 3412 ] |
3427 "handlers": ["browser", "renderer"] | |
3428 }, | 3413 }, |
3429 { | 3414 { |
3430 "name": "getTargetInfo", | 3415 "name": "getTargetInfo", |
3431 "description": "Returns information about a target.", | 3416 "description": "Returns information about a target.", |
3432 "parameters": [ | 3417 "parameters": [ |
3433 { "name": "targetId", "$ref": "TargetID" } | 3418 { "name": "targetId", "$ref": "TargetID" } |
3434 ], | 3419 ], |
3435 "returns": [ | 3420 "returns": [ |
3436 { "name": "targetInfo","$ref": "TargetInfo" } | 3421 { "name": "targetInfo","$ref": "TargetInfo" } |
3437 ], | 3422 ], |
3438 "handlers": ["browser"] | 3423 "handlers": [] |
3439 }, | 3424 }, |
3440 { | 3425 { |
3441 "name": "activateTarget", | 3426 "name": "activateTarget", |
3442 "description": "Activates (focuses) the target.", | 3427 "description": "Activates (focuses) the target.", |
3443 "parameters": [ | 3428 "parameters": [ |
3444 { "name": "targetId", "$ref": "TargetID" } | 3429 { "name": "targetId", "$ref": "TargetID" } |
3445 ], | 3430 ], |
3446 "handlers": ["browser"] | 3431 "handlers": [] |
3447 }, | 3432 }, |
3448 { | 3433 { |
3449 "name": "closeTarget", | 3434 "name": "closeTarget", |
3450 "description": "Closes the target. If the target is a page that
gets closed too.", | 3435 "description": "Closes the target. If the target is a page that
gets closed too.", |
3451 "parameters": [ | 3436 "parameters": [ |
3452 { "name": "targetId", "$ref": "TargetID" } | 3437 { "name": "targetId", "$ref": "TargetID" } |
3453 ], | 3438 ], |
3454 "returns": [ | 3439 "returns": [ |
3455 { "name": "success", "type": "boolean" } | 3440 { "name": "success", "type": "boolean" } |
3456 ], | 3441 ], |
3457 "handlers": ["browser"] | 3442 "handlers": [] |
3458 }, | 3443 }, |
3459 { | 3444 { |
3460 "name": "attachToTarget", | 3445 "name": "attachToTarget", |
3461 "description": "Attaches to the target with given id.", | 3446 "description": "Attaches to the target with given id.", |
3462 "parameters": [ | 3447 "parameters": [ |
3463 { "name": "targetId", "$ref": "TargetID" } | 3448 { "name": "targetId", "$ref": "TargetID" } |
3464 ], | 3449 ], |
3465 "returns": [ | 3450 "returns": [ |
3466 { "name": "success", "type": "boolean", "description": "Whet
her attach succeeded." } | 3451 { "name": "success", "type": "boolean", "description": "Whet
her attach succeeded." } |
3467 ], | 3452 ], |
3468 "handlers": ["browser"] | 3453 "handlers": [] |
3469 }, | 3454 }, |
3470 { | 3455 { |
3471 "name": "detachFromTarget", | 3456 "name": "detachFromTarget", |
3472 "description": "Detaches from the target with given id.", | 3457 "description": "Detaches from the target with given id.", |
3473 "parameters": [ | 3458 "parameters": [ |
3474 { "name": "targetId", "$ref": "TargetID" } | 3459 { "name": "targetId", "$ref": "TargetID" } |
3475 ], | 3460 ], |
3476 "handlers": ["browser"] | 3461 "handlers": [] |
3477 }, | 3462 }, |
3478 { | 3463 { |
3479 "name": "createBrowserContext", | 3464 "name": "createBrowserContext", |
3480 "description": "Creates a new empty BrowserContext. Similar to a
n incognito profile but you can have more than one.", | 3465 "description": "Creates a new empty BrowserContext. Similar to a
n incognito profile but you can have more than one.", |
3481 "returns": [ | 3466 "returns": [ |
3482 { "name": "browserContextId", "$ref": "BrowserContextID", "d
escription": "The id of the context created." } | 3467 { "name": "browserContextId", "$ref": "BrowserContextID", "d
escription": "The id of the context created." } |
3483 ], | 3468 ], |
3484 "handlers": ["browser"] | 3469 "handlers": [] |
3485 }, | 3470 }, |
3486 { | 3471 { |
3487 "name": "disposeBrowserContext", | 3472 "name": "disposeBrowserContext", |
3488 "description": "Deletes a BrowserContext, will fail of any open
page uses it.", | 3473 "description": "Deletes a BrowserContext, will fail of any open
page uses it.", |
3489 "parameters": [ | 3474 "parameters": [ |
3490 { "name": "browserContextId", "$ref": "BrowserContextID" } | 3475 { "name": "browserContextId", "$ref": "BrowserContextID" } |
3491 ], | 3476 ], |
3492 "returns": [ | 3477 "returns": [ |
3493 { "name": "success", "type": "boolean" } | 3478 { "name": "success", "type": "boolean" } |
3494 ], | 3479 ], |
3495 "handlers": ["browser"] | 3480 "handlers": [] |
3496 }, | 3481 }, |
3497 { | 3482 { |
3498 "name": "createTarget", | 3483 "name": "createTarget", |
3499 "description": "Creates a new page.", | 3484 "description": "Creates a new page.", |
3500 "parameters": [ | 3485 "parameters": [ |
3501 { "name": "url", "type": "string", "description": "The initi
al URL the page will be navigated to." }, | 3486 { "name": "url", "type": "string", "description": "The initi
al URL the page will be navigated to." }, |
3502 { "name": "width", "type": "integer", "description": "Frame
width in DIP (headless chrome only).", "optional": true }, | 3487 { "name": "width", "type": "integer", "description": "Frame
width in DIP (headless chrome only).", "optional": true }, |
3503 { "name": "height", "type": "integer", "description": "Frame
height in DIP (headless chrome only).", "optional": true }, | 3488 { "name": "height", "type": "integer", "description": "Frame
height in DIP (headless chrome only).", "optional": true }, |
3504 { "name": "browserContextId", "$ref": "BrowserContextID", "d
escription": "The browser context to create the page in (headless chrome only)."
, "optional": true } | 3489 { "name": "browserContextId", "$ref": "BrowserContextID", "d
escription": "The browser context to create the page in (headless chrome only)."
, "optional": true } |
3505 ], | 3490 ], |
3506 "returns": [ | 3491 "returns": [ |
3507 { "name": "targetId", "$ref": "TargetID", "description": "Th
e id of the page opened." } | 3492 { "name": "targetId", "$ref": "TargetID", "description": "Th
e id of the page opened." } |
3508 ], | 3493 ], |
3509 "handlers": ["browser"] | 3494 "handlers": [] |
3510 }, | 3495 }, |
3511 { | 3496 { |
3512 "name": "getTargets", | 3497 "name": "getTargets", |
3513 "description": "Retrieves a list of available targets.", | 3498 "description": "Retrieves a list of available targets.", |
3514 "returns": [ | 3499 "returns": [ |
3515 { "name": "targetInfos", "type": "array", "items": { "$ref":
"TargetInfo" }, "description": "The list of targets." } | 3500 { "name": "targetInfos", "type": "array", "items": { "$ref":
"TargetInfo" }, "description": "The list of targets." } |
3516 ], | 3501 ], |
3517 "handlers": ["browser"] | 3502 "handlers": [] |
3518 } | 3503 } |
3519 ], | 3504 ], |
3520 "events": [ | 3505 "events": [ |
3521 { | 3506 { |
3522 "name": "targetCreated", | 3507 "name": "targetCreated", |
3523 "description": "Issued when a possible inspection target is crea
ted.", | 3508 "description": "Issued when a possible inspection target is crea
ted.", |
3524 "parameters": [ | 3509 "parameters": [ |
3525 { "name": "targetInfo", "$ref": "TargetInfo" } | 3510 { "name": "targetInfo", "$ref": "TargetInfo" } |
3526 ], | 3511 ], |
3527 "handlers": ["browser"] | 3512 "handlers": [] |
3528 }, | 3513 }, |
3529 { | 3514 { |
3530 "name": "targetDestroyed", | 3515 "name": "targetDestroyed", |
3531 "description": "Issued when a target is destroyed.", | 3516 "description": "Issued when a target is destroyed.", |
3532 "parameters": [ | 3517 "parameters": [ |
3533 { "name": "targetId", "$ref": "TargetID" } | 3518 { "name": "targetId", "$ref": "TargetID" } |
3534 ], | 3519 ], |
3535 "handlers": ["browser"] | 3520 "handlers": [] |
3536 }, | 3521 }, |
3537 { | 3522 { |
3538 "name": "attachedToTarget", | 3523 "name": "attachedToTarget", |
3539 "description": "Issued when attached to target because of auto-a
ttach or <code>attachToTarget</code> command.", | 3524 "description": "Issued when attached to target because of auto-a
ttach or <code>attachToTarget</code> command.", |
3540 "parameters": [ | 3525 "parameters": [ |
3541 { "name": "targetInfo", "$ref": "TargetInfo" }, | 3526 { "name": "targetInfo", "$ref": "TargetInfo" }, |
3542 { "name": "waitingForDebugger", "type": "boolean" } | 3527 { "name": "waitingForDebugger", "type": "boolean" } |
3543 ], | 3528 ] |
3544 "handlers": ["browser", "renderer"] | |
3545 }, | 3529 }, |
3546 { | 3530 { |
3547 "name": "detachedFromTarget", | 3531 "name": "detachedFromTarget", |
3548 "description": "Issued when detached from target for any reason
(including <code>detachFromTarget</code> command).", | 3532 "description": "Issued when detached from target for any reason
(including <code>detachFromTarget</code> command).", |
3549 "parameters": [ | 3533 "parameters": [ |
3550 { "name": "targetId", "$ref": "TargetID" } | 3534 { "name": "targetId", "$ref": "TargetID" } |
3551 ], | 3535 ] |
3552 "handlers": ["browser", "renderer"] | |
3553 }, | 3536 }, |
3554 { | 3537 { |
3555 "name": "receivedMessageFromTarget", | 3538 "name": "receivedMessageFromTarget", |
3556 "description": "Notifies about new protocol message from attache
d target.", | 3539 "description": "Notifies about new protocol message from attache
d target.", |
3557 "parameters": [ | 3540 "parameters": [ |
3558 { "name": "targetId", "$ref": "TargetID" }, | 3541 { "name": "targetId", "$ref": "TargetID" }, |
3559 { "name": "message", "type": "string" } | 3542 { "name": "message", "type": "string" } |
3560 ], | 3543 ] |
3561 "handlers": ["browser", "renderer"] | |
3562 } | 3544 } |
3563 ] | 3545 ] |
3564 }, | 3546 }, |
3565 { | 3547 { |
3566 "domain": "ServiceWorker", | 3548 "domain": "ServiceWorker", |
3567 "experimental": true, | 3549 "experimental": true, |
3568 "types": [ | 3550 "types": [ |
3569 { | 3551 { |
3570 "id": "ServiceWorkerRegistration", | 3552 "id": "ServiceWorkerRegistration", |
3571 "type": "object", | 3553 "type": "object", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3612 { "name": "versionId", "type": "string" }, | 3594 { "name": "versionId", "type": "string" }, |
3613 { "name": "sourceURL", "type": "string" }, | 3595 { "name": "sourceURL", "type": "string" }, |
3614 { "name": "lineNumber", "type": "integer" }, | 3596 { "name": "lineNumber", "type": "integer" }, |
3615 { "name": "columnNumber", "type": "integer" } | 3597 { "name": "columnNumber", "type": "integer" } |
3616 ] | 3598 ] |
3617 } | 3599 } |
3618 ], | 3600 ], |
3619 "commands": [ | 3601 "commands": [ |
3620 { | 3602 { |
3621 "name": "enable", | 3603 "name": "enable", |
3622 "handlers": ["browser"] | 3604 "handlers": [] |
3623 }, | 3605 }, |
3624 { | 3606 { |
3625 "name": "disable", | 3607 "name": "disable", |
3626 "handlers": ["browser"] | 3608 "handlers": [] |
3627 }, | 3609 }, |
3628 { | 3610 { |
3629 "name": "unregister", | 3611 "name": "unregister", |
3630 "parameters": [ | 3612 "parameters": [ |
3631 { "name": "scopeURL", "type": "string" } | 3613 { "name": "scopeURL", "type": "string" } |
3632 ], | 3614 ], |
3633 "handlers": ["browser"] | 3615 "handlers": [] |
3634 }, | 3616 }, |
3635 { | 3617 { |
3636 "name": "updateRegistration", | 3618 "name": "updateRegistration", |
3637 "parameters": [ | 3619 "parameters": [ |
3638 { "name": "scopeURL", "type": "string" } | 3620 { "name": "scopeURL", "type": "string" } |
3639 ], | 3621 ], |
3640 "handlers": ["browser"] | 3622 "handlers": [] |
3641 }, | 3623 }, |
3642 { | 3624 { |
3643 "name": "startWorker", | 3625 "name": "startWorker", |
3644 "parameters": [ | 3626 "parameters": [ |
3645 { "name": "scopeURL", "type": "string" } | 3627 { "name": "scopeURL", "type": "string" } |
3646 ], | 3628 ], |
3647 "handlers": ["browser"] | 3629 "handlers": [] |
3648 }, | 3630 }, |
3649 { | 3631 { |
3650 "name": "skipWaiting", | 3632 "name": "skipWaiting", |
3651 "parameters": [ | 3633 "parameters": [ |
3652 { "name": "scopeURL", "type": "string" } | 3634 { "name": "scopeURL", "type": "string" } |
3653 ], | 3635 ], |
3654 "handlers": ["browser"] | 3636 "handlers": [] |
3655 }, | 3637 }, |
3656 { | 3638 { |
3657 "name": "stopWorker", | 3639 "name": "stopWorker", |
3658 "parameters": [ | 3640 "parameters": [ |
3659 { "name": "versionId", "type": "string" } | 3641 { "name": "versionId", "type": "string" } |
3660 ], | 3642 ], |
3661 "handlers": ["browser"] | 3643 "handlers": [] |
3662 }, | 3644 }, |
3663 { | 3645 { |
3664 "name": "inspectWorker", | 3646 "name": "inspectWorker", |
3665 "parameters": [ | 3647 "parameters": [ |
3666 { "name": "versionId", "type": "string" } | 3648 { "name": "versionId", "type": "string" } |
3667 ], | 3649 ], |
3668 "handlers": ["browser"] | 3650 "handlers": [] |
3669 }, | 3651 }, |
3670 { | 3652 { |
3671 "name": "setForceUpdateOnPageLoad", | 3653 "name": "setForceUpdateOnPageLoad", |
3672 "parameters": [ | 3654 "parameters": [ |
3673 { "name": "forceUpdateOnPageLoad", "type": "boolean" } | 3655 { "name": "forceUpdateOnPageLoad", "type": "boolean" } |
3674 ], | 3656 ], |
3675 "handlers": ["browser"] | 3657 "handlers": [] |
3676 }, | 3658 }, |
3677 { | 3659 { |
3678 "name": "deliverPushMessage", | 3660 "name": "deliverPushMessage", |
3679 "parameters": [ | 3661 "parameters": [ |
3680 { "name": "origin", "type": "string" }, | 3662 { "name": "origin", "type": "string" }, |
3681 { "name": "registrationId", "type": "string" }, | 3663 { "name": "registrationId", "type": "string" }, |
3682 { "name": "data", "type": "string" } | 3664 { "name": "data", "type": "string" } |
3683 ], | 3665 ], |
3684 "handlers": ["browser"] | 3666 "handlers": [] |
3685 }, | 3667 }, |
3686 { | 3668 { |
3687 "name": "dispatchSyncEvent", | 3669 "name": "dispatchSyncEvent", |
3688 "parameters": [ | 3670 "parameters": [ |
3689 { "name": "origin", "type": "string" }, | 3671 { "name": "origin", "type": "string" }, |
3690 { "name": "registrationId", "type": "string" }, | 3672 { "name": "registrationId", "type": "string" }, |
3691 { "name": "tag", "type": "string" }, | 3673 { "name": "tag", "type": "string" }, |
3692 { "name": "lastChance", "type": "boolean" } | 3674 { "name": "lastChance", "type": "boolean" } |
3693 ], | 3675 ], |
3694 "handlers": ["browser"] | 3676 "handlers": [] |
3695 } | 3677 } |
3696 ], | 3678 ], |
3697 "events": [ | 3679 "events": [ |
3698 { | 3680 { |
3699 "name": "workerRegistrationUpdated", | 3681 "name": "workerRegistrationUpdated", |
3700 "parameters": [ | 3682 "parameters": [ |
3701 { "name": "registrations", "type": "array", "items": { "$ref
": "ServiceWorkerRegistration" } } | 3683 { "name": "registrations", "type": "array", "items": { "$ref
": "ServiceWorkerRegistration" } } |
3702 ], | 3684 ], |
3703 "handlers": ["browser"] | 3685 "handlers": [] |
3704 }, | 3686 }, |
3705 { | 3687 { |
3706 "name": "workerVersionUpdated", | 3688 "name": "workerVersionUpdated", |
3707 "parameters": [ | 3689 "parameters": [ |
3708 { "name": "versions", "type": "array", "items": { "$ref": "S
erviceWorkerVersion" } } | 3690 { "name": "versions", "type": "array", "items": { "$ref": "S
erviceWorkerVersion" } } |
3709 ], | 3691 ], |
3710 "handlers": ["browser"] | 3692 "handlers": [] |
3711 }, | 3693 }, |
3712 { | 3694 { |
3713 "name": "workerErrorReported", | 3695 "name": "workerErrorReported", |
3714 "parameters": [ | 3696 "parameters": [ |
3715 { "name": "errorMessage", "$ref": "ServiceWorkerErrorMessage
" } | 3697 { "name": "errorMessage", "$ref": "ServiceWorkerErrorMessage
" } |
3716 ], | 3698 ], |
3717 "handlers": ["browser"] | 3699 "handlers": [] |
3718 } | 3700 } |
3719 ] | 3701 ] |
3720 }, | 3702 }, |
3721 { | 3703 { |
3722 "domain": "Input", | 3704 "domain": "Input", |
3723 "types": [ | 3705 "types": [ |
3724 { | 3706 { |
3725 "id": "TouchPoint", | 3707 "id": "TouchPoint", |
3726 "type": "object", | 3708 "type": "object", |
3727 "experimental": true, | 3709 "experimental": true, |
(...skipping 27 matching lines...) Expand all Loading... |
3755 { "name": "keyIdentifier", "type": "string", "optional": tru
e, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." }, | 3737 { "name": "keyIdentifier", "type": "string", "optional": tru
e, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." }, |
3756 { "name": "code", "type": "string", "optional": true, "descr
iption": "Unique DOM defined string value for each physical key (e.g., 'KeyA') (
default: \"\")." }, | 3738 { "name": "code", "type": "string", "optional": true, "descr
iption": "Unique DOM defined string value for each physical key (e.g., 'KeyA') (
default: \"\")." }, |
3757 { "name": "key", "type": "string", "optional": true, "descri
ption": "Unique DOM defined string value describing the meaning of the key in th
e context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"
\")." }, | 3739 { "name": "key", "type": "string", "optional": true, "descri
ption": "Unique DOM defined string value describing the meaning of the key in th
e context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"
\")." }, |
3758 { "name": "windowsVirtualKeyCode", "type": "integer", "optio
nal": true, "description": "Windows virtual key code (default: 0)." }, | 3740 { "name": "windowsVirtualKeyCode", "type": "integer", "optio
nal": true, "description": "Windows virtual key code (default: 0)." }, |
3759 { "name": "nativeVirtualKeyCode", "type": "integer", "option
al": true, "description": "Native virtual key code (default: 0)." }, | 3741 { "name": "nativeVirtualKeyCode", "type": "integer", "option
al": true, "description": "Native virtual key code (default: 0)." }, |
3760 { "name": "autoRepeat", "type": "boolean", "optional": true,
"description": "Whether the event was generated from auto repeat (default: fals
e)." }, | 3742 { "name": "autoRepeat", "type": "boolean", "optional": true,
"description": "Whether the event was generated from auto repeat (default: fals
e)." }, |
3761 { "name": "isKeypad", "type": "boolean", "optional": true, "
description": "Whether the event was generated from the keypad (default: false).
" }, | 3743 { "name": "isKeypad", "type": "boolean", "optional": true, "
description": "Whether the event was generated from the keypad (default: false).
" }, |
3762 { "name": "isSystemKey", "type": "boolean", "optional": true
, "description": "Whether the event was a system key event (default: false)." } | 3744 { "name": "isSystemKey", "type": "boolean", "optional": true
, "description": "Whether the event was a system key event (default: false)." } |
3763 ], | 3745 ], |
3764 "description": "Dispatches a key event to the page.", | 3746 "description": "Dispatches a key event to the page.", |
3765 "handlers": ["browser"] | 3747 "handlers": [] |
3766 }, | 3748 }, |
3767 { | 3749 { |
3768 "name": "dispatchMouseEvent", | 3750 "name": "dispatchMouseEvent", |
3769 "parameters": [ | 3751 "parameters": [ |
3770 { "name": "type", "type": "string", "enum": ["mousePressed",
"mouseReleased", "mouseMoved"], "description": "Type of the mouse event." }, | 3752 { "name": "type", "type": "string", "enum": ["mousePressed",
"mouseReleased", "mouseMoved"], "description": "Type of the mouse event." }, |
3771 { "name": "x", "type": "integer", "description": "X coordina
te of the event relative to the main frame's viewport."}, | 3753 { "name": "x", "type": "integer", "description": "X coordina
te of the event relative to the main frame's viewport."}, |
3772 { "name": "y", "type": "integer", "description": "Y coordina
te of the event relative to the main frame's viewport. 0 refers to the top of th
e viewport and Y increases as it proceeds towards the bottom of the viewport."}, | 3754 { "name": "y", "type": "integer", "description": "Y coordina
te of the event relative to the main frame's viewport. 0 refers to the top of th
e viewport and Y increases as it proceeds towards the bottom of the viewport."}, |
3773 { "name": "modifiers", "type": "integer", "optional": true,
"description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met
a/Command=4, Shift=8 (default: 0)." }, | 3755 { "name": "modifiers", "type": "integer", "optional": true,
"description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met
a/Command=4, Shift=8 (default: 0)." }, |
3774 { "name": "timestamp", "type": "number", "optional": true, "
description": "Time at which the event occurred. Measured in UTC time in seconds
since January 1, 1970 (default: current time)." }, | 3756 { "name": "timestamp", "type": "number", "optional": true, "
description": "Time at which the event occurred. Measured in UTC time in seconds
since January 1, 1970 (default: current time)." }, |
3775 { "name": "button", "type": "string", "enum": ["none", "left
", "middle", "right"], "optional": true, "description": "Mouse button (default:
\"none\")." }, | 3757 { "name": "button", "type": "string", "enum": ["none", "left
", "middle", "right"], "optional": true, "description": "Mouse button (default:
\"none\")." }, |
3776 { "name": "clickCount", "type": "integer", "optional": true,
"description": "Number of times the mouse button was clicked (default: 0)." } | 3758 { "name": "clickCount", "type": "integer", "optional": true,
"description": "Number of times the mouse button was clicked (default: 0)." } |
3777 ], | 3759 ], |
3778 "description": "Dispatches a mouse event to the page.", | 3760 "description": "Dispatches a mouse event to the page.", |
3779 "handlers": ["browser"] | 3761 "handlers": [] |
3780 }, | 3762 }, |
3781 { | 3763 { |
3782 "name": "dispatchTouchEvent", | 3764 "name": "dispatchTouchEvent", |
3783 "experimental": true, | 3765 "experimental": true, |
3784 "parameters": [ | 3766 "parameters": [ |
3785 { "name": "type", "type": "string", "enum": ["touchStart", "
touchEnd", "touchMove"], "description": "Type of the touch event." }, | 3767 { "name": "type", "type": "string", "enum": ["touchStart", "
touchEnd", "touchMove"], "description": "Type of the touch event." }, |
3786 { "name": "touchPoints", "type": "array", "items": { "$ref":
"TouchPoint" }, "description": "Touch points." }, | 3768 { "name": "touchPoints", "type": "array", "items": { "$ref":
"TouchPoint" }, "description": "Touch points." }, |
3787 { "name": "modifiers", "type": "integer", "optional": true,
"description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met
a/Command=4, Shift=8 (default: 0)." }, | 3769 { "name": "modifiers", "type": "integer", "optional": true,
"description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met
a/Command=4, Shift=8 (default: 0)." }, |
3788 { "name": "timestamp", "type": "number", "optional": true, "
description": "Time at which the event occurred. Measured in UTC time in seconds
since January 1, 1970 (default: current time)." } | 3770 { "name": "timestamp", "type": "number", "optional": true, "
description": "Time at which the event occurred. Measured in UTC time in seconds
since January 1, 1970 (default: current time)." } |
3789 ], | 3771 ], |
3790 "description": "Dispatches a touch event to the page." | 3772 "description": "Dispatches a touch event to the page." |
3791 }, | 3773 }, |
3792 { | 3774 { |
3793 "name": "emulateTouchFromMouseEvent", | 3775 "name": "emulateTouchFromMouseEvent", |
3794 "experimental": true, | 3776 "experimental": true, |
3795 "parameters": [ | 3777 "parameters": [ |
3796 { "name": "type", "type": "string", "enum": ["mousePressed",
"mouseReleased", "mouseMoved", "mouseWheel"], "description": "Type of the mouse
event." }, | 3778 { "name": "type", "type": "string", "enum": ["mousePressed",
"mouseReleased", "mouseMoved", "mouseWheel"], "description": "Type of the mouse
event." }, |
3797 { "name": "x", "type": "integer", "description": "X coordina
te of the mouse pointer in DIP."}, | 3779 { "name": "x", "type": "integer", "description": "X coordina
te of the mouse pointer in DIP."}, |
3798 { "name": "y", "type": "integer", "description": "Y coordina
te of the mouse pointer in DIP."}, | 3780 { "name": "y", "type": "integer", "description": "Y coordina
te of the mouse pointer in DIP."}, |
3799 { "name": "timestamp", "type": "number", "description": "Tim
e at which the event occurred. Measured in UTC time in seconds since January 1,
1970." }, | 3781 { "name": "timestamp", "type": "number", "description": "Tim
e at which the event occurred. Measured in UTC time in seconds since January 1,
1970." }, |
3800 { "name": "button", "type": "string", "enum": ["none", "left
", "middle", "right"], "description": "Mouse button." }, | 3782 { "name": "button", "type": "string", "enum": ["none", "left
", "middle", "right"], "description": "Mouse button." }, |
3801 { "name": "deltaX", "type": "number", "optional": true, "des
cription": "X delta in DIP for mouse wheel event (default: 0)."}, | 3783 { "name": "deltaX", "type": "number", "optional": true, "des
cription": "X delta in DIP for mouse wheel event (default: 0)."}, |
3802 { "name": "deltaY", "type": "number", "optional": true, "des
cription": "Y delta in DIP for mouse wheel event (default: 0)."}, | 3784 { "name": "deltaY", "type": "number", "optional": true, "des
cription": "Y delta in DIP for mouse wheel event (default: 0)."}, |
3803 { "name": "modifiers", "type": "integer", "optional": true,
"description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met
a/Command=4, Shift=8 (default: 0)." }, | 3785 { "name": "modifiers", "type": "integer", "optional": true,
"description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met
a/Command=4, Shift=8 (default: 0)." }, |
3804 { "name": "clickCount", "type": "integer", "optional": true,
"description": "Number of times the mouse button was clicked (default: 0)." } | 3786 { "name": "clickCount", "type": "integer", "optional": true,
"description": "Number of times the mouse button was clicked (default: 0)." } |
3805 ], | 3787 ], |
3806 "description": "Emulates touch event from the mouse event parame
ters.", | 3788 "description": "Emulates touch event from the mouse event parame
ters.", |
3807 "handlers": ["browser"] | 3789 "handlers": [] |
3808 }, | 3790 }, |
3809 { | 3791 { |
3810 "name": "synthesizePinchGesture", | 3792 "name": "synthesizePinchGesture", |
3811 "async": true, | 3793 "async": true, |
3812 "parameters": [ | 3794 "parameters": [ |
3813 { "name": "x", "type": "integer", "description": "X coordina
te of the start of the gesture in CSS pixels." }, | 3795 { "name": "x", "type": "integer", "description": "X coordina
te of the start of the gesture in CSS pixels." }, |
3814 { "name": "y", "type": "integer", "description": "Y coordina
te of the start of the gesture in CSS pixels." }, | 3796 { "name": "y", "type": "integer", "description": "Y coordina
te of the start of the gesture in CSS pixels." }, |
3815 { "name": "scaleFactor", "type": "number", "description": "R
elative scale factor after zooming (>1.0 zooms in, <1.0 zooms out)." }, | 3797 { "name": "scaleFactor", "type": "number", "description": "R
elative scale factor after zooming (>1.0 zooms in, <1.0 zooms out)." }, |
3816 { "name": "relativeSpeed", "type": "integer", "optional": tr
ue, "description": "Relative pointer speed in pixels per second (default: 800)."
}, | 3798 { "name": "relativeSpeed", "type": "integer", "optional": tr
ue, "description": "Relative pointer speed in pixels per second (default: 800)."
}, |
3817 { "name": "gestureSourceType", "$ref": "GestureSourceType",
"optional": true, "description": "Which type of input events to be generated (de
fault: 'default', which queries the platform for the preferred input type)." } | 3799 { "name": "gestureSourceType", "$ref": "GestureSourceType",
"optional": true, "description": "Which type of input events to be generated (de
fault: 'default', which queries the platform for the preferred input type)." } |
3818 ], | 3800 ], |
3819 "description": "Synthesizes a pinch gesture over a time period b
y issuing appropriate touch events.", | 3801 "description": "Synthesizes a pinch gesture over a time period b
y issuing appropriate touch events.", |
3820 "experimental": true, | 3802 "experimental": true, |
3821 "handlers": ["browser"] | 3803 "handlers": [] |
3822 }, | 3804 }, |
3823 { | 3805 { |
3824 "name": "synthesizeScrollGesture", | 3806 "name": "synthesizeScrollGesture", |
3825 "async": true, | 3807 "async": true, |
3826 "parameters": [ | 3808 "parameters": [ |
3827 { "name": "x", "type": "integer", "description": "X coordina
te of the start of the gesture in CSS pixels." }, | 3809 { "name": "x", "type": "integer", "description": "X coordina
te of the start of the gesture in CSS pixels." }, |
3828 { "name": "y", "type": "integer", "description": "Y coordina
te of the start of the gesture in CSS pixels." }, | 3810 { "name": "y", "type": "integer", "description": "Y coordina
te of the start of the gesture in CSS pixels." }, |
3829 { "name": "xDistance", "type": "integer", "optional": true,
"description": "The distance to scroll along the X axis (positive to scroll left
)." }, | 3811 { "name": "xDistance", "type": "integer", "optional": true,
"description": "The distance to scroll along the X axis (positive to scroll left
)." }, |
3830 { "name": "yDistance", "type": "integer", "optional": true,
"description": "The distance to scroll along the Y axis (positive to scroll up).
" }, | 3812 { "name": "yDistance", "type": "integer", "optional": true,
"description": "The distance to scroll along the Y axis (positive to scroll up).
" }, |
3831 { "name": "xOverscroll", "type": "integer", "optional": true
, "description": "The number of additional pixels to scroll back along the X axi
s, in addition to the given distance." }, | 3813 { "name": "xOverscroll", "type": "integer", "optional": true
, "description": "The number of additional pixels to scroll back along the X axi
s, in addition to the given distance." }, |
3832 { "name": "yOverscroll", "type": "integer", "optional": true
, "description": "The number of additional pixels to scroll back along the Y axi
s, in addition to the given distance." }, | 3814 { "name": "yOverscroll", "type": "integer", "optional": true
, "description": "The number of additional pixels to scroll back along the Y axi
s, in addition to the given distance." }, |
3833 { "name": "preventFling", "type": "boolean", "optional": tru
e, "description": "Prevent fling (default: true)." }, | 3815 { "name": "preventFling", "type": "boolean", "optional": tru
e, "description": "Prevent fling (default: true)." }, |
3834 { "name": "speed", "type": "integer", "optional": true, "des
cription": "Swipe speed in pixels per second (default: 800)." }, | 3816 { "name": "speed", "type": "integer", "optional": true, "des
cription": "Swipe speed in pixels per second (default: 800)." }, |
3835 { "name": "gestureSourceType", "$ref": "GestureSourceType",
"optional": true, "description": "Which type of input events to be generated (de
fault: 'default', which queries the platform for the preferred input type)." }, | 3817 { "name": "gestureSourceType", "$ref": "GestureSourceType",
"optional": true, "description": "Which type of input events to be generated (de
fault: 'default', which queries the platform for the preferred input type)." }, |
3836 { "name": "repeatCount", "type": "integer", "optional": true
, "description": "The number of times to repeat the gesture (default: 0)." }, | 3818 { "name": "repeatCount", "type": "integer", "optional": true
, "description": "The number of times to repeat the gesture (default: 0)." }, |
3837 { "name": "repeatDelayMs", "type": "integer", "optional": tr
ue, "description": "The number of milliseconds delay between each repeat. (defau
lt: 250)." }, | 3819 { "name": "repeatDelayMs", "type": "integer", "optional": tr
ue, "description": "The number of milliseconds delay between each repeat. (defau
lt: 250)." }, |
3838 { "name": "interactionMarkerName", "type": "string", "option
al": true, "description": "The name of the interaction markers to generate, if n
ot empty (default: \"\")." } | 3820 { "name": "interactionMarkerName", "type": "string", "option
al": true, "description": "The name of the interaction markers to generate, if n
ot empty (default: \"\")." } |
3839 ], | 3821 ], |
3840 "description": "Synthesizes a scroll gesture over a time period
by issuing appropriate touch events.", | 3822 "description": "Synthesizes a scroll gesture over a time period
by issuing appropriate touch events.", |
3841 "experimental": true, | 3823 "experimental": true, |
3842 "handlers": ["browser"] | 3824 "handlers": [] |
3843 }, | 3825 }, |
3844 { | 3826 { |
3845 "name": "synthesizeTapGesture", | 3827 "name": "synthesizeTapGesture", |
3846 "async": true, | 3828 "async": true, |
3847 "parameters": [ | 3829 "parameters": [ |
3848 { "name": "x", "type": "integer", "description": "X coordina
te of the start of the gesture in CSS pixels." }, | 3830 { "name": "x", "type": "integer", "description": "X coordina
te of the start of the gesture in CSS pixels." }, |
3849 { "name": "y", "type": "integer", "description": "Y coordina
te of the start of the gesture in CSS pixels." }, | 3831 { "name": "y", "type": "integer", "description": "Y coordina
te of the start of the gesture in CSS pixels." }, |
3850 { "name": "duration", "type": "integer", "optional": true, "
description": "Duration between touchdown and touchup events in ms (default: 50)
." }, | 3832 { "name": "duration", "type": "integer", "optional": true, "
description": "Duration between touchdown and touchup events in ms (default: 50)
." }, |
3851 { "name": "tapCount", "type": "integer", "optional": true, "
description": "Number of times to perform the tap (e.g. 2 for double tap, defaul
t: 1)." }, | 3833 { "name": "tapCount", "type": "integer", "optional": true, "
description": "Number of times to perform the tap (e.g. 2 for double tap, defaul
t: 1)." }, |
3852 { "name": "gestureSourceType", "$ref": "GestureSourceType",
"optional": true, "description": "Which type of input events to be generated (de
fault: 'default', which queries the platform for the preferred input type)." } | 3834 { "name": "gestureSourceType", "$ref": "GestureSourceType",
"optional": true, "description": "Which type of input events to be generated (de
fault: 'default', which queries the platform for the preferred input type)." } |
3853 ], | 3835 ], |
3854 "description": "Synthesizes a tap gesture over a time period by
issuing appropriate touch events.", | 3836 "description": "Synthesizes a tap gesture over a time period by
issuing appropriate touch events.", |
3855 "experimental": true, | 3837 "experimental": true, |
3856 "handlers": ["browser"] | 3838 "handlers": [] |
3857 } | 3839 } |
3858 ], | 3840 ], |
3859 "events": [] | 3841 "events": [] |
3860 }, | 3842 }, |
3861 { | 3843 { |
3862 "domain": "LayerTree", | 3844 "domain": "LayerTree", |
3863 "experimental": true, | 3845 "experimental": true, |
3864 "dependencies": ["DOM"], | 3846 "dependencies": ["DOM"], |
3865 "types": [ | 3847 "types": [ |
3866 { | 3848 { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4069 { | 4051 { |
4070 "name": "start", | 4052 "name": "start", |
4071 "async": true, | 4053 "async": true, |
4072 "description": "Start trace events collection.", | 4054 "description": "Start trace events collection.", |
4073 "parameters": [ | 4055 "parameters": [ |
4074 { "name": "categories", "type": "string", "optional": true,
"deprecated": true, "description": "Category/tag filter" }, | 4056 { "name": "categories", "type": "string", "optional": true,
"deprecated": true, "description": "Category/tag filter" }, |
4075 { "name": "options", "type": "string", "optional": true, "de
precated": true, "description": "Tracing options" }, | 4057 { "name": "options", "type": "string", "optional": true, "de
precated": true, "description": "Tracing options" }, |
4076 { "name": "bufferUsageReportingInterval", "type": "number",
"optional": true, "description": "If set, the agent will issue bufferUsage event
s at this interval, specified in milliseconds" }, | 4058 { "name": "bufferUsageReportingInterval", "type": "number",
"optional": true, "description": "If set, the agent will issue bufferUsage event
s at this interval, specified in milliseconds" }, |
4077 { "name": "transferMode", "type": "string", "enum": ["Report
Events", "ReturnAsStream"], "optional": true, "description": "Whether to report
trace events as series of dataCollected events or to save trace to a stream (def
aults to <code>ReportEvents</code>)." }, | 4059 { "name": "transferMode", "type": "string", "enum": ["Report
Events", "ReturnAsStream"], "optional": true, "description": "Whether to report
trace events as series of dataCollected events or to save trace to a stream (def
aults to <code>ReportEvents</code>)." }, |
4078 { "name": "traceConfig", "$ref": "TraceConfig", "optional":
true, "description": "" } | 4060 { "name": "traceConfig", "$ref": "TraceConfig", "optional":
true, "description": "" } |
4079 ], | 4061 ] |
4080 "handlers": ["browser", "renderer"] | |
4081 }, | 4062 }, |
4082 { | 4063 { |
4083 "name": "end", | 4064 "name": "end", |
4084 "async": true, | 4065 "async": true, |
4085 "description": "Stop trace events collection.", | 4066 "description": "Stop trace events collection." |
4086 "handlers": ["browser", "renderer"] | |
4087 }, | 4067 }, |
4088 { | 4068 { |
4089 "name": "getCategories", | 4069 "name": "getCategories", |
4090 "async": true, | 4070 "async": true, |
4091 "description": "Gets supported tracing categories.", | 4071 "description": "Gets supported tracing categories.", |
4092 "returns": [ | 4072 "returns": [ |
4093 { "name": "categories", "type": "array", "items": { "type":
"string" }, "description": "A list of supported tracing categories." } | 4073 { "name": "categories", "type": "array", "items": { "type":
"string" }, "description": "A list of supported tracing categories." } |
4094 ], | 4074 ], |
4095 "handlers": ["browser"] | 4075 "handlers": [] |
4096 }, | 4076 }, |
4097 { | 4077 { |
4098 "name": "requestMemoryDump", | 4078 "name": "requestMemoryDump", |
4099 "async": true, | 4079 "async": true, |
4100 "description": "Request a global memory dump.", | 4080 "description": "Request a global memory dump.", |
4101 "returns": [ | 4081 "returns": [ |
4102 { "name": "dumpGuid", "type": "string", "description": "GUID
of the resulting global memory dump." }, | 4082 { "name": "dumpGuid", "type": "string", "description": "GUID
of the resulting global memory dump." }, |
4103 { "name": "success", "type": "boolean", "description": "True
iff the global memory dump succeeded." } | 4083 { "name": "success", "type": "boolean", "description": "True
iff the global memory dump succeeded." } |
4104 ], | 4084 ], |
4105 "handlers": ["browser"] | 4085 "handlers": [] |
4106 }, | 4086 }, |
4107 { | 4087 { |
4108 "name": "recordClockSyncMarker", | 4088 "name": "recordClockSyncMarker", |
4109 "description": "Record a clock sync marker in the trace.", | 4089 "description": "Record a clock sync marker in the trace.", |
4110 "parameters": [ | 4090 "parameters": [ |
4111 { "name": "syncId", "type": "string", "description": "The ID
of this clock sync marker" } | 4091 { "name": "syncId", "type": "string", "description": "The ID
of this clock sync marker" } |
4112 ], | 4092 ], |
4113 "handlers": ["browser"] | 4093 "handlers": [] |
4114 } | 4094 } |
4115 ], | 4095 ], |
4116 "events": [ | 4096 "events": [ |
4117 { | 4097 { |
4118 "name": "dataCollected", | 4098 "name": "dataCollected", |
4119 "parameters": [ | 4099 "parameters": [ |
4120 { "name": "value", "type": "array", "items": { "type": "obje
ct" } } | 4100 { "name": "value", "type": "array", "items": { "type": "obje
ct" } } |
4121 ], | 4101 ], |
4122 "description": "Contains an bucket of collected trace events. Wh
en tracing is stopped collected events will be send as a sequence of dataCollect
ed events followed by tracingComplete event.", | 4102 "description": "Contains an bucket of collected trace events. Wh
en tracing is stopped collected events will be send as a sequence of dataCollect
ed events followed by tracingComplete event.", |
4123 "handlers": ["browser"] | 4103 "handlers": [] |
4124 }, | 4104 }, |
4125 { | 4105 { |
4126 "name": "tracingComplete", | 4106 "name": "tracingComplete", |
4127 "description": "Signals that tracing is stopped and there is no
trace buffers pending flush, all data were delivered via dataCollected events.", | 4107 "description": "Signals that tracing is stopped and there is no
trace buffers pending flush, all data were delivered via dataCollected events.", |
4128 "parameters": [ | 4108 "parameters": [ |
4129 { "name": "stream", "$ref": "IO.StreamHandle", "optional": t
rue, "description": "A handle of the stream that holds resulting trace data." } | 4109 { "name": "stream", "$ref": "IO.StreamHandle", "optional": t
rue, "description": "A handle of the stream that holds resulting trace data." } |
4130 ], | 4110 ], |
4131 "handlers": ["browser"] | 4111 "handlers": [] |
4132 }, | 4112 }, |
4133 { | 4113 { |
4134 "name": "bufferUsage", | 4114 "name": "bufferUsage", |
4135 "parameters": [ | 4115 "parameters": [ |
4136 { "name": "percentFull", "type": "number", "optional": true,
"description": "A number in range [0..1] that indicates the used size of event
buffer as a fraction of its total size." }, | 4116 { "name": "percentFull", "type": "number", "optional": true,
"description": "A number in range [0..1] that indicates the used size of event
buffer as a fraction of its total size." }, |
4137 { "name": "eventCount", "type": "number", "optional": true,
"description": "An approximate number of events in the trace log." }, | 4117 { "name": "eventCount", "type": "number", "optional": true,
"description": "An approximate number of events in the trace log." }, |
4138 { "name": "value", "type": "number", "optional": true, "desc
ription": "A number in range [0..1] that indicates the used size of event buffer
as a fraction of its total size." } | 4118 { "name": "value", "type": "number", "optional": true, "desc
ription": "A number in range [0..1] that indicates the used size of event buffer
as a fraction of its total size." } |
4139 ], | 4119 ], |
4140 "handlers": ["browser"] | 4120 "handlers": [] |
4141 } | 4121 } |
4142 ] | 4122 ] |
4143 }, | 4123 }, |
4144 { | 4124 { |
4145 "domain": "Animation", | 4125 "domain": "Animation", |
4146 "experimental": true, | 4126 "experimental": true, |
4147 "dependencies": ["Runtime", "DOM"], | 4127 "dependencies": ["Runtime", "DOM"], |
4148 "types": [ | 4128 "types": [ |
4149 { | 4129 { |
4150 "id": "Animation", | 4130 "id": "Animation", |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4456 } | 4436 } |
4457 ], | 4437 ], |
4458 "commands": [ | 4438 "commands": [ |
4459 { | 4439 { |
4460 "name": "clearDataForOrigin", | 4440 "name": "clearDataForOrigin", |
4461 "parameters": [ | 4441 "parameters": [ |
4462 { "name": "origin", "type": "string", "description": "Securi
ty origin." }, | 4442 { "name": "origin", "type": "string", "description": "Securi
ty origin." }, |
4463 { "name": "storageTypes", "type": "string", "description": "
Comma separated origin names." } | 4443 { "name": "storageTypes", "type": "string", "description": "
Comma separated origin names." } |
4464 ], | 4444 ], |
4465 "description": "Clears storage for origin.", | 4445 "description": "Clears storage for origin.", |
4466 "handlers": ["browser"] | 4446 "handlers": [] |
4467 } | 4447 } |
4468 ] | 4448 ] |
4469 }, | 4449 }, |
4470 { | 4450 { |
4471 "domain": "Log", | 4451 "domain": "Log", |
4472 "description": "Provides access to log entries.", | 4452 "description": "Provides access to log entries.", |
4473 "dependencies": ["Runtime", "Network"], | 4453 "dependencies": ["Runtime", "Network"], |
4474 "experimental": true, | 4454 "experimental": true, |
4475 "types": [ | 4455 "types": [ |
4476 { | 4456 { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4545 "commands": [ | 4525 "commands": [ |
4546 { | 4526 { |
4547 "name": "getInfo", | 4527 "name": "getInfo", |
4548 "async": true, | 4528 "async": true, |
4549 "description": "Returns information about the system.", | 4529 "description": "Returns information about the system.", |
4550 "returns": [ | 4530 "returns": [ |
4551 { "name": "gpu", "$ref": "GPUInfo", "description": "Informat
ion about the GPUs on the system." }, | 4531 { "name": "gpu", "$ref": "GPUInfo", "description": "Informat
ion about the GPUs on the system." }, |
4552 { "name": "modelName", "type": "string", "description": "A p
latform-dependent description of the model of the machine. On Mac OS, this is, f
or example, 'MacBookPro'. Will be the empty string if not supported." }, | 4532 { "name": "modelName", "type": "string", "description": "A p
latform-dependent description of the model of the machine. On Mac OS, this is, f
or example, 'MacBookPro'. Will be the empty string if not supported." }, |
4553 { "name": "modelVersion", "type": "string", "description": "
A platform-dependent description of the version of the machine. On Mac OS, this
is, for example, '10.1'. Will be the empty string if not supported." } | 4533 { "name": "modelVersion", "type": "string", "description": "
A platform-dependent description of the version of the machine. On Mac OS, this
is, for example, '10.1'. Will be the empty string if not supported." } |
4554 ], | 4534 ], |
4555 "handlers": ["browser"] | 4535 "handlers": [] |
4556 } | 4536 } |
4557 ] | 4537 ] |
4558 }, | 4538 }, |
4559 { | 4539 { |
4560 "domain": "Tethering", | 4540 "domain": "Tethering", |
4561 "description": "The Tethering domain defines methods and events for brow
ser port binding.", | 4541 "description": "The Tethering domain defines methods and events for brow
ser port binding.", |
4562 "experimental": true, | 4542 "experimental": true, |
4563 "commands": [ | 4543 "commands": [ |
4564 { | 4544 { |
4565 "name": "bind", | 4545 "name": "bind", |
4566 "async": true, | 4546 "async": true, |
4567 "description": "Request browser port binding.", | 4547 "description": "Request browser port binding.", |
4568 "parameters": [ | 4548 "parameters": [ |
4569 { "name": "port", "type": "integer", "description": "Port nu
mber to bind." } | 4549 { "name": "port", "type": "integer", "description": "Port nu
mber to bind." } |
4570 ], | 4550 ], |
4571 "handlers": ["browser"] | 4551 "handlers": [] |
4572 }, | 4552 }, |
4573 { | 4553 { |
4574 "name": "unbind", | 4554 "name": "unbind", |
4575 "async": true, | 4555 "async": true, |
4576 "description": "Request browser port unbinding.", | 4556 "description": "Request browser port unbinding.", |
4577 "parameters": [ | 4557 "parameters": [ |
4578 { "name": "port", "type": "integer", "description": "Port nu
mber to unbind." } | 4558 { "name": "port", "type": "integer", "description": "Port nu
mber to unbind." } |
4579 ], | 4559 ], |
4580 "handlers": ["browser"] | 4560 "handlers": [] |
4581 } | 4561 } |
4582 ], | 4562 ], |
4583 "events": [ | 4563 "events": [ |
4584 { | 4564 { |
4585 "name": "accepted", | 4565 "name": "accepted", |
4586 "description": "Informs that port was successfully bound and got
a specified connection id.", | 4566 "description": "Informs that port was successfully bound and got
a specified connection id.", |
4587 "parameters": [ | 4567 "parameters": [ |
4588 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, | 4568 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, |
4589 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } | 4569 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } |
4590 ], | 4570 ], |
4591 "handlers": ["browser"] | 4571 "handlers": [] |
4592 } | 4572 } |
4593 ] | 4573 ] |
4594 }] | 4574 }] |
4595 } | 4575 } |
OLD | NEW |