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

Side by Side Diff: Source/devtools/protocol.json

Issue 1196183003: [DevTools] Add screen size and position to Emulation.setDeviceMetricsOverrides. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 "name": "setDeviceMetricsOverride", 292 "name": "setDeviceMetricsOverride",
293 "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).", 293 "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).",
294 "parameters": [ 294 "parameters": [
295 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, 295 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." },
296 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, 296 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." },
297 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, 297 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." },
298 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, 298 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." },
299 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." }, 299 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." },
300 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, 300 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
301 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." }, 301 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." },
302 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." } 302 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." },
303 { "name": "screenWidth", "type": "integer", "optional": true , "description": "Overriding screen width value in pixels (minimum 0, maximum 10 000000). Only used for |mobile==true|." },
304 { "name": "screenHeight", "type": "integer", "optional": tru e, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
305 { "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|." },
306 { "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|." }
303 ], 307 ],
304 "handlers": ["browser"], 308 "handlers": ["browser"],
305 "redirect": "Emulation", 309 "redirect": "Emulation",
306 "hidden": true 310 "hidden": true
307 }, 311 },
308 { 312 {
309 "name": "clearDeviceMetricsOverride", 313 "name": "clearDeviceMetricsOverride",
310 "description": "Clears the overriden device metrics.", 314 "description": "Clears the overriden device metrics.",
311 "handlers": ["browser"], 315 "handlers": ["browser"],
312 "redirect": "Emulation", 316 "redirect": "Emulation",
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 "name": "setDeviceMetricsOverride", 644 "name": "setDeviceMetricsOverride",
641 "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).", 645 "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).",
642 "parameters": [ 646 "parameters": [
643 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, 647 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." },
644 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, 648 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." },
645 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, 649 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." },
646 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, 650 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." },
647 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." }, 651 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." },
648 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, 652 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
649 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." }, 653 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." },
650 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." } 654 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." },
655 { "name": "screenWidth", "type": "integer", "optional": true , "description": "Overriding screen width value in pixels (minimum 0, maximum 10 000000). Only used for |mobile==true|." },
656 { "name": "screenHeight", "type": "integer", "optional": tru e, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
657 { "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|." },
658 { "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|." }
651 ], 659 ],
652 "handlers": ["browser"] 660 "handlers": ["browser"]
653 }, 661 },
654 { 662 {
655 "name": "clearDeviceMetricsOverride", 663 "name": "clearDeviceMetricsOverride",
656 "description": "Clears the overriden device metrics.", 664 "description": "Clears the overriden device metrics.",
657 "handlers": ["browser"] 665 "handlers": ["browser"]
658 }, 666 },
659 { 667 {
660 "name": "resetScrollAndPageScaleFactor", 668 "name": "resetScrollAndPageScaleFactor",
(...skipping 4378 matching lines...) Expand 10 before | Expand all | Expand 10 after
5039 "description": "The security state of the page changed.", 5047 "description": "The security state of the page changed.",
5040 "parameters": [ 5048 "parameters": [
5041 { "name": "securityState", "$ref": "SecurityState", "descrip tion": "Security state." }, 5049 { "name": "securityState", "$ref": "SecurityState", "descrip tion": "Security state." },
5042 { "name": "explanations", "type": "array", "items": { "$ref" : "SecurityStateExplanation" }, "description": "List of explanations for the sec urity state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included.", "optional": true } 5050 { "name": "explanations", "type": "array", "items": { "$ref" : "SecurityStateExplanation" }, "description": "List of explanations for the sec urity state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included.", "optional": true }
5043 ], 5051 ],
5044 "handlers": ["browser"] 5052 "handlers": ["browser"]
5045 } 5053 }
5046 ] 5054 ]
5047 }] 5055 }]
5048 } 5056 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698