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

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

Issue 1521113002: DevTools: Initial implementation of slow CPU emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 4 landing Created 5 years 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 "handlers": ["browser", "renderer"] 708 "handlers": ["browser", "renderer"]
709 }, 709 },
710 { 710 {
711 "name": "setEmulatedMedia", 711 "name": "setEmulatedMedia",
712 "parameters": [ 712 "parameters": [
713 { "name": "media", "type": "string", "description": "Media t ype to emulate. Empty string disables the override." } 713 { "name": "media", "type": "string", "description": "Media t ype to emulate. Empty string disables the override." }
714 ], 714 ],
715 "description": "Emulates the given media for CSS media queries." 715 "description": "Emulates the given media for CSS media queries."
716 }, 716 },
717 { 717 {
718 "name": "setCPUThrottlingRate",
719 "parameters": [
720 { "name": "rate", "type": "number", "description": "Throttli ng rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)." }
721 ],
722 "description": "Enables CPU throttling to emulate slow CPUs."
723 },
724 {
718 "name": "canEmulate", 725 "name": "canEmulate",
719 "description": "Tells whether emulation is supported.", 726 "description": "Tells whether emulation is supported.",
720 "returns": [ 727 "returns": [
721 { "name": "result", "type": "boolean", "description": "True if emulation is supported." } 728 { "name": "result", "type": "boolean", "description": "True if emulation is supported." }
722 ], 729 ],
723 "handlers": ["browser"] 730 "handlers": ["browser"]
724 } 731 }
725 ], 732 ],
726 "events": [ 733 "events": [
727 { 734 {
(...skipping 4571 matching lines...) Expand 10 before | Expand all | Expand 10 after
5299 ], 5306 ],
5300 "returns": [ 5307 "returns": [
5301 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5308 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5302 ], 5309 ],
5303 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5310 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5304 "hidden": true 5311 "hidden": true
5305 } 5312 }
5306 ] 5313 ]
5307 }] 5314 }]
5308 } 5315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698