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

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

Issue 1042853004: [DevTools] Event Listeners Sidebar shows window listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Extracted eventListenersTreeOutline.css Created 5 years, 8 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/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorRuntimeAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorRuntimeAgent.h
diff --git a/Source/core/inspector/InspectorRuntimeAgent.h b/Source/core/inspector/InspectorRuntimeAgent.h
index 38ee005f70f60091e1deaeb6a3d71c5566fbb88e..3383acf93965ba022d75ee8fbed2e855de946710 100644
--- a/Source/core/inspector/InspectorRuntimeAgent.h
+++ b/Source/core/inspector/InspectorRuntimeAgent.h
@@ -38,11 +38,13 @@
namespace blink {
+class EventTarget;
class InjectedScript;
class InjectedScriptManager;
class JSONArray;
-class ScriptState;
+class RegisteredEventListener;
class ScriptDebugServer;
+class ScriptState;
typedef String ErrorString;
@@ -84,6 +86,7 @@ public:
TypeBuilder::OptOutput<bool>* wasThrown) override final;
virtual void releaseObject(ErrorString*, const String& objectId) override final;
virtual void getProperties(ErrorString*, const String& objectId, const bool* ownProperties, const bool* accessorPropertiesOnly, const bool* generatePreview, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::PropertyDescriptor>>& result, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor>>& internalProperties) override final;
+ virtual void getEventListeners(ErrorString*, const String& objectId, const String* objectGroup, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::EventListener>>& result) override final;
virtual void releaseObjectGroup(ErrorString*, const String& objectGroup) override final;
virtual void run(ErrorString*) override;
virtual void isRunRequired(ErrorString*, bool* out_result) override;
@@ -108,6 +111,8 @@ protected:
ScriptStateToId m_scriptStateToId;
private:
+ PassRefPtr<TypeBuilder::Runtime::EventListener> buildObjectForEventListener(const RegisteredEventListener&, const AtomicString& eventType, EventTarget*, const String* objectGroupId);
+
RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
ScriptDebugServer* m_scriptDebugServer;
Client* m_client;
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorRuntimeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698