Chromium Code Reviews| 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" | |
|
dgozman
2016/07/05 15:30:35
We prefer to not include links here, since it's pu
alex clarke (OOO till 29th)
2016/07/05 16:51:23
Done.
| |
| 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", | |
|
dgozman
2016/07/05 15:30:35
Why can't we disable it?
alex clarke (OOO till 29th)
2016/07/05 16:51:23
We could but I'm not sure it's a good idea to allo
| |
| 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", | |
|
dgozman
2016/07/05 15:30:35
Should we add "disabled" to the list of policies a
alex clarke (OOO till 29th)
2016/07/05 16:51:23
See above.
to the list of policies and have just
| |
| 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": "Security", | 791 "domain": "Security", |
| 769 "description": "Security", | 792 "description": "Security", |
| 770 "hidden": true, | 793 "hidden": true, |
| 771 "types": [ | 794 "types": [ |
| 772 { | 795 { |
| 773 "id": "CertificateId", | 796 "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.", | 4249 "description": "Dispatches protocol message from the target with given id.", |
| 4227 "parameters": [ | 4250 "parameters": [ |
| 4228 { "name": "targetId", "$ref": "TargetID" }, | 4251 { "name": "targetId", "$ref": "TargetID" }, |
| 4229 { "name": "message", "type": "string" } | 4252 { "name": "message", "type": "string" } |
| 4230 ], | 4253 ], |
| 4231 "handlers": ["browser"] | 4254 "handlers": ["browser"] |
| 4232 } | 4255 } |
| 4233 ] | 4256 ] |
| 4234 }] | 4257 }] |
| 4235 } | 4258 } |
| OLD | NEW |