OLD | NEW |
---|---|
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 Loading... | |
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": "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.
| |
4260 "description": "Creates a new BrowserContext.", | |
4261 "returns": [ | |
4262 { "name": "contextId", "$ref": "BrowserContextID", "descript ion": "The id of the context created." } | |
4263 ], | |
4264 "handlers": ["browser"] | |
4265 }, | |
4266 { | |
4267 "name": "closeContext", | |
4268 "description": "Closes a BrowserContext, will fail of any open p age uses it.", | |
4269 "parameters": [ | |
4270 { "name": "contextId", "$ref": "BrowserContextID" } | |
4271 ], | |
4272 "returns": [ | |
4273 { "name": "success", "type": "boolean" } | |
4274 ], | |
4275 "handlers": ["browser"] | |
4276 }, | |
4277 { | |
4278 "name": "newPage", | |
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", "optional": true }, | |
4283 { "name": "height", "type": "integer", "description": "Windo w height", "optional": true }, | |
4284 { "name": "contextId", "$ref": "BrowserContextID", "descript ion": "The context to create the page in", "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", | |
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 Loading... | |
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 } |
OLD | NEW |