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": "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." |
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": "setVirtualTimePolicy", |
| 777 "description": "Turns on virtual time for all frames (replacing
real-time with a synthetic time source) and sets the current virtual time policy
.", |
| 778 "parameters": [ |
| 779 { "name": "policy", "$ref": "VirtualTimePolicy" } |
| 780 ], |
| 781 "hidden": true |
764 } | 782 } |
765 ] | 783 ] |
766 }, | 784 }, |
767 { | 785 { |
768 "domain": "Security", | 786 "domain": "Security", |
769 "description": "Security", | 787 "description": "Security", |
770 "hidden": true, | 788 "hidden": true, |
771 "types": [ | 789 "types": [ |
772 { | 790 { |
773 "id": "CertificateId", | 791 "id": "CertificateId", |
(...skipping 3452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4226 "description": "Dispatches protocol message from the target with
given id.", | 4244 "description": "Dispatches protocol message from the target with
given id.", |
4227 "parameters": [ | 4245 "parameters": [ |
4228 { "name": "targetId", "$ref": "TargetID" }, | 4246 { "name": "targetId", "$ref": "TargetID" }, |
4229 { "name": "message", "type": "string" } | 4247 { "name": "message", "type": "string" } |
4230 ], | 4248 ], |
4231 "handlers": ["browser"] | 4249 "handlers": ["browser"] |
4232 } | 4250 } |
4233 ] | 4251 ] |
4234 }] | 4252 }] |
4235 } | 4253 } |
OLD | NEW |