OLD | NEW |
---|---|
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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
719 { | 719 { |
720 "name": "setDeviceMetricsOverride", | 720 "name": "setDeviceMetricsOverride", |
721 "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).", | 721 "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).", |
722 "parameters": [ | 722 "parameters": [ |
723 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, | 723 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, |
724 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, | 724 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, |
725 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, | 725 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, |
726 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, | 726 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, |
727 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." }, | 727 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." }, |
728 { "name": "scale", "type": "number", "optional": true, "expe rimental": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, | 728 { "name": "scale", "type": "number", "optional": true, "expe rimental": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, |
729 { "name": "offsetX", "type": "number", "optional": true, "ex perimental": true, "description": "X offset to shift resulting view image by. Ig nored in |fitWindow| mode." }, | 729 { "name": "offsetX", "type": "number", "optional": true, "de precated": true, "experimental": true, "description": "Not used." }, |
730 { "name": "offsetY", "type": "number", "optional": true, "ex perimental": true, "description": "Y offset to shift resulting view image by. Ig nored in |fitWindow| mode." }, | 730 { "name": "offsetY", "type": "number", "optional": true, "de precated": true, "experimental": true, "description": "Not used." }, |
731 { "name": "screenWidth", "type": "integer", "optional": true , "experimental": true, "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 731 { "name": "screenWidth", "type": "integer", "optional": true , "experimental": true, "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
732 { "name": "screenHeight", "type": "integer", "optional": tru e, "experimental": true, "description": "Overriding screen height value in pixel s (minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 732 { "name": "screenHeight", "type": "integer", "optional": tru e, "experimental": true, "description": "Overriding screen height value in pixel s (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
733 { "name": "positionX", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view X position on screen in pi xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 733 { "name": "positionX", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view X position on screen in pi xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
734 { "name": "positionY", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view Y position on screen in pi xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, | 734 { "name": "positionY", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view Y position on screen in pi xels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
735 { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." } | 735 { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." } |
736 ], | 736 ], |
737 "handlers": ["browser"] | 737 "handlers": ["browser"] |
738 }, | 738 }, |
739 { | 739 { |
740 "name": "clearDeviceMetricsOverride", | 740 "name": "clearDeviceMetricsOverride", |
741 "description": "Clears the overriden device metrics.", | 741 "description": "Clears the overriden device metrics.", |
742 "handlers": ["browser"] | 742 "handlers": ["browser"] |
743 }, | 743 }, |
744 { | 744 { |
745 "name": "forceViewport", | |
746 "description": "Overrides the visible area of the page. The chan ge is hidden from the page, i.e. the observable scroll position and page scale d oes not change. In effect, the command moves the specified area of the page into the top-left corner of the frame.", | |
747 "experimental": true, | |
748 "parameters": [ | |
749 { "name": "x", "type": "number", "description": "X coordinat e of top-left corner of the area (CSS pixels)." }, | |
750 { "name": "y", "type": "number", "description": "Y coordinat e of top-left corner of the area (CSS pixels)." }, | |
751 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to the area (relative to a page scale of 1.0). Default s to 1.0." } | |
dgozman
2016/08/29 20:45:36
Do we need it to be optional? I think clients will
Eric Seckler
2016/09/12 13:58:00
Sure, we can make it required. Done.
| |
752 ] | |
753 }, | |
754 { | |
755 "name": "resetViewport", | |
756 "description": "Resets the visible area of the page to the origi nal viewport, undoing any effects of the forceViewport command.", | |
dgozman
2016/08/29 20:45:36
nit: <code>forceViewport</code>
Eric Seckler
2016/09/12 13:58:00
Done.
| |
757 "experimental": true | |
758 }, | |
759 { | |
745 "name": "resetPageScaleFactor", | 760 "name": "resetPageScaleFactor", |
746 "experimental": true, | 761 "experimental": true, |
747 "description": "Requests that page scale factor is reset to init ial values." | 762 "description": "Requests that page scale factor is reset to init ial values." |
748 }, | 763 }, |
749 { | 764 { |
750 "name": "setPageScaleFactor", | 765 "name": "setPageScaleFactor", |
751 "description": "Sets a specified page scale factor.", | 766 "description": "Sets a specified page scale factor.", |
752 "experimental": true, | 767 "experimental": true, |
753 "parameters": [ | 768 "parameters": [ |
754 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." } | 769 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." } |
(...skipping 3741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4496 "description": "Informs that port was successfully bound and got a specified connection id.", | 4511 "description": "Informs that port was successfully bound and got a specified connection id.", |
4497 "parameters": [ | 4512 "parameters": [ |
4498 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, | 4513 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, |
4499 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } | 4514 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } |
4500 ], | 4515 ], |
4501 "handlers": ["browser"] | 4516 "handlers": ["browser"] |
4502 } | 4517 } |
4503 ] | 4518 ] |
4504 }] | 4519 }] |
4505 } | 4520 } |
OLD | NEW |