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

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

Issue 2734123004: add a new set of commands to resize and position windows (Closed)
Patch Set: modify protocol Created 3 years, 9 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": "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 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after
3409 "name": "setRemoteLocations", 3409 "name": "setRemoteLocations",
3410 "description": "Enables target discovery for the specified locat ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.", 3410 "description": "Enables target discovery for the specified locat ions, when <code>setDiscoverTargets</code> was set to <code>true</code>.",
3411 "parameters": [ 3411 "parameters": [
3412 { "name": "locations", "type": "array", "items": { "$ref": " RemoteLocation" }, "description": "List of remote locations." } 3412 { "name": "locations", "type": "array", "items": { "$ref": " RemoteLocation" }, "description": "List of remote locations." }
3413 ] 3413 ]
3414 }, 3414 },
3415 { 3415 {
3416 "name": "sendMessageToTarget", 3416 "name": "sendMessageToTarget",
3417 "description": "Sends protocol message to the target with given id.", 3417 "description": "Sends protocol message to the target with given id.",
3418 "parameters": [ 3418 "parameters": [
3419 { "name": "targetId", "type": "string" }, 3419 { "name": "targetId", "$ref": "TargetID" },
3420 { "name": "message", "type": "string" } 3420 { "name": "message", "type": "string" }
3421 ] 3421 ]
3422 }, 3422 },
3423 { 3423 {
3424 "name": "getTargetInfo", 3424 "name": "getTargetInfo",
3425 "description": "Returns information about a target.", 3425 "description": "Returns information about a target.",
3426 "parameters": [ 3426 "parameters": [
3427 { "name": "targetId", "$ref": "TargetID" } 3427 { "name": "targetId", "$ref": "TargetID" }
3428 ], 3428 ],
3429 "returns": [ 3429 "returns": [
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
4544 "events": [ 4544 "events": [
4545 { 4545 {
4546 "name": "accepted", 4546 "name": "accepted",
4547 "description": "Informs that port was successfully bound and got a specified connection id.", 4547 "description": "Informs that port was successfully bound and got a specified connection id.",
4548 "parameters": [ 4548 "parameters": [
4549 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4549 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4550 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4550 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4551 ] 4551 ]
4552 } 4552 }
4553 ] 4553 ]
4554 },
4555 {
4556 "domain": "Browser",
4557 "description": "The Browser domain defines methods and events for browse r managing.",
4558 "experimental": true,
4559 "types": [
4560 {
4561 "id": "WindowID",
4562 "type": "integer"
4563 },
4564 {
4565 "id": "WindowState",
4566 "type": "string",
4567 "enum": ["normal", "minimized", "maximized", "fullscreen"],
4568 "description": "The state of the browser window."
4569 },
4570 {
4571 "id": "Bounds",
4572 "type": "object",
4573 "description": "Browser window bounds information",
4574 "properties": [
4575 { "name": "left", "type": "integer", "optional": true, "desc ription": "The offset from the left edge of the screen to the window in pixels." },
4576 { "name": "top", "type": "integer", "optional": true, "descr iption": "The offset from the top edge of the screen to the window in pixels."},
4577 { "name": "width", "type": "integer", "optional": true, "des cription": "The window width in pixels."},
4578 { "name": "height", "type": "integer", "optional": true, "de scription": "The window height in pixels."},
4579 { "name": "windowState", "$ref": "WindowState", "optional": true, "description": "The window state. Default to normal."}
4580 ]
4581 }
4582 ],
4583 "commands": [
4584 {
4585 "name": "getWindowForTarget",
4586 "description": "Get the browser window that contains the devtool s target.",
4587 "parameters": [
4588 { "name": "targetId", "$ref": "Target.TargetID", "descriptio n": "Devtools agent host id." }
4589 ],
4590 "returns": [
4591 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." },
4592 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window." }
4593 ]
4594 },
4595 {
4596 "name": "setWindowBounds",
4597 "description": "Set position and/or size of the browser window." ,
4598 "parameters": [
4599 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." },
4600 { "name": "bounds", "$ref": "Bounds", "description": "New wi ndow bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be comb ined with 'left', 'top', 'width' or 'height'." }
dgozman 2017/03/22 21:28:34 ... Leaves unspecified fields unchanged.
jzfeng 2017/03/23 06:58:25 Done.
4601 ]
4602 },
4603 {
4604 "name": "getWindowBounds",
4605 "description": "Get position and size of the browser window.",
4606 "parameters": [
4607 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." }
4608 ],
4609 "returns": [
4610 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window." }
4611 ]
4612 }
4613 ]
4554 }] 4614 }]
4555 } 4615 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698