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 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3409 "name": "setRemoteLocations", | 3409 "name": "setRemoteLocations", |
3410 "description": "Enables target discovery for the specified locat ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.", | 3410 "description": "Enables target discovery for the specified locat ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.", |
3411 "parameters": [ | 3411 "parameters": [ |
3412 { "name": "locations", "type": "array", "items": { "$ref": " RemoteLocation" }, "description": "List of remote locations." } | 3412 { "name": "locations", "type": "array", "items": { "$ref": " RemoteLocation" }, "description": "List of remote locations." } |
3413 ] | 3413 ] |
3414 }, | 3414 }, |
3415 { | 3415 { |
3416 "name": "sendMessageToTarget", | 3416 "name": "sendMessageToTarget", |
3417 "description": "Sends protocol message to the target with given id.", | 3417 "description": "Sends protocol message to the target with given id.", |
3418 "parameters": [ | 3418 "parameters": [ |
3419 { "name": "targetId", "type": "string" }, | 3419 { "name": "targetId", "$ref": "TargetID" }, |
3420 { "name": "message", "type": "string" } | 3420 { "name": "message", "type": "string" } |
3421 ] | 3421 ] |
3422 }, | 3422 }, |
3423 { | 3423 { |
3424 "name": "getTargetInfo", | 3424 "name": "getTargetInfo", |
3425 "description": "Returns information about a target.", | 3425 "description": "Returns information about a target.", |
3426 "parameters": [ | 3426 "parameters": [ |
3427 { "name": "targetId", "$ref": "TargetID" } | 3427 { "name": "targetId", "$ref": "TargetID" } |
3428 ], | 3428 ], |
3429 "returns": [ | 3429 "returns": [ |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4544 "events": [ | 4544 "events": [ |
4545 { | 4545 { |
4546 "name": "accepted", | 4546 "name": "accepted", |
4547 "description": "Informs that port was successfully bound and got a specified connection id.", | 4547 "description": "Informs that port was successfully bound and got a specified connection id.", |
4548 "parameters": [ | 4548 "parameters": [ |
4549 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, | 4549 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, |
4550 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } | 4550 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } |
4551 ] | 4551 ] |
4552 } | 4552 } |
4553 ] | 4553 ] |
4554 }, | |
4555 { | |
4556 "domain": "UI", | |
pfeldman
2017/03/21 17:36:02
Let's rename this to Browser, we might have more B
jzfeng
2017/03/22 06:56:09
Done.
| |
4557 "description": "The UI domain defines methods and events for browser UI managing.", | |
4558 "experimental": true, | |
4559 "types": [ | |
4560 { | |
4561 "id": "WindowID", | |
4562 "type": "integer" | |
4563 } | |
4564 ], | |
4565 "commands": [ | |
4566 { | |
4567 "name": "getWindowFromTarget", | |
pfeldman
2017/03/21 17:36:02
getWindowForTarget
jzfeng
2017/03/22 06:56:09
Done.
| |
4568 "description": "Get the browser window that contains the devtool s target.", | |
4569 "parameters": [ | |
4570 { "name": "targetId", "$ref": "Target.TargetID", "descriptio n": "Devtools agent host id." } | |
4571 ], | |
4572 "returns": [ | |
4573 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } | |
4574 ] | |
4575 }, | |
4576 { | |
4577 "name": "maximizeWindow", | |
pfeldman
2017/03/21 17:36:02
If minimized/maximized state is mutually exclusive
jzfeng
2017/03/22 06:56:09
Make the method interface the same as chrome.windo
| |
4578 "description": "Maximize the browser window.", | |
4579 "parameters": [ | |
4580 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } | |
4581 ] | |
4582 }, | |
4583 { | |
4584 "name": "minimizeWindow", | |
4585 "description": "Minimize the browser window.", | |
4586 "parameters": [ | |
4587 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } | |
4588 ] | |
4589 }, | |
4590 { | |
4591 "name": "setWindowFullscreen", | |
4592 "description": "Change the browser window fullscreen state.", | |
4593 "parameters": [ | |
4594 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." }, | |
4595 { "name": "fullscreen", "type": "boolean" } | |
4596 ] | |
4597 }, | |
4598 { | |
4599 "name": "setWindowBounds", | |
4600 "description": "Set position and/or size of the browser window." , | |
4601 "parameters": [ | |
4602 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." }, | |
4603 { "name": "left", "type": "integer", "optional": true, "desc ription": "The offset from the left edge of the screen to move the window to in pixels."}, | |
4604 { "name": "top", "type": "integer", "optional": true, "descr iption": "The offset from the top edge of the screen to move the window to in pi xels."}, | |
4605 { "name": "width", "type": "integer", "optional": true, "des cription": "The width to resize the window to in pixels."}, | |
4606 { "name": "height", "type": "integer", "optional": true, "de scription": "The height to resize the window to in pixels."} | |
4607 ] | |
4608 }, | |
4609 { | |
4610 "name": "getWindowBounds", | |
4611 "description": "Get position and size of the browser window.", | |
4612 "parameters": [ | |
4613 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } | |
4614 ], | |
4615 "returns": [ | |
4616 { "name": "left", "type": "integer", "description": "The off set from the left edge of the screen to move the window to in pixels."}, | |
4617 { "name": "top", "type": "integer", "description": "The offs et from the top edge of the screen to move the window to in pixels."}, | |
4618 { "name": "width", "type": "integer", "description": "The wi dth to resize the window to in pixels."}, | |
4619 { "name": "height", "type": "integer", "description": "The h eight to resize the window to in pixels."} | |
4620 ] | |
4621 } | |
4622 ] | |
4554 }] | 4623 }] |
4555 } | 4624 } |
OLD | NEW |