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

Side by Side Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2436763003: [DevTools] Remove Browser domain, switch clients to Target. (Closed)
Patch Set: include, rebase Created 4 years, 1 month 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
« no previous file with comments | « headless/public/util/dom_tree_extractor_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "2" }, 2 "version": { "major": "1", "minor": "2" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "experimental": true, 5 "experimental": 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 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3317 { 3317 {
3318 "domain": "Target", 3318 "domain": "Target",
3319 "description": "Supports additional targets discovery and allows to atta ch to them.", 3319 "description": "Supports additional targets discovery and allows to atta ch to them.",
3320 "experimental": true, 3320 "experimental": true,
3321 "types": [ 3321 "types": [
3322 { 3322 {
3323 "id": "TargetID", 3323 "id": "TargetID",
3324 "type": "string" 3324 "type": "string"
3325 }, 3325 },
3326 { 3326 {
3327 "id": "BrowserContextID",
3328 "type": "string"
3329 },
3330 {
3327 "id": "TargetInfo", 3331 "id": "TargetInfo",
3328 "type": "object", 3332 "type": "object",
3329 "properties": [ 3333 "properties": [
3330 { "name": "targetId", "$ref": "TargetID" }, 3334 { "name": "targetId", "$ref": "TargetID" },
3331 { "name": "type", "type": "string" }, 3335 { "name": "type", "type": "string" },
3332 { "name": "title", "type": "string" }, 3336 { "name": "title", "type": "string" },
3333 { "name": "url", "type": "string" } 3337 { "name": "url", "type": "string" }
3334 ] 3338 ]
3335 }, 3339 },
3336 { 3340 {
(...skipping 25 matching lines...) Expand all
3362 }, 3366 },
3363 { 3367 {
3364 "name": "setAttachToFrames", 3368 "name": "setAttachToFrames",
3365 "parameters": [ 3369 "parameters": [
3366 { "name": "value", "type": "boolean", "description": "Whethe r to attach to frames." } 3370 { "name": "value", "type": "boolean", "description": "Whethe r to attach to frames." }
3367 ], 3371 ],
3368 "handlers": ["browser"] 3372 "handlers": ["browser"]
3369 }, 3373 },
3370 { 3374 {
3371 "name": "setRemoteLocations", 3375 "name": "setRemoteLocations",
3376 "description": "Enables target discovery for the specified locat ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.",
3372 "parameters": [ 3377 "parameters": [
3373
3374 { "name": "locations", "type": "array", "items": { "$ref": " RemoteLocation" }, "description": "List of remote locations." } 3378 { "name": "locations", "type": "array", "items": { "$ref": " RemoteLocation" }, "description": "List of remote locations." }
3375 ], 3379 ],
3376 "description": "Enables target discovery for the specified locat ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.",
3377 "handlers": ["browser"] 3380 "handlers": ["browser"]
3378 }, 3381 },
3379 { 3382 {
3380 "name": "sendMessageToTarget", 3383 "name": "sendMessageToTarget",
3384 "description": "Sends protocol message to the target with given id.",
3381 "parameters": [ 3385 "parameters": [
3382 { "name": "targetId", "type": "string" }, 3386 { "name": "targetId", "type": "string" },
3383 { "name": "message", "type": "string" } 3387 { "name": "message", "type": "string" }
3384 ], 3388 ],
3385 "handlers": ["browser"] 3389 "handlers": ["browser"]
3386 }, 3390 },
3387 { 3391 {
3388 "name": "getTargetInfo", 3392 "name": "getTargetInfo",
3393 "description": "Returns information about a target.",
3389 "parameters": [ 3394 "parameters": [
3390 { "name": "targetId", "$ref": "TargetID" } 3395 { "name": "targetId", "$ref": "TargetID" }
3391 ], 3396 ],
3392 "returns": [ 3397 "returns": [
3393 { "name": "targetInfo","$ref": "TargetInfo" } 3398 { "name": "targetInfo","$ref": "TargetInfo" }
3394 ], 3399 ],
3395 "handlers": ["browser"] 3400 "handlers": ["browser"]
3396 }, 3401 },
3397 { 3402 {
3398 "name": "activateTarget", 3403 "name": "activateTarget",
3404 "description": "Activates (focuses) the target.",
3399 "parameters": [ 3405 "parameters": [
3400 { "name": "targetId", "$ref": "TargetID" } 3406 { "name": "targetId", "$ref": "TargetID" }
3401 ], 3407 ],
3402 "handlers": ["browser"] 3408 "handlers": ["browser"]
3403 }, 3409 },
3404 { 3410 {
3405 "name": "attachToTarget", 3411 "name": "closeTarget",
3412 "description": "Closes the target. If the target is a page that gets closed too.",
3406 "parameters": [ 3413 "parameters": [
3407 { "name": "targetId", "$ref": "TargetID" } 3414 { "name": "targetId", "$ref": "TargetID" }
3408 ], 3415 ],
3416 "returns": [
3417 { "name": "success", "type": "boolean" }
3418 ],
3419 "handlers": ["browser"]
3420 },
3421 {
3422 "name": "attachToTarget",
3423 "description": "Attaches to the target with given id.",
3424 "parameters": [
3425 { "name": "targetId", "$ref": "TargetID" }
3426 ],
3409 "returns": [ 3427 "returns": [
3410 { "name": "success", "type": "boolean", "description": "Whet her attach succeeded." } 3428 { "name": "success", "type": "boolean", "description": "Whet her attach succeeded." }
3411 ], 3429 ],
3412 "handlers": ["browser"] 3430 "handlers": ["browser"]
3413 }, 3431 },
3414 { 3432 {
3415 "name": "detachFromTarget", 3433 "name": "detachFromTarget",
3434 "description": "Detaches from the target with given id.",
3416 "parameters": [ 3435 "parameters": [
3417 { "name": "targetId", "$ref": "TargetID" } 3436 { "name": "targetId", "$ref": "TargetID" }
3418 ], 3437 ],
3419 "handlers": ["browser"] 3438 "handlers": ["browser"]
3439 },
3440 {
3441 "name": "createBrowserContext",
3442 "description": "Creates a new empty BrowserContext. Similar to a n incognito profile but you can have more than one.",
3443 "returns": [
3444 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The id of the context created." }
3445 ],
3446 "handlers": ["browser"]
3447 },
3448 {
3449 "name": "disposeBrowserContext",
3450 "description": "Deletes a BrowserContext, will fail of any open page uses it.",
3451 "parameters": [
3452 { "name": "browserContextId", "$ref": "BrowserContextID" }
3453 ],
3454 "returns": [
3455 { "name": "success", "type": "boolean" }
3456 ],
3457 "handlers": ["browser"]
3458 },
3459 {
3460 "name": "createTarget",
3461 "description": "Creates a new page.",
3462 "parameters": [
3463 { "name": "url", "type": "string", "description": "The initi al URL the page will be navigated to." },
3464 { "name": "width", "type": "integer", "description": "Frame width in DIP (headless chrome only).", "optional": true },
3465 { "name": "height", "type": "integer", "description": "Frame height in DIP (headless chrome only).", "optional": true },
3466 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The browser context to create the page in (headless chrome only)." , "optional": true }
3467 ],
3468 "returns": [
3469 { "name": "targetId", "$ref": "TargetID", "description": "Th e id of the page opened." }
3470 ],
3471 "handlers": ["browser"]
3472 },
3473 {
3474 "name": "getTargets",
3475 "description": "Retrieves a list of available targets.",
3476 "returns": [
3477 { "name": "targetInfos", "type": "array", "items": { "$ref": "TargetInfo" }, "description": "The list of targets." }
3478 ],
3479 "handlers": ["browser"]
3420 } 3480 }
3421 ], 3481 ],
3422 "events": [ 3482 "events": [
3423 { 3483 {
3424 "name": "targetCreated", 3484 "name": "targetCreated",
3485 "description": "Issued when a possible inspection target is crea ted.",
3425 "parameters": [ 3486 "parameters": [
3426 { "name": "targetInfo", "$ref": "TargetInfo" } 3487 { "name": "targetInfo", "$ref": "TargetInfo" }
3427 ], 3488 ],
3428 "handlers": ["browser"] 3489 "handlers": ["browser"]
3429 }, 3490 },
3430 { 3491 {
3431 "name": "targetDestroyed", 3492 "name": "targetDestroyed",
3493 "description": "Issued when a target is destroyed.",
3432 "parameters": [ 3494 "parameters": [
3433 { "name": "targetId", "$ref": "TargetID" } 3495 { "name": "targetId", "$ref": "TargetID" }
3434 ], 3496 ],
3435 "handlers": ["browser"] 3497 "handlers": ["browser"]
3436 }, 3498 },
3437 { 3499 {
3438 "name": "attachedToTarget", 3500 "name": "attachedToTarget",
3501 "description": "Issued when attached to target because of auto-a ttach or <code>attachToTarget</code> command.",
3439 "parameters": [ 3502 "parameters": [
3440 { "name": "targetInfo", "$ref": "TargetInfo" }, 3503 { "name": "targetInfo", "$ref": "TargetInfo" },
3441 { "name": "waitingForDebugger", "type": "boolean" } 3504 { "name": "waitingForDebugger", "type": "boolean" }
3442 ], 3505 ],
3443 "handlers": ["browser"] 3506 "handlers": ["browser"]
3444 }, 3507 },
3445 { 3508 {
3446 "name": "detachedFromTarget", 3509 "name": "detachedFromTarget",
3510 "description": "Issued when detached from target for any reason (including <code>detachFromTarget</code> command).",
3447 "parameters": [ 3511 "parameters": [
3448 { "name": "targetId", "$ref": "TargetID" } 3512 { "name": "targetId", "$ref": "TargetID" }
3449 ], 3513 ],
3450 "handlers": ["browser"] 3514 "handlers": ["browser"]
3451 }, 3515 },
3452 { 3516 {
3453 "name": "receivedMessageFromTarget", 3517 "name": "receivedMessageFromTarget",
3518 "description": "Notifies about new protocol message from attache d target.",
3454 "parameters": [ 3519 "parameters": [
3455 { "name": "targetId", "$ref": "TargetID" }, 3520 { "name": "targetId", "$ref": "TargetID" },
3456 { "name": "message", "type": "string" } 3521 { "name": "message", "type": "string" }
3457 ], 3522 ],
3458 "handlers": ["browser"] 3523 "handlers": ["browser"]
3459 } 3524 }
3460 ] 3525 ]
3461 }, 3526 },
3462 { 3527 {
3463 "domain": "Worker", 3528 "domain": "Worker",
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
4454 { 4519 {
4455 "name": "entryAdded", 4520 "name": "entryAdded",
4456 "parameters": [ 4521 "parameters": [
4457 { "name": "entry", "$ref": "LogEntry", "description": "The e ntry." } 4522 { "name": "entry", "$ref": "LogEntry", "description": "The e ntry." }
4458 ], 4523 ],
4459 "description": "Issued when new message was logged." 4524 "description": "Issued when new message was logged."
4460 } 4525 }
4461 ] 4526 ]
4462 }, 4527 },
4463 { 4528 {
4464 "domain": "Browser",
4465 "description": "The Browser domain allows listing, creating, activating and attaching to the targets.",
4466 "experimental": true,
4467 "types": [
4468 {
4469 "id": "BrowserContextID",
4470 "type": "string"
4471 },
4472 {
4473 "id": "TargetID",
4474 "type": "string"
4475 },
4476 {
4477 "id": "TargetInfo",
4478 "type": "object",
4479 "properties": [
4480 { "name": "targetId", "$ref": "TargetID" },
4481 { "name": "type", "type": "string" },
4482 { "name": "title", "type": "string" },
4483 { "name": "url", "type": "string" }
4484 ]
4485 }
4486 ],
4487 "commands": [
4488 {
4489 "name": "createBrowserContext",
4490 "description": "Creates a new empty BrowserContext. Similar to a n incognito profile but you can have more than one.",
4491 "returns": [
4492 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The id of the context created." }
4493 ],
4494 "handlers": ["browser"]
4495 },
4496 {
4497 "name": "disposeBrowserContext",
4498 "description": "Deletes a BrowserContext, will fail of any open page uses it.",
4499 "parameters": [
4500 { "name": "browserContextId", "$ref": "BrowserContextID" }
4501 ],
4502 "returns": [
4503 { "name": "success", "type": "boolean" }
4504 ],
4505 "handlers": ["browser"]
4506 },
4507 {
4508 "name": "createTarget",
4509 "description": "Creates a new page.",
4510 "parameters": [
4511 { "name": "url", "type": "string", "description": "The initi al URL the page will be navigated to." },
4512 { "name": "width", "type": "integer", "description": "Frame width in DIP (headless chrome only).", "optional": true },
4513 { "name": "height", "type": "integer", "description": "Frame height in DIP (headless chrome only).", "optional": true },
4514 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The browser context to create the page in (headless chrome only)." , "optional": true }
4515 ],
4516 "returns": [
4517 { "name": "targetId", "$ref": "TargetID", "description": "Th e id of the page opened." }
4518 ],
4519 "handlers": ["browser"]
4520 },
4521 {
4522 "name": "closeTarget",
4523 "description": "Closes the target. If the target is a page that gets closed too.",
4524 "parameters": [
4525 { "name": "targetId", "$ref": "TargetID" }
4526 ],
4527 "returns": [
4528 { "name": "success", "type": "boolean" }
4529 ],
4530 "handlers": ["browser"]
4531 },
4532 {
4533 "name": "getTargets",
4534 "returns": [
4535 { "name": "targetInfo", "type": "array", "items": { "$ref": "TargetInfo" } }
4536 ],
4537 "description": "Returns target information for all potential tar gets.",
4538 "handlers": ["browser"],
4539 "async": true
4540 },
4541 {
4542 "name": "attach",
4543 "description": "Attaches to the target with given id.",
4544 "parameters": [
4545 {"name": "targetId", "$ref": "TargetID", "description": "Tar get id." }
4546 ],
4547 "returns": [
4548 { "name": "success", "type": "boolean", "description": "Whet her attach succeeded." }
4549 ],
4550 "handlers": ["browser"],
4551 "async": true
4552 },
4553 {
4554 "name": "detach",
4555 "description": "Detaches from the target with given id.",
4556 "parameters": [
4557 { "name": "targetId", "$ref": "TargetID" }
4558 ],
4559 "returns": [
4560 { "name": "success", "type": "boolean", "description": "Whet her detach succeeded." }
4561 ],
4562 "handlers": ["browser"]
4563 },
4564 {
4565 "name": "sendMessage",
4566 "description": "Sends protocol message to the target with given id.",
4567 "parameters": [
4568 { "name": "targetId", "$ref": "TargetID" },
4569 { "name": "message", "type": "string" }
4570 ],
4571 "handlers": ["browser"]
4572 }
4573 ],
4574 "events": [
4575 {
4576 "name": "dispatchMessage",
4577 "description": "Dispatches protocol message from the target with given id.",
4578 "parameters": [
4579 { "name": "targetId", "$ref": "TargetID" },
4580 { "name": "message", "type": "string" }
4581 ],
4582 "handlers": ["browser"]
4583 }
4584 ]
4585 },
4586 {
4587 "domain": "SystemInfo", 4529 "domain": "SystemInfo",
4588 "description": "The SystemInfo domain defines methods and events for que rying low-level system information.", 4530 "description": "The SystemInfo domain defines methods and events for que rying low-level system information.",
4589 "experimental": true, 4531 "experimental": true,
4590 "types": [ 4532 "types": [
4591 { 4533 {
4592 "id": "GPUDevice", 4534 "id": "GPUDevice",
4593 "type": "object", 4535 "type": "object",
4594 "properties": [ 4536 "properties": [
4595 { "name": "vendorId", "type": "number", "description": "PCI ID of the GPU vendor, if available; 0 otherwise." }, 4537 { "name": "vendorId", "type": "number", "description": "PCI ID of the GPU vendor, if available; 0 otherwise." },
4596 { "name": "deviceId", "type": "number", "description": "PCI ID of the GPU device, if available; 0 otherwise." }, 4538 { "name": "deviceId", "type": "number", "description": "PCI ID of the GPU device, if available; 0 otherwise." },
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
4655 "description": "Informs that port was successfully bound and got a specified connection id.", 4597 "description": "Informs that port was successfully bound and got a specified connection id.",
4656 "parameters": [ 4598 "parameters": [
4657 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4599 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4658 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4600 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4659 ], 4601 ],
4660 "handlers": ["browser"] 4602 "handlers": ["browser"]
4661 } 4603 }
4662 ] 4604 ]
4663 }] 4605 }]
4664 } 4606 }
OLDNEW
« no previous file with comments | « headless/public/util/dom_tree_extractor_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698