Index: third_party/WebKit/Source/core/inspector/protocol/DOMDebugger.json |
diff --git a/third_party/WebKit/Source/core/inspector/protocol/DOMDebugger.json b/third_party/WebKit/Source/core/inspector/protocol/DOMDebugger.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8de4d3120982e0c08ab43e4fda49e8510b82fc37 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/inspector/protocol/DOMDebugger.json |
@@ -0,0 +1,208 @@ |
+{ |
+ "domain": "DOMDebugger", |
+ "version": { |
+ "major": "1", |
+ "minor": "1" |
+ }, |
+ "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.", |
+ "dependencies": [ |
+ "DOM", |
+ "Debugger" |
+ ], |
+ "types": [ |
+ { |
+ "id": "DOMBreakpointType", |
+ "type": "string", |
+ "enum": [ |
+ "subtree-modified", |
+ "attribute-modified", |
+ "node-removed" |
+ ], |
+ "description": "DOM breakpoint type." |
+ }, |
+ { |
+ "id": "EventListener", |
+ "type": "object", |
+ "description": "Object event listener.", |
+ "properties": [ |
+ { |
+ "name": "type", |
+ "type": "string", |
+ "description": "<code>EventListener</code>'s type." |
+ }, |
+ { |
+ "name": "useCapture", |
+ "type": "boolean", |
+ "description": "<code>EventListener</code>'s useCapture." |
+ }, |
+ { |
+ "name": "passive", |
+ "type": "boolean", |
+ "description": "<code>EventListener</code>'s passive flag." |
+ }, |
+ { |
+ "name": "location", |
+ "$ref": "Debugger.Location", |
+ "description": "Handler code location." |
+ }, |
+ { |
+ "name": "handler", |
+ "$ref": "Runtime.RemoteObject", |
+ "optional": true, |
+ "description": "Event handler function value." |
+ }, |
+ { |
+ "name": "originalHandler", |
+ "$ref": "Runtime.RemoteObject", |
+ "optional": true, |
+ "description": "Event original handler function value." |
+ }, |
+ { |
+ "name": "removeFunction", |
+ "$ref": "Runtime.RemoteObject", |
+ "optional": true, |
+ "description": "Event listener remove function." |
+ } |
+ ], |
+ "hidden": true |
+ } |
+ ], |
+ "commands": [ |
+ { |
+ "name": "setDOMBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "nodeId", |
+ "$ref": "DOM.NodeId", |
+ "description": "Identifier of the node to set breakpoint on." |
+ }, |
+ { |
+ "name": "type", |
+ "$ref": "DOMBreakpointType", |
+ "description": "Type of the operation to stop upon." |
+ } |
+ ], |
+ "description": "Sets breakpoint on particular operation with DOM." |
+ }, |
+ { |
+ "name": "removeDOMBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "nodeId", |
+ "$ref": "DOM.NodeId", |
+ "description": "Identifier of the node to remove breakpoint from." |
+ }, |
+ { |
+ "name": "type", |
+ "$ref": "DOMBreakpointType", |
+ "description": "Type of the breakpoint to remove." |
+ } |
+ ], |
+ "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>." |
+ }, |
+ { |
+ "name": "setEventListenerBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "eventName", |
+ "type": "string", |
+ "description": "DOM Event name to stop on (any DOM event will do)." |
+ }, |
+ { |
+ "name": "targetName", |
+ "type": "string", |
+ "optional": true, |
+ "description": "EventTarget interface name to stop on. If equal to <code>\"*\"</code> or not provided, will stop on any EventTarget.", |
+ "hidden": true |
+ } |
+ ], |
+ "description": "Sets breakpoint on particular DOM event." |
+ }, |
+ { |
+ "name": "removeEventListenerBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "eventName", |
+ "type": "string", |
+ "description": "Event name." |
+ }, |
+ { |
+ "name": "targetName", |
+ "type": "string", |
+ "optional": true, |
+ "description": "EventTarget interface name.", |
+ "hidden": true |
+ } |
+ ], |
+ "description": "Removes breakpoint on particular DOM event." |
+ }, |
+ { |
+ "name": "setInstrumentationBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "eventName", |
+ "type": "string", |
+ "description": "Instrumentation name to stop on." |
+ } |
+ ], |
+ "description": "Sets breakpoint on particular native event.", |
+ "hidden": true |
+ }, |
+ { |
+ "name": "removeInstrumentationBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "eventName", |
+ "type": "string", |
+ "description": "Instrumentation name to stop on." |
+ } |
+ ], |
+ "description": "Removes breakpoint on particular native event.", |
+ "hidden": true |
+ }, |
+ { |
+ "name": "setXHRBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "url", |
+ "type": "string", |
+ "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." |
+ } |
+ ], |
+ "description": "Sets breakpoint on XMLHttpRequest." |
+ }, |
+ { |
+ "name": "removeXHRBreakpoint", |
+ "parameters": [ |
+ { |
+ "name": "url", |
+ "type": "string", |
+ "description": "Resource URL substring." |
+ } |
+ ], |
+ "description": "Removes breakpoint from XMLHttpRequest." |
+ }, |
+ { |
+ "name": "getEventListeners", |
+ "hidden": true, |
+ "parameters": [ |
+ { |
+ "name": "objectId", |
+ "$ref": "Runtime.RemoteObjectId", |
+ "description": "Identifier of the object to return listeners for." |
+ } |
+ ], |
+ "returns": [ |
+ { |
+ "name": "listeners", |
+ "type": "array", |
+ "items": { |
+ "$ref": "EventListener" |
+ }, |
+ "description": "Array of relevant listeners." |
+ } |
+ ], |
+ "description": "Returns event listeners of the given object." |
+ } |
+ ] |
+} |