Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1641003003: [DevTools] Small cleanup after device mode v2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device-mode-cleanup-split
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 "parameters": [ 625 "parameters": [
626 { "name": "show", "type": "boolean", "description": "True fo r showing scroll bottleneck rects" } 626 { "name": "show", "type": "boolean", "description": "True fo r showing scroll bottleneck rects" }
627 ] 627 ]
628 } 628 }
629 ] 629 ]
630 }, 630 },
631 { 631 {
632 "domain": "Emulation", 632 "domain": "Emulation",
633 "description": "This domain emulates different environments for the page .", 633 "description": "This domain emulates different environments for the page .",
634 "hidden": true, 634 "hidden": true,
635 "types": [
636 {
637 "id": "Viewport",
638 "type": "object",
639 "description": "Visible page viewport",
640 "properties": [
641 { "name": "scrollX", "type": "number", "description": "X scr oll offset in CSS pixels." },
642 { "name": "scrollY", "type": "number", "description": "Y scr oll offset in CSS pixels." },
643 { "name": "contentsWidth", "type": "number", "description": "Contents width in CSS pixels." },
644 { "name": "contentsHeight", "type": "number", "description": "Contents height in CSS pixels." },
645 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." },
646 { "name": "minimumPageScaleFactor", "type": "number", "descr iption": "Minimum page scale factor." },
647 { "name": "maximumPageScaleFactor", "type": "number", "descr iption": "Maximum page scale factor." }
648 ]
649 }
650 ],
651 "commands": [ 635 "commands": [
652 { 636 {
653 "name": "setDeviceMetricsOverride", 637 "name": "setDeviceMetricsOverride",
654 "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).", 638 "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).",
655 "parameters": [ 639 "parameters": [
656 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." }, 640 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." },
657 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." }, 641 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." },
658 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." }, 642 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." },
659 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." }, 643 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." },
660 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." }, 644 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." },
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 "description": "Enables CPU throttling to emulate slow CPUs." 714 "description": "Enables CPU throttling to emulate slow CPUs."
731 }, 715 },
732 { 716 {
733 "name": "canEmulate", 717 "name": "canEmulate",
734 "description": "Tells whether emulation is supported.", 718 "description": "Tells whether emulation is supported.",
735 "returns": [ 719 "returns": [
736 { "name": "result", "type": "boolean", "description": "True if emulation is supported." } 720 { "name": "result", "type": "boolean", "description": "True if emulation is supported." }
737 ], 721 ],
738 "handlers": ["browser"] 722 "handlers": ["browser"]
739 } 723 }
740 ],
741 "events": [
742 {
743 "name": "viewportChanged",
744 "description": "Fired when a visible page viewport has changed. Only fired when device metrics are overridden.",
745 "parameters": [
746 { "name": "viewport", "$ref": "Viewport", "description": "Vi ewport description." }
747 ]
748 }
749 ] 724 ]
750 }, 725 },
751 { 726 {
752 "domain": "Runtime", 727 "domain": "Runtime",
753 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.", 728 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.",
754 "types": [ 729 "types": [
755 { 730 {
756 "id": "RemoteObjectId", 731 "id": "RemoteObjectId",
757 "type": "string", 732 "type": "string",
758 "description": "Unique object identifier." 733 "description": "Unique object identifier."
(...skipping 4557 matching lines...) Expand 10 before | Expand all | Expand 10 after
5316 ], 5291 ],
5317 "returns": [ 5292 "returns": [
5318 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5293 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5319 ], 5294 ],
5320 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5295 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5321 "hidden": true 5296 "hidden": true
5322 } 5297 }
5323 ] 5298 ]
5324 }] 5299 }]
5325 } 5300 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698