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

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

Issue 2119063002: Add commands to manage tabs and contexts to Browser Domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a check to prevent Browser.closeContext from closing a context that is in use. Created 4 years, 5 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 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" } }
« headless/public/headless_browser.h ('K') | « headless/public/headless_devtools_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698