Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
index 6527abc46147dfce17a799ed161709ebaff09425..e60bc1e882dae119d2077e5f743b0781cfd24689 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -4551,5 +4551,68 @@ |
] |
} |
] |
+ }, |
+ { |
+ "domain": "UI", |
+ "description": "The UI domain defines methods and events for browser UI managing.", |
+ "experimental": true, |
+ "commands": [ |
+ { |
+ "name": "getWindowFromTarget", |
+ "description": "Get the browser window that contains the devtools target.", |
+ "parameters": [ |
+ { "name": "targetId", "type": "string", "description": "Devtools agent host id." } |
dgozman
2017/03/20 22:00:48
$ref: Target.TargetID
jzfeng
2017/03/21 09:13:32
Done.
|
+ ], |
+ "returns": [ |
+ { "name": "windowId", "type": "integer", "description": "Browser window id." } |
dgozman
2017/03/20 22:00:48
Let's have a defined type WindowID (see TargetID f
jzfeng
2017/03/21 09:13:32
Done.
|
+ ] |
+ }, |
+ { |
+ "name": "maximizeWindow", |
+ "description": "Maximize the browser window.", |
+ "parameters": [ |
+ { "name": "windowId", "type": "integer", "description": "Browser window id." } |
+ ] |
+ }, |
+ { |
+ "name": "minimizeWindow", |
+ "description": "Maximize the browser window.", |
dgozman
2017/03/20 22:00:48
Minimize
jzfeng
2017/03/21 09:13:32
Done.
|
+ "parameters": [ |
+ { "name": "windowId", "type": "integer", "description": "Browser window id." } |
+ ] |
+ }, |
+ { |
+ "name": "setWindowFullscreen", |
+ "description": "Change the browser window fullscreen state.", |
+ "parameters": [ |
+ { "name": "windowId", "type": "integer", "description": "Browser window id." }, |
+ { "name": "fullscreen", "type": "boolean" } |
+ ] |
+ }, |
+ { |
+ "name": "setWindowBounds", |
+ "description": "Set position and/or size of the browser window.", |
+ "parameters": [ |
+ { "name": "windowId", "type": "integer", "description": "Browser window id." }, |
+ { "name": "left", "type": "integer", "optional": true, "description": "The offset from the left edge of the screen to move the window to in pixels."}, |
+ { "name": "top", "type": "integer", "optional": true, "description": "The offset from the top edge of the screen to move the window to in pixels."}, |
+ { "name": "width", "type": "integer", "optional": true, "description": "The width to resize the window to in pixels."}, |
+ { "name": "height", "type": "integer", "optional": true, "description": "The height to resize the window to in pixels."} |
+ ] |
+ }, |
+ { |
+ "name": "getWindowBounds", |
+ "description": "Get position and size of the browser window.", |
+ "parameters": [ |
+ { "name": "windowId", "type": "integer", "description": "Browser window id." } |
+ ], |
+ "returns": [ |
+ { "name": "left", "type": "integer", "description": "The offset from the left edge of the screen to move the window to in pixels."}, |
+ { "name": "top", "type": "integer", "description": "The offset from the top edge of the screen to move the window to in pixels."}, |
+ { "name": "width", "type": "integer", "description": "The width to resize the window to in pixels."}, |
+ { "name": "height", "type": "integer", "description": "The height to resize the window to in pixels."} |
+ ] |
+ } |
+ ] |
}] |
} |