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

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

Issue 2226323002: Resize DevTools target frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move command to Emulation, pull out other fixes into separate patch. Created 4 years, 4 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
« no previous file with comments | « headless/lib/headless_devtools_client_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": "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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 "description": "Requests that page scale factor is reset to init ial values." 751 "description": "Requests that page scale factor is reset to init ial values."
752 }, 752 },
753 { 753 {
754 "name": "setPageScaleFactor", 754 "name": "setPageScaleFactor",
755 "description": "Sets a specified page scale factor.", 755 "description": "Sets a specified page scale factor.",
756 "parameters": [ 756 "parameters": [
757 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." } 757 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." }
758 ] 758 ]
759 }, 759 },
760 { 760 {
761 "name": "getFrameSize",
pfeldman 2016/08/11 14:34:17 Do you expect getFrameSize to be used in automatio
Eric Seckler 2016/08/11 14:45:50 It would allow us to take partial screenshots with
762 "description": "Returns the size of the target's (non-overridden ) frame.",
763 "returns": [
764 { "name": "width", "type": "integer", "description": "Frame width (DIP)." },
765 { "name": "height", "type": "integer", "description": "Frame height (DIP)." }
766 ],
767 "handlers": ["browser"]
768 },
769 {
770 "name": "setFrameSize",
771 "description": "Resize the target's frame. Note that this does n ot affect the frame's container (e.g. browser window).",
772 "parameters": [
773 { "name": "width", "type": "integer", "description": "Frame width (DIP)." },
774 { "name": "height", "type": "integer", "description": "Frame height (DIP)." }
775 ],
776 "handlers": ["browser"]
777 },
778 {
761 "name": "setScriptExecutionDisabled", 779 "name": "setScriptExecutionDisabled",
762 "description": "Switches script execution in the page.", 780 "description": "Switches script execution in the page.",
763 "parameters": [ 781 "parameters": [
764 { "name": "value", "type": "boolean", "description": "Whethe r script execution should be disabled in the page." } 782 { "name": "value", "type": "boolean", "description": "Whethe r script execution should be disabled in the page." }
765 ] 783 ]
766 }, 784 },
767 { 785 {
768 "name": "setGeolocationOverride", 786 "name": "setGeolocationOverride",
769 "description": "Overrides the Geolocation Position or Error. Omi tting any of the parameters emulates position unavailable.", 787 "description": "Overrides the Geolocation Position or Error. Omi tting any of the parameters emulates position unavailable.",
770 "parameters": [ 788 "parameters": [
(...skipping 3541 matching lines...) Expand 10 before | Expand all | Expand 10 after
4312 "returns": [ 4330 "returns": [
4313 { "name": "success", "type": "boolean" } 4331 { "name": "success", "type": "boolean" }
4314 ], 4332 ],
4315 "handlers": ["browser"] 4333 "handlers": ["browser"]
4316 }, 4334 },
4317 { 4335 {
4318 "name": "createTarget", 4336 "name": "createTarget",
4319 "description": "Creates a new page.", 4337 "description": "Creates a new page.",
4320 "parameters": [ 4338 "parameters": [
4321 { "name": "url", "type": "string", "description": "The initi al URL the page will be navigated to." }, 4339 { "name": "url", "type": "string", "description": "The initi al URL the page will be navigated to." },
4322 { "name": "width", "type": "integer", "description": "Window width (headless chrome only).", "optional": true }, 4340 { "name": "width", "type": "integer", "description": "Frame width (DIP).", "optional": true },
4323 { "name": "height", "type": "integer", "description": "Windo w height (headless chrome only).", "optional": true }, 4341 { "name": "height", "type": "integer", "description": "Frame height (DIP).", "optional": true },
4324 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The browser context to create the page in (headless chrome only)." , "optional": true } 4342 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The browser context to create the page in (headless chrome only)." , "optional": true }
4325 ], 4343 ],
4326 "returns": [ 4344 "returns": [
4327 { "name": "targetId", "$ref": "TargetID", "description": "Th e id of the page opened." } 4345 { "name": "targetId", "$ref": "TargetID", "description": "Th e id of the page opened." }
4328 ], 4346 ],
4329 "handlers": ["browser"] 4347 "handlers": ["browser"]
4330 }, 4348 },
4331 { 4349 {
4332 "name": "closeTarget", 4350 "name": "closeTarget",
4333 "description": "Closes the target. If the target is a page that gets closed too.", 4351 "description": "Closes the target. If the target is a page that gets closed too.",
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
4457 "description": "Informs that port was successfully bound and got a specified connection id.", 4475 "description": "Informs that port was successfully bound and got a specified connection id.",
4458 "parameters": [ 4476 "parameters": [
4459 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4477 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4460 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4478 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4461 ], 4479 ],
4462 "handlers": ["browser"] 4480 "handlers": ["browser"]
4463 } 4481 }
4464 ] 4482 ]
4465 }] 4483 }]
4466 } 4484 }
OLDNEW
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698