OLD | NEW |
---|---|
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 "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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
723 "commands": [ | 723 "commands": [ |
724 { | 724 { |
725 "name": "setDeviceMetricsOverride", | 725 "name": "setDeviceMetricsOverride", |
726 "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).", | 726 "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).", |
727 "parameters": [ | 727 "parameters": [ |
728 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, | 728 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, |
729 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, | 729 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, |
730 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, | 730 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, |
731 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, | 731 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, |
732 { "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": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." }, |
733 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, | 733 { "name": "scale", "type": "number", "optional": true, "depr ecated": true, "description": "Not used." }, |
dgozman
2016/08/22 22:22:06
Please leave the scale, it's used by DevTools.
Eric Seckler
2016/08/23 09:32:19
Ah, misunderstood you. Is it missing tests? (I did
| |
734 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." }, | 734 { "name": "offsetX", "type": "number", "optional": true, "de precated": true, "description": "Not used." }, |
735 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." }, | 735 { "name": "offsetY", "type": "number", "optional": true, "de precated": true, "description": "Not used." }, |
736 { "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": "screenWidth", "type": "integer", "optional": true , "description": "Overriding screen width value in pixels (minimum 0, maximum 10 000000). Only used for |mobile==true|." }, |
737 { "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": "screenHeight", "type": "integer", "optional": tru e, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, |
738 { "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": "positionX", "type": "integer", "optional": true, "description": "Overriding view X position on screen in pixels (minimum 0, maxim um 10000000). Only used for |mobile==true|." }, |
739 { "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": "positionY", "type": "integer", "optional": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maxim um 10000000). Only used for |mobile==true|." }, |
740 { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." } | 740 { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." } |
741 ], | 741 ], |
742 "handlers": ["browser"] | 742 "handlers": ["browser"] |
743 }, | 743 }, |
744 { | 744 { |
745 "name": "clearDeviceMetricsOverride", | 745 "name": "clearDeviceMetricsOverride", |
746 "description": "Clears the overriden device metrics.", | 746 "description": "Clears the overriden device metrics.", |
747 "handlers": ["browser"] | 747 "handlers": ["browser"] |
748 }, | 748 }, |
749 { | 749 { |
750 "name": "forceViewport", | |
751 "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.", | |
752 "parameters": [ | |
753 { "name": "x", "type": "number", "description": "X coordinat e of top-left corner of the area (CSS pixels)." }, | |
754 { "name": "y", "type": "number", "description": "Y coordinat e of top-left corner of the area (CSS pixels)." }, | |
755 { "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." } | |
chrishtr
2016/08/22 22:00:42
What is the origin of this scale?
Eric Seckler
2016/08/23 09:32:19
It's relative to a page scale of 1.0 and effective
| |
756 ] | |
757 }, | |
758 { | |
759 "name": "resetViewport", | |
760 "description": "Resets the visible area of the page to the origi nal viewport, undoing any effects of the forceViewport command." | |
761 }, | |
762 { | |
750 "name": "resetPageScaleFactor", | 763 "name": "resetPageScaleFactor", |
751 "description": "Requests that page scale factor is reset to init ial values." | 764 "description": "Requests that page scale factor is reset to init ial values." |
752 }, | 765 }, |
753 { | 766 { |
754 "name": "setPageScaleFactor", | 767 "name": "setPageScaleFactor", |
755 "description": "Sets a specified page scale factor.", | 768 "description": "Sets a specified page scale factor.", |
756 "parameters": [ | 769 "parameters": [ |
757 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." } | 770 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." } |
758 ] | 771 ] |
759 }, | 772 }, |
(...skipping 3723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4483 "description": "Informs that port was successfully bound and got a specified connection id.", | 4496 "description": "Informs that port was successfully bound and got a specified connection id.", |
4484 "parameters": [ | 4497 "parameters": [ |
4485 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, | 4498 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, |
4486 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } | 4499 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } |
4487 ], | 4500 ], |
4488 "handlers": ["browser"] | 4501 "handlers": ["browser"] |
4489 } | 4502 } |
4490 ] | 4503 ] |
4491 }] | 4504 }] |
4492 } | 4505 } |
OLD | NEW |