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." |
(...skipping 3440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3451 "name": "setRemoteLocations", | 3451 "name": "setRemoteLocations", |
3452 "description": "Enables target discovery for the specified locat
ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.", | 3452 "description": "Enables target discovery for the specified locat
ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.", |
3453 "parameters": [ | 3453 "parameters": [ |
3454 { "name": "locations", "type": "array", "items": { "$ref": "
RemoteLocation" }, "description": "List of remote locations." } | 3454 { "name": "locations", "type": "array", "items": { "$ref": "
RemoteLocation" }, "description": "List of remote locations." } |
3455 ] | 3455 ] |
3456 }, | 3456 }, |
3457 { | 3457 { |
3458 "name": "sendMessageToTarget", | 3458 "name": "sendMessageToTarget", |
3459 "description": "Sends protocol message to the target with given
id.", | 3459 "description": "Sends protocol message to the target with given
id.", |
3460 "parameters": [ | 3460 "parameters": [ |
3461 { "name": "targetId", "type": "string" }, | 3461 { "name": "targetId", "$ref": "TargetID" }, |
3462 { "name": "message", "type": "string" } | 3462 { "name": "message", "type": "string" } |
3463 ] | 3463 ] |
3464 }, | 3464 }, |
3465 { | 3465 { |
3466 "name": "getTargetInfo", | 3466 "name": "getTargetInfo", |
3467 "description": "Returns information about a target.", | 3467 "description": "Returns information about a target.", |
3468 "parameters": [ | 3468 "parameters": [ |
3469 { "name": "targetId", "$ref": "TargetID" } | 3469 { "name": "targetId", "$ref": "TargetID" } |
3470 ], | 3470 ], |
3471 "returns": [ | 3471 "returns": [ |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4586 "events": [ | 4586 "events": [ |
4587 { | 4587 { |
4588 "name": "accepted", | 4588 "name": "accepted", |
4589 "description": "Informs that port was successfully bound and got
a specified connection id.", | 4589 "description": "Informs that port was successfully bound and got
a specified connection id.", |
4590 "parameters": [ | 4590 "parameters": [ |
4591 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, | 4591 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, |
4592 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } | 4592 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } |
4593 ] | 4593 ] |
4594 } | 4594 } |
4595 ] | 4595 ] |
| 4596 }, |
| 4597 { |
| 4598 "domain": "Browser", |
| 4599 "description": "The Browser domain defines methods and events for browse
r managing.", |
| 4600 "experimental": true, |
| 4601 "types": [ |
| 4602 { |
| 4603 "id": "WindowID", |
| 4604 "type": "integer" |
| 4605 }, |
| 4606 { |
| 4607 "id": "WindowState", |
| 4608 "type": "string", |
| 4609 "enum": ["normal", "minimized", "maximized", "fullscreen"], |
| 4610 "description": "The state of the browser window." |
| 4611 }, |
| 4612 { |
| 4613 "id": "Bounds", |
| 4614 "type": "object", |
| 4615 "description": "Browser window bounds information", |
| 4616 "properties": [ |
| 4617 { "name": "left", "type": "integer", "optional": true, "desc
ription": "The offset from the left edge of the screen to the window in pixels."
}, |
| 4618 { "name": "top", "type": "integer", "optional": true, "descr
iption": "The offset from the top edge of the screen to the window in pixels."}, |
| 4619 { "name": "width", "type": "integer", "optional": true, "des
cription": "The window width in pixels."}, |
| 4620 { "name": "height", "type": "integer", "optional": true, "de
scription": "The window height in pixels."}, |
| 4621 { "name": "windowState", "$ref": "WindowState", "optional":
true, "description": "The window state. Default to normal."} |
| 4622 ] |
| 4623 } |
| 4624 ], |
| 4625 "commands": [ |
| 4626 { |
| 4627 "name": "getWindowForTarget", |
| 4628 "description": "Get the browser window that contains the devtool
s target.", |
| 4629 "parameters": [ |
| 4630 { "name": "targetId", "$ref": "Target.TargetID", "descriptio
n": "Devtools agent host id." } |
| 4631 ], |
| 4632 "returns": [ |
| 4633 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." }, |
| 4634 { "name": "bounds", "$ref": "Bounds", "description": "Bounds
information of the window. When window state is 'minimized', the restored windo
w position and size are returned." } |
| 4635 ] |
| 4636 }, |
| 4637 { |
| 4638 "name": "setWindowBounds", |
| 4639 "description": "Set position and/or size of the browser window."
, |
| 4640 "parameters": [ |
| 4641 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." }, |
| 4642 { "name": "bounds", "$ref": "Bounds", "description": "New wi
ndow bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be comb
ined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchange
d." } |
| 4643 ] |
| 4644 }, |
| 4645 { |
| 4646 "name": "getWindowBounds", |
| 4647 "description": "Get position and size of the browser window.", |
| 4648 "parameters": [ |
| 4649 { "name": "windowId", "$ref": "WindowID", "description": "Br
owser window id." } |
| 4650 ], |
| 4651 "returns": [ |
| 4652 { "name": "bounds", "$ref": "Bounds", "description": "Bounds
information of the window. When window state is 'minimized', the restored windo
w position and size are returned." } |
| 4653 ] |
| 4654 } |
| 4655 ] |
4596 }] | 4656 }] |
4597 } | 4657 } |
OLD | NEW |