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

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

Issue 305753005: DevTools: disable DOMDebuggerAgent when DOMAgent or DebuggerAgent were disabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: bugfix Created 6 years, 7 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 | « no previous file | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698