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

Unified Diff: components/ui_devtools/protocol.json

Issue 2374513002: Add ui devtools server (Closed)
Patch Set: Add inspector_protocol to DEPS Created 4 years, 2 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
« no previous file with comments | « components/ui_devtools/inspector_protocol_config.json ('k') | components/ui_devtools/protocol_platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_devtools/protocol.json
diff --git a/components/ui_devtools/protocol.json b/components/ui_devtools/protocol.json
new file mode 100644
index 0000000000000000000000000000000000000000..3e4af011c8034ebfcfe9f8ef9c83ee837601eeb1
--- /dev/null
+++ b/components/ui_devtools/protocol.json
@@ -0,0 +1,97 @@
+{
+ "domains": [
+ {
+ "commands": [
+ {
+ "description": "Enables DOM agent for the given page.",
+ "name": "enable"
+ },
+ {
+ "description": "Disables DOM agent for the given page.",
+ "name": "disable"
+ },
+ {
+ "description": "Returns the root DOM node to the caller.",
+ "name": "getDocument",
+ "returns": [
+ {
+ "$ref": "Node",
+ "description": "Resulting node.",
+ "name": "root"
+ }
+ ]
+ }
+ ],
+ "domain": "DOM",
+ "types": [
+ {
+ "description": "Unique DOM node identifier.",
+ "id": "NodeId",
+ "type": "integer"
+ },
+ {
+ "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.",
+ "id": "Node",
+ "properties": [
+ {
+ "$ref": "NodeId",
+ "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.",
+ "name": "nodeId"
+ },
+ {
+ "description": "<code>Node</code>'s nodeType.",
+ "name": "nodeType",
+ "type": "integer"
+ },
+ {
+ "description": "<code>Node</code>'s nodeName.",
+ "name": "nodeName",
+ "type": "string"
+ },
+ {
+ "description": "Child count for <code>Container</code> nodes.",
+ "name": "childNodeCount",
+ "optional": true,
+ "type": "integer"
+ },
+ {
+ "description": "Child nodes of this node when requested with children.",
+ "items": {
+ "$ref": "Node"
+ },
+ "name": "children",
+ "optional": true,
+ "type": "array"
+ },
+ {
+ "description": "Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>.",
+ "items": {
+ "type": "string"
+ },
+ "name": "attributes",
+ "optional": true,
+ "type": "array"
+ },
+ {
+ "description": "<code>Attr</code>'s name.",
+ "name": "name",
+ "optional": true,
+ "type": "string"
+ },
+ {
+ "description": "<code>Attr</code>'s value.",
+ "name": "value",
+ "optional": true,
+ "type": "string"
+ }
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ ],
+ "version": {
+ "major": "1",
+ "minor": "0"
+ }
+}
« no previous file with comments | « components/ui_devtools/inspector_protocol_config.json ('k') | components/ui_devtools/protocol_platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698