Chromium Code Reviews| 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 d4421424d10881a3da18992ade69f5798072a1be..f88e46372e598292f9d12e63c172316fe81e8328 100644 |
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
| @@ -4319,8 +4319,8 @@ |
| "description": "Creates a new page.", |
| "parameters": [ |
| { "name": "url", "type": "string", "description": "The initial URL the page will be navigated to." }, |
| - { "name": "width", "type": "integer", "description": "Window width (headless chrome only).", "optional": true }, |
| - { "name": "height", "type": "integer", "description": "Window height (headless chrome only).", "optional": true }, |
| + { "name": "width", "type": "integer", "description": "Web contents width.", "optional": true }, |
| + { "name": "height", "type": "integer", "description": "Web contents height.", "optional": true }, |
| { "name": "browserContextId", "$ref": "BrowserContextID", "description": "The browser context to create the page in (headless chrome only).", "optional": true } |
| ], |
| "returns": [ |
| @@ -4348,6 +4348,28 @@ |
| "handlers": ["browser"] |
| }, |
| { |
| + "name": "getWebContentsSize", |
|
Sami
2016/08/09 16:45:44
Would get/setFrameSize or get/setMainFrameSize wor
Eric Seckler
2016/08/10 11:12:26
Done.
|
| + "description": "Returns the size of the WebContents of a target.", |
| + "parameters": [ |
| + { "name": "targetId", "$ref": "TargetID" } |
| + ], |
| + "returns": [ |
| + { "name": "width", "type": "integer", "description": "Web contents width." }, |
|
Sami
2016/08/09 16:45:44
I'm guessing these are physical pixels -- still wo
Eric Seckler
2016/08/10 11:12:26
Actually, AFAICT, these are DIPs. Done.
|
| + { "name": "height", "type": "integer", "description": "Web contents height." } |
| + ], |
| + "handlers": ["browser"] |
| + }, |
| + { |
| + "name": "setWebContentsSize", |
| + "description": "Resize the WebContents of a target.", |
| + "parameters": [ |
| + { "name": "targetId", "$ref": "TargetID" }, |
| + { "name": "width", "type": "integer", "description": "Web contents width." }, |
| + { "name": "height", "type": "integer", "description": "Web contents height." } |
| + ], |
| + "handlers": ["browser"] |
| + }, |
| + { |
| "name": "attach", |
| "description": "Attaches to the target with given id.", |
| "parameters": [ |