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

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: add methods to UI domain 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 4533 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": "UI",
4557 "description": "The UI domain defines methods and events for browser UI managing.",
4558 "experimental": true,
4559 "commands": [
4560 {
4561 "name": "getWindowFromTarget",
4562 "description": "Get the browser window that contains the devtool s target.",
4563 "parameters": [
4564 { "name": "targetId", "type": "string", "description": "Devt ools agent host id." }
dgozman 2017/03/20 22:00:48 $ref: Target.TargetID
jzfeng 2017/03/21 09:13:32 Done.
4565 ],
4566 "returns": [
4567 { "name": "windowId", "type": "integer", "description": "Bro wser window id." }
dgozman 2017/03/20 22:00:48 Let's have a defined type WindowID (see TargetID f
jzfeng 2017/03/21 09:13:32 Done.
4568 ]
4569 },
4570 {
4571 "name": "maximizeWindow",
4572 "description": "Maximize the browser window.",
4573 "parameters": [
4574 { "name": "windowId", "type": "integer", "description": "Bro wser window id." }
4575 ]
4576 },
4577 {
4578 "name": "minimizeWindow",
4579 "description": "Maximize the browser window.",
dgozman 2017/03/20 22:00:48 Minimize
jzfeng 2017/03/21 09:13:32 Done.
4580 "parameters": [
4581 { "name": "windowId", "type": "integer", "description": "Bro wser window id." }
4582 ]
4583 },
4584 {
4585 "name": "setWindowFullscreen",
4586 "description": "Change the browser window fullscreen state.",
4587 "parameters": [
4588 { "name": "windowId", "type": "integer", "description": "Bro wser window id." },
4589 { "name": "fullscreen", "type": "boolean" }
4590 ]
4591 },
4592 {
4593 "name": "setWindowBounds",
4594 "description": "Set position and/or size of the browser window." ,
4595 "parameters": [
4596 { "name": "windowId", "type": "integer", "description": "Bro wser window id." },
4597 { "name": "left", "type": "integer", "optional": true, "desc ription": "The offset from the left edge of the screen to move the window to in pixels."},
4598 { "name": "top", "type": "integer", "optional": true, "descr iption": "The offset from the top edge of the screen to move the window to in pi xels."},
4599 { "name": "width", "type": "integer", "optional": true, "des cription": "The width to resize the window to in pixels."},
4600 { "name": "height", "type": "integer", "optional": true, "de scription": "The height to resize the window to in pixels."}
4601 ]
4602 },
4603 {
4604 "name": "getWindowBounds",
4605 "description": "Get position and size of the browser window.",
4606 "parameters": [
4607 { "name": "windowId", "type": "integer", "description": "Bro wser window id." }
4608 ],
4609 "returns": [
4610 { "name": "left", "type": "integer", "description": "The off set from the left edge of the screen to move the window to in pixels."},
4611 { "name": "top", "type": "integer", "description": "The offs et from the top edge of the screen to move the window to in pixels."},
4612 { "name": "width", "type": "integer", "description": "The wi dth to resize the window to in pixels."},
4613 { "name": "height", "type": "integer", "description": "The h eight to resize the window to in pixels."}
4614 ]
4615 }
4616 ]
4554 }] 4617 }]
4555 } 4618 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698