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

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: 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 | « content/browser/devtools/protocol/browser_handler.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..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": [
« no previous file with comments | « content/browser/devtools/protocol/browser_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698