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

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

Issue 145133008: DevTools: Make getEventListeners() of Console API work for window. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 6 years, 11 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 | « Source/core/inspector/InjectedScriptHost.idl ('k') | 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 d6c94cf64292019778424e3a4b4d0745662730cb..38e4b650ba62f7139d1c0e391e5a81c06eb48ed7 100644
--- a/Source/core/inspector/InspectorDOMAgent.h
+++ b/Source/core/inspector/InspectorDOMAgent.h
@@ -51,6 +51,7 @@ class CharacterData;
class DOMEditor;
class Document;
class Element;
+class EventTarget;
class ExceptionState;
class InspectorFrontend;
class InspectorHistory;
@@ -71,14 +72,14 @@ typedef int BackendNodeId;
struct EventListenerInfo {
- EventListenerInfo(Node* node, const AtomicString& eventType, const EventListenerVector& eventListenerVector)
- : node(node)
+ EventListenerInfo(EventTarget* eventTarget, const AtomicString& eventType, const EventListenerVector& eventListenerVector)
+ : eventTarget(eventTarget)
, eventType(eventType)
, eventListenerVector(eventListenerVector)
{
}
- Node* node;
+ EventTarget* eventTarget;
const AtomicString eventType;
const EventListenerVector eventListenerVector;
};
@@ -151,7 +152,7 @@ public:
virtual void getNodeForLocation(ErrorString*, int x, int y, int* nodeId) OVERRIDE;
virtual void getRelayoutBoundary(ErrorString*, int nodeId, int* relayoutBoundaryNodeId) OVERRIDE;
- static void getEventListeners(Node*, Vector<EventListenerInfo>& listenersArray, bool includeAncestors);
+ static void getEventListeners(EventTarget*, Vector<EventListenerInfo>& listenersArray, bool includeAncestors);
// Methods called from the InspectorInstrumentation.
void setDocument(Document*);
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.idl ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698