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

Unified Diff: Source/core/inspector/InspectorDOMDebuggerAgent.h

Issue 320933003: DevTools: Expand protocol to allow setting DOM event breakpoints on a given event target. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: skip test on mac 10.6 dbg Created 6 years, 6 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/core/inspector/InspectorDOMDebuggerAgent.h
diff --git a/Source/core/inspector/InspectorDOMDebuggerAgent.h b/Source/core/inspector/InspectorDOMDebuggerAgent.h
index fe2ee7cbc05223667b4217cdc023898c605247b5..c6693b2e783eb3f78ec32bcc8143154ea359cc9b 100644
--- a/Source/core/inspector/InspectorDOMDebuggerAgent.h
+++ b/Source/core/inspector/InspectorDOMDebuggerAgent.h
@@ -68,8 +68,8 @@ public:
// DOMDebugger API for InspectorFrontend
virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
- virtual void setEventListenerBreakpoint(ErrorString*, const String& eventName) OVERRIDE;
- virtual void removeEventListenerBreakpoint(ErrorString*, const String& eventName) OVERRIDE;
+ virtual void setEventListenerBreakpoint(ErrorString*, const String& eventName, const String* targetName) OVERRIDE;
+ virtual void removeEventListenerBreakpoint(ErrorString*, const String& eventName, const String* targetName) OVERRIDE;
virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventName) OVERRIDE;
virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eventName) OVERRIDE;
virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) OVERRIDE;
@@ -104,7 +104,7 @@ private:
InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*);
void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synchronous);
- PassRefPtr<JSONObject> preparePauseOnNativeEventData(bool isDOMEvent, const String& eventName);
+ PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName, const AtomicString* targetName);
// InspectorDOMAgent::Listener implementation.
virtual void domAgentWasEnabled() OVERRIDE;
@@ -120,8 +120,8 @@ private:
void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion, JSONObject* description);
void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
bool hasBreakpoint(Node*, int type);
- void setBreakpoint(ErrorString*, const String& eventName);
- void removeBreakpoint(ErrorString*, const String& eventName);
+ void setBreakpoint(ErrorString*, const String& eventName, const String* targetName);
+ void removeBreakpoint(ErrorString*, const String& eventName, const String* targetName);
void clear();

Powered by Google App Engine
This is Rietveld 408576698