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 "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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
663 "hidden": true, | 663 "hidden": true, |
664 "types": [ | 664 "types": [ |
665 { | 665 { |
666 "id": "ScreenOrientation", | 666 "id": "ScreenOrientation", |
667 "type": "object", | 667 "type": "object", |
668 "description": "Screen orientation.", | 668 "description": "Screen orientation.", |
669 "properties": [ | 669 "properties": [ |
670 { "name": "type", "type": "string", "enum": ["portraitPrima ry", "portraitSecondary", "landscapePrimary", "landscapeSecondary"], "descriptio n": "Orientation type." }, | 670 { "name": "type", "type": "string", "enum": ["portraitPrima ry", "portraitSecondary", "landscapePrimary", "landscapeSecondary"], "descriptio n": "Orientation type." }, |
671 { "name": "angle", "type": "integer", "description": "Orien tation angle." } | 671 { "name": "angle", "type": "integer", "description": "Orien tation angle." } |
672 ] | 672 ] |
673 }, | |
674 { | |
675 "id": "VirtualTimePolicy", | |
676 "type": "string", | |
677 "enum": [ | |
678 "advance", | |
679 "pause", | |
680 "pauseIfNetworkFetchesPending" | |
681 ], | |
682 "description": "For a description of the virtual time policies s ee: https://docs.google.com/document/d/1y9KDT_ZEzT7pBeY6uzVt1dgKlwc1OB_vY4NZO1zB Qmo" | |
673 } | 683 } |
674 ], | 684 ], |
675 "commands": [ | 685 "commands": [ |
676 { | 686 { |
677 "name": "setDeviceMetricsOverride", | 687 "name": "setDeviceMetricsOverride", |
678 "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).", | 688 "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).", |
679 "parameters": [ | 689 "parameters": [ |
680 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, | 690 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, |
681 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, | 691 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, |
682 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, | 692 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
754 ], | 764 ], |
755 "description": "Enables CPU throttling to emulate slow CPUs." | 765 "description": "Enables CPU throttling to emulate slow CPUs." |
756 }, | 766 }, |
757 { | 767 { |
758 "name": "canEmulate", | 768 "name": "canEmulate", |
759 "description": "Tells whether emulation is supported.", | 769 "description": "Tells whether emulation is supported.", |
760 "returns": [ | 770 "returns": [ |
761 { "name": "result", "type": "boolean", "description": "True if emulation is supported." } | 771 { "name": "result", "type": "boolean", "description": "True if emulation is supported." } |
762 ], | 772 ], |
763 "handlers": ["browser"] | 773 "handlers": ["browser"] |
774 }, | |
775 { | |
776 "name": "enableVirtualTime", | |
pfeldman
2016/07/01 15:14:13
this should either be setVirtualTimeEnabled(bool)
alex clarke (OOO till 29th)
2016/07/01 15:53:23
I know where you're coming from but I'm not sure i
| |
777 "description": "Turns on virtual time for all frames, replacing real-time with a synthetic time source.", | |
778 "hidden": true | |
779 }, | |
780 { | |
781 "name": "setVirtualTimePolicy", | |
782 "description": "Sets the current virtual time policy for all fra mes.", | |
783 "parameters": [ | |
784 { "name": "policy", "$ref": "VirtualTimePolicy" } | |
785 ], | |
786 "hidden": true | |
764 } | 787 } |
765 ] | 788 ] |
766 }, | 789 }, |
767 { | 790 { |
768 "domain": "Console", | 791 "domain": "Console", |
769 "description": "Console domain defines methods and events for interactio n with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A PI</a>. One needs to enable this domain using <code>enable</code> command in ord er to start receiving the console messages. Browser collects messages issued whi le console domain is not enabled as well and reports them using <code>messageAdd ed</code> notification upon enabling.", | 792 "description": "Console domain defines methods and events for interactio n with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A PI</a>. One needs to enable this domain using <code>enable</code> command in ord er to start receiving the console messages. Browser collects messages issued whi le console domain is not enabled as well and reports them using <code>messageAdd ed</code> notification upon enabling.", |
770 "dependencies": ["Runtime"], | 793 "dependencies": ["Runtime"], |
771 "types": [ | 794 "types": [ |
772 { | 795 { |
773 "id": "Timestamp", | 796 "id": "Timestamp", |
(...skipping 3517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4291 "description": "Dispatches protocol message from the target with given id.", | 4314 "description": "Dispatches protocol message from the target with given id.", |
4292 "parameters": [ | 4315 "parameters": [ |
4293 { "name": "targetId", "$ref": "TargetID" }, | 4316 { "name": "targetId", "$ref": "TargetID" }, |
4294 { "name": "message", "type": "string" } | 4317 { "name": "message", "type": "string" } |
4295 ], | 4318 ], |
4296 "handlers": ["browser"] | 4319 "handlers": ["browser"] |
4297 } | 4320 } |
4298 ] | 4321 ] |
4299 }] | 4322 }] |
4300 } | 4323 } |
OLD | NEW |