Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2226323002: Resize DevTools target frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move command to Emulation, pull out other fixes into separate patch. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b15d5f505b32246e1c4f22bd7ca9a7bfe6cf071d 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -758,6 +758,24 @@
]
},
{
+ "name": "getFrameSize",
pfeldman 2016/08/11 14:34:17 Do you expect getFrameSize to be used in automatio
Eric Seckler 2016/08/11 14:45:50 It would allow us to take partial screenshots with
+ "description": "Returns the size of the target's (non-overridden) frame.",
+ "returns": [
+ { "name": "width", "type": "integer", "description": "Frame width (DIP)." },
+ { "name": "height", "type": "integer", "description": "Frame height (DIP)." }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "setFrameSize",
+ "description": "Resize the target's frame. Note that this does not affect the frame's container (e.g. browser window).",
+ "parameters": [
+ { "name": "width", "type": "integer", "description": "Frame width (DIP)." },
+ { "name": "height", "type": "integer", "description": "Frame height (DIP)." }
+ ],
+ "handlers": ["browser"]
+ },
+ {
"name": "setScriptExecutionDisabled",
"description": "Switches script execution in the page.",
"parameters": [
@@ -4319,8 +4337,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": "Frame width (DIP).", "optional": true },
+ { "name": "height", "type": "integer", "description": "Frame height (DIP).", "optional": true },
{ "name": "browserContextId", "$ref": "BrowserContextID", "description": "The browser context to create the page in (headless chrome only).", "optional": true }
],
"returns": [
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698