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

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: Rename, add tests, fix comments/style, add support in shell. 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
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..bf5d8a46bfad7698a4cc5134e2d8fc05c3513394 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": "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": [
@@ -4348,6 +4348,28 @@
"handlers": ["browser"]
},
{
+ "name": "getFrameSize",
+ "description": "Returns the size of the frame of a target.",
+ "parameters": [
+ { "name": "targetId", "$ref": "TargetID" }
+ ],
+ "returns": [
+ { "name": "width", "type": "integer", "description": "Frame width (DIP)." },
+ { "name": "height", "type": "integer", "description": "Frame height (DIP)." }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "setFrameSize",
+ "description": "Resize the frame of a target. Note that this does not affect the frame's container (e.g. browser window).",
+ "parameters": [
+ { "name": "targetId", "$ref": "TargetID" },
+ { "name": "width", "type": "integer", "description": "Frame width (DIP)." },
+ { "name": "height", "type": "integer", "description": "Frame height (DIP)." }
+ ],
+ "handlers": ["browser"]
+ },
+ {
"name": "attach",
"description": "Attaches to the target with given id.",
"parameters": [
« headless/public/headless_web_contents.h ('K') | « headless/public/headless_web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698