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

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

Issue 2173783002: Adds visual viewport size override to DevTools Emulation protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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": "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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 "advance", 715 "advance",
716 "pause", 716 "pause",
717 "pauseIfNetworkFetchesPending" 717 "pauseIfNetworkFetchesPending"
718 ], 718 ],
719 "description": "advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetches Pending: The virtual time base may not advance if there are any pending resource fetches." 719 "description": "advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetches Pending: The virtual time base may not advance if there are any pending resource fetches."
720 } 720 }
721 ], 721 ],
722 "commands": [ 722 "commands": [
723 { 723 {
724 "name": "setDeviceMetricsOverride", 724 "name": "setDeviceMetricsOverride",
725 "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeig ht, and \"device-width\"/\"device-height\"-related CSS media query results).", 725 "description": "Overrides the values of device, screen, and view port dimensions (including window.screen.width, window.screen.height, window.inn erWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results).",
726 "parameters": [ 726 "parameters": [
727 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, 727 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." },
728 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, 728 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." },
729 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, 729 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." },
730 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, 730 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." },
731 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." }, 731 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." },
732 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, 732 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
733 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." }, 733 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." },
734 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." }, 734 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." },
735 { "name": "screenWidth", "type": "integer", "optional": true , "description": "Overriding screen width value in pixels (minimum 0, maximum 10 000000). Only used for |mobile==true|." }, 735 { "name": "screenWidth", "type": "integer", "optional": true , "description": "Overriding screen width value in pixels (minimum 0, maximum 10 000000). Only used for |mobile==true|." },
736 { "name": "screenHeight", "type": "integer", "optional": tru e, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, 736 { "name": "screenHeight", "type": "integer", "optional": tru e, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
737 { "name": "positionX", "type": "integer", "optional": true, "description": "Overriding view X position on screen in pixels (minimum 0, maxim um 10000000). Only used for |mobile==true|." }, 737 { "name": "positionX", "type": "integer", "optional": true, "description": "Overriding view X position on screen in pixels (minimum 0, maxim um 10000000). Only used for |mobile==true|." },
738 { "name": "positionY", "type": "integer", "optional": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maxim um 10000000). Only used for |mobile==true|." }, 738 { "name": "positionY", "type": "integer", "optional": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maxim um 10000000). Only used for |mobile==true|." },
739 { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." } 739 { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." },
740 { "name": "visualViewportWidth", "type": "integer", "optiona l": true, "description": "Override height of visual viewport (pixels, minimum 0, maximum 10000000). Optional, defaults to |width|." },
741 { "name": "visualViewportHeight", "type": "integer", "option al": true, "description": "Override height of visual viewport (pixels, minimum 0 , maximum 10000000). Optional, defaults to |height|." }
740 ], 742 ],
741 "handlers": ["browser"] 743 "handlers": ["browser"]
742 }, 744 },
743 { 745 {
744 "name": "clearDeviceMetricsOverride", 746 "name": "clearDeviceMetricsOverride",
745 "description": "Clears the overriden device metrics.", 747 "description": "Clears the overriden device metrics.",
746 "handlers": ["browser"] 748 "handlers": ["browser"]
747 }, 749 },
748 { 750 {
749 "name": "resetPageScaleFactor", 751 "name": "resetPageScaleFactor",
(...skipping 3704 matching lines...) Expand 10 before | Expand all | Expand 10 after
4454 "description": "Informs that port was successfully bound and got a specified connection id.", 4456 "description": "Informs that port was successfully bound and got a specified connection id.",
4455 "parameters": [ 4457 "parameters": [
4456 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4458 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4457 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4459 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4458 ], 4460 ],
4459 "handlers": ["browser"] 4461 "handlers": ["browser"]
4460 } 4462 }
4461 ] 4463 ]
4462 }] 4464 }]
4463 } 4465 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698