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

Unified Diff: Source/devtools/protocol.json

Issue 1310273006: Devtools: convert pair of booleans in setInspectModeEnabled into enum parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index e53ab11363f64aa83a3785e65a9dff137f288143..2b91689e75d3b949ce771208cc725ee4bfc7514d 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2368,6 +2368,15 @@
{ "name": "shapeMarginColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The shape margin fill color (default: transparent)." }
],
"description": "Configuration data for the highlighting of page elements."
+ },
+ {
+ "id": "InspectMode",
dgozman 2015/08/29 01:36:40 hidden
sergeyv 2015/08/29 02:03:44 Done.
+ "type": "string",
+ "enum": [
+ "searchForNormal",
dgozman 2015/08/29 01:36:40 searchForNode
sergeyv 2015/08/29 02:03:44 Done.
+ "searchForUAShadowDOM",
+ "none"
+ ]
}
],
"commands": [
@@ -2531,11 +2540,10 @@
"description": "Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of <code>setChildNodes</code> notifications."
},
{
- "name": "setInspectModeEnabled",
+ "name": "setInspectMode",
"hidden": true,
"parameters": [
- { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." },
- { "name": "inspectUAShadowDOM", "type": "boolean", "optional": true, "description": "True to enable inspection mode for user agent shadow DOM." },
+ { "name": "mode", "$ref": "InspectMode", "description": "Set an inspection mode." },
{ "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>." }
],
"description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection."
@@ -2751,7 +2759,7 @@
"parameters": [
{ "name": "backendNodeId", "$ref": "BackendNodeId", "description": "Id of the node to inspect." }
],
- "description": "Fired when the node should be inspected. This happens after call to <code>setInspectModeEnabled</code>.",
+ "description": "Fired when the node should be inspected. This happens after call to <code>setInspectMode</code>.",
"hidden" : true
},
{

Powered by Google App Engine
This is Rietveld 408576698