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 a27991a3a75b2ca4fa629da9c3575e835791833b..7f47832df05de2789338e5d15651f665fc71813c 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -4236,6 +4236,10 @@ |
"hidden": true, |
"types": [ |
{ |
+ "id": "BrowserContextID", |
+ "type": "string" |
+ }, |
+ { |
"id": "TargetID", |
"type": "string" |
}, |
@@ -4252,6 +4256,50 @@ |
], |
"commands": [ |
{ |
+ "name": "newContext", |
Sami
2016/07/04 15:28:54
I'll leave this up to Pavel & co, but "newBrowserC
alex clarke (OOO till 29th)
2016/07/04 16:33:59
Done.
|
+ "description": "Creates a new BrowserContext.", |
+ "returns": [ |
+ { "name": "contextId", "$ref": "BrowserContextID", "description": "The id of the context created." } |
+ ], |
+ "handlers": ["browser"] |
+ }, |
+ { |
+ "name": "closeContext", |
+ "description": "Closes a BrowserContext, will fail of any open page uses it.", |
+ "parameters": [ |
+ { "name": "contextId", "$ref": "BrowserContextID" } |
+ ], |
+ "returns": [ |
+ { "name": "success", "type": "boolean" } |
+ ], |
+ "handlers": ["browser"] |
+ }, |
+ { |
+ "name": "newPage", |
+ "description": "Creates a new page.", |
+ "parameters": [ |
+ { "name": "initialUrl", "type": "string", "description": "The initial URL the page will be navigated to." }, |
+ { "name": "width", "type": "integer", "description": "Window width", "optional": true }, |
+ { "name": "height", "type": "integer", "description": "Window height", "optional": true }, |
+ { "name": "contextId", "$ref": "BrowserContextID", "description": "The context to create the page in", "optional": true } |
+ ], |
+ "returns": [ |
+ { "name": "pageId", "$ref": "TargetID", "description": "The id of the page opened." } |
+ ], |
+ "handlers": ["browser"] |
+ }, |
+ { |
+ "name": "closePage", |
+ "description": "Closes a page.", |
+ "parameters": [ |
+ { "name": "pageId", "$ref": "TargetID" } |
+ ], |
+ "returns": [ |
+ { "name": "success", "type": "boolean" } |
+ ], |
+ "handlers": ["browser"] |
+ }, |
+ { |
"name": "getTargets", |
"returns": [ |
{ "name": "targetInfo", "type": "array", "items": { "$ref": "TargetInfo" } } |