Index: Source/core/inspector/InspectorDOMAgent.h |
diff --git a/Source/core/inspector/InspectorDOMAgent.h b/Source/core/inspector/InspectorDOMAgent.h |
index 19bfdcb45c5f688c24c66e9cf9798481205ae46f..f5174aeaac9be542fad47a5bef046c6bd9387485 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.h |
+++ b/Source/core/inspector/InspectorDOMAgent.h |
@@ -154,6 +154,16 @@ public: |
static void getEventListeners(EventTarget*, Vector<EventListenerInfo>& listenersArray, bool includeAncestors); |
+ class Listener { |
+ public: |
+ virtual ~Listener() { } |
+ virtual void domAgentWasEnabled() = 0; |
+ virtual void domAgentWasDisabled() = 0; |
+ }; |
+ void setListener(Listener* listener) { m_listener = listener; } |
+ |
+ bool enabled() const; |
+ |
// Methods called from the InspectorInstrumentation. |
void setDocument(Document*); |
void releaseDanglingNodes(); |
@@ -207,7 +217,6 @@ private: |
InspectorDOMAgent(InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*); |
- bool enabled() const; |
void setSearchingForNode(ErrorString*, SearchMode, JSONObject* highlightConfig); |
PassOwnPtr<HighlightConfig> highlightConfigFromInspectorObject(ErrorString*, JSONObject* highlightInspectorObject); |
@@ -266,6 +275,7 @@ private: |
OwnPtr<InspectorHistory> m_history; |
OwnPtr<DOMEditor> m_domEditor; |
bool m_suppressAttributeModifiedEvent; |
+ Listener* m_listener; |
}; |