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

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

Issue 2047833002: DevTools: introduce browser domain for basic target discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 6 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/browser/headless_devtools_client_impl.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 7b26c7571abd047f450ea0856f30658875fa06db..efefb92fe94609eb444ee5eeb086c6bf74305966 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -4213,5 +4213,72 @@
"handlers": ["browser"]
}
]
+ },
+ {
+ "domain": "Browser",
+ "description": "The Browser domain allows listing, creating, activating and attaching to the targets.",
+ "hidden": true,
+ "types": [
+ {
+ "id": "TargetID",
+ "type": "string"
+ },
+ {
+ "id": "TargetInfo",
+ "type": "object",
+ "properties": [
+ { "name": "targetId", "$ref": "TargetID" },
+ { "name": "type", "type": "string" },
+ { "name": "title", "type": "string" },
+ { "name": "url", "type": "string" }
+ ]
+ }
+ ],
+ "commands": [
+ {
+ "name": "getTargets",
+ "returns": [
+ { "name": "targetInfo", "type": "array", "items": { "$ref": "TargetInfo" } }
+ ],
+ "description": "Returns target information for all potential targets.",
+ "handlers": ["browser"]
+ },
+ {
+ "name": "attach",
+ "description": "Attaches to the target with given id.",
+ "parameters": [
+ {"name": "targetId", "$ref": "TargetID", "description": "Target id." }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "detach",
+ "description": "Detaches from the target with given id.",
+ "parameters": [
+ { "name": "targetId", "$ref": "TargetID" }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "sendMessage",
+ "description": "Sends protocol message to the target with given id.",
+ "parameters": [
+ { "name": "targetId", "$ref": "TargetID" },
+ { "name": "message", "type": "string" }
+ ],
+ "handlers": ["browser"]
+ }
+ ],
+ "events": [
+ {
+ "name": "dispatchMessage",
+ "description": "Dispatches protocol message from the target with given id.",
+ "parameters": [
+ { "name": "targetId", "$ref": "TargetID" },
+ { "name": "message", "type": "string" }
+ ],
+ "handlers": ["browser"]
+ }
+ ]
}]
}
« no previous file with comments | « headless/lib/browser/headless_devtools_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698