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

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: 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
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",
dgozman 2016/06/08 03:53:29 Will we migrate targets from ServiceWorker domain
pfeldman 2016/06/08 15:54:53 Yes
+ "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",
dgozman 2016/06/08 03:53:29 Oh-oh. Sounds like a duplication of worker domain.
pfeldman 2016/06/08 15:54:53 I don't plan on merging them atm. Are you suggesti
dgozman 2016/06/08 15:59:09 Yeah, something along this lines.
+ "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"]
+ }
+ ]
}]
}

Powered by Google App Engine
This is Rietveld 408576698