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

Side by Side 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: Changes for Sami 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 unified diff | Download patch
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications.", 10 "description": "Enables inspector domain notifications.",
(...skipping 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after
4229 "handlers": ["browser"] 4229 "handlers": ["browser"]
4230 } 4230 }
4231 ] 4231 ]
4232 }, 4232 },
4233 { 4233 {
4234 "domain": "Browser", 4234 "domain": "Browser",
4235 "description": "The Browser domain allows listing, creating, activating and attaching to the targets.", 4235 "description": "The Browser domain allows listing, creating, activating and attaching to the targets.",
4236 "hidden": true, 4236 "hidden": true,
4237 "types": [ 4237 "types": [
4238 { 4238 {
4239 "id": "BrowserContextID",
4240 "type": "string"
4241 },
4242 {
4239 "id": "TargetID", 4243 "id": "TargetID",
4240 "type": "string" 4244 "type": "string"
4241 }, 4245 },
4242 { 4246 {
4243 "id": "TargetInfo", 4247 "id": "TargetInfo",
4244 "type": "object", 4248 "type": "object",
4245 "properties": [ 4249 "properties": [
4246 { "name": "targetId", "$ref": "TargetID" }, 4250 { "name": "targetId", "$ref": "TargetID" },
4247 { "name": "type", "type": "string" }, 4251 { "name": "type", "type": "string" },
4248 { "name": "title", "type": "string" }, 4252 { "name": "title", "type": "string" },
4249 { "name": "url", "type": "string" } 4253 { "name": "url", "type": "string" }
4250 ] 4254 ]
4251 } 4255 }
4252 ], 4256 ],
4253 "commands": [ 4257 "commands": [
4254 { 4258 {
4259 "name": "newBrowserContext",
pfeldman 2016/07/06 17:38:09 createBrowserContext
alex clarke (OOO till 29th) 2016/07/06 20:25:06 Done.
4260 "description": "Creates a new empty BrowserContext. Similar to a n incognito profile but you can have more than one.",
4261 "returns": [
4262 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The id of the context created." }
4263 ],
4264 "handlers": ["browser"]
4265 },
4266 {
4267 "name": "closeBrowserContext",
pfeldman 2016/07/06 17:38:09 disposeBrowserContext?
alex clarke (OOO till 29th) 2016/07/06 20:25:07 Done.
4268 "description": "Closes a BrowserContext, will fail of any open p age uses it.",
4269 "parameters": [
4270 { "name": "browserContextId", "$ref": "BrowserContextID" }
4271 ],
4272 "returns": [
4273 { "name": "success", "type": "boolean" }
4274 ],
4275 "handlers": ["browser"]
4276 },
4277 {
4278 "name": "newPage",
pfeldman 2016/07/06 17:38:09 createPage
alex clarke (OOO till 29th) 2016/07/06 20:25:06 Dimitri suggested createTarget, does that work for
4279 "description": "Creates a new page.",
4280 "parameters": [
4281 { "name": "initialUrl", "type": "string", "description": "Th e initial URL the page will be navigated to." },
4282 { "name": "width", "type": "integer", "description": "Window width (headless chrome only).", "optional": true },
pfeldman 2016/07/06 17:38:09 Still hesitant about these - my worry is that they
alex clarke (OOO till 29th) 2016/07/06 20:25:07 For regular chrome?
4283 { "name": "height", "type": "integer", "description": "Windo w height (headless chrome only).", "optional": true },
4284 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The browser context to create the page in (headless chrome only)." , "optional": true }
4285 ],
4286 "returns": [
4287 { "name": "pageId", "$ref": "TargetID", "description": "The id of the page opened." }
4288 ],
4289 "handlers": ["browser"]
4290 },
4291 {
4292 "name": "closePage",
dgozman 2016/07/06 18:33:30 I think this works for any target, isn't it? Let's
alex clarke (OOO till 29th) 2016/07/06 20:25:06 Done.
4293 "description": "Closes a page.",
4294 "parameters": [
4295 { "name": "pageId", "$ref": "TargetID" }
4296 ],
4297 "returns": [
4298 { "name": "success", "type": "boolean" }
4299 ],
4300 "handlers": ["browser"]
4301 },
4302 {
4255 "name": "getTargets", 4303 "name": "getTargets",
4256 "returns": [ 4304 "returns": [
4257 { "name": "targetInfo", "type": "array", "items": { "$ref": "TargetInfo" } } 4305 { "name": "targetInfo", "type": "array", "items": { "$ref": "TargetInfo" } }
4258 ], 4306 ],
4259 "description": "Returns target information for all potential tar gets.", 4307 "description": "Returns target information for all potential tar gets.",
4260 "handlers": ["browser"] 4308 "handlers": ["browser"]
4261 }, 4309 },
4262 { 4310 {
4263 "name": "attach", 4311 "name": "attach",
4264 "description": "Attaches to the target with given id.", 4312 "description": "Attaches to the target with given id.",
(...skipping 26 matching lines...) Expand all
4291 "description": "Dispatches protocol message from the target with given id.", 4339 "description": "Dispatches protocol message from the target with given id.",
4292 "parameters": [ 4340 "parameters": [
4293 { "name": "targetId", "$ref": "TargetID" }, 4341 { "name": "targetId", "$ref": "TargetID" },
4294 { "name": "message", "type": "string" } 4342 { "name": "message", "type": "string" }
4295 ], 4343 ],
4296 "handlers": ["browser"] 4344 "handlers": ["browser"]
4297 } 4345 }
4298 ] 4346 ]
4299 }] 4347 }]
4300 } 4348 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698