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

Side by Side Diff: Source/core/inspector/InjectedScriptHost.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/events/EventTarget.cpp ('k') | Source/core/inspector/InjectedScriptHost.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 #define InjectedScriptHost_h 31 #define InjectedScriptHost_h
32 32
33 #include "bindings/v8/ScriptState.h" 33 #include "bindings/v8/ScriptState.h"
34 #include "bindings/v8/ScriptWrappable.h" 34 #include "bindings/v8/ScriptWrappable.h"
35 #include "wtf/RefCounted.h" 35 #include "wtf/RefCounted.h"
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class Database; 40 class Database;
41 class EventTarget;
41 class InjectedScript; 42 class InjectedScript;
42 class InstrumentingAgents; 43 class InstrumentingAgents;
43 class JSONValue; 44 class JSONValue;
44 class Node; 45 class Node;
45 class ScriptDebugServer; 46 class ScriptDebugServer;
46 class ScriptValue; 47 class ScriptValue;
47 class Storage; 48 class Storage;
48 49
49 struct EventListenerInfo; 50 struct EventListenerInfo;
50 51
(...skipping 22 matching lines...) Expand all
73 WTF_MAKE_FAST_ALLOCATED; 74 WTF_MAKE_FAST_ALLOCATED;
74 public: 75 public:
75 virtual ScriptValue get(ScriptState*); 76 virtual ScriptValue get(ScriptState*);
76 virtual ~InspectableObject() { } 77 virtual ~InspectableObject() { }
77 }; 78 };
78 void addInspectedObject(PassOwnPtr<InspectableObject>); 79 void addInspectedObject(PassOwnPtr<InspectableObject>);
79 void clearInspectedObjects(); 80 void clearInspectedObjects();
80 InspectableObject* inspectedObject(unsigned int num); 81 InspectableObject* inspectedObject(unsigned int num);
81 82
82 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue > hints); 83 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue > hints);
83 void getEventListenersImpl(Node*, Vector<EventListenerInfo>& listenersArray) ; 84 void getEventListenersImpl(EventTarget*, Vector<EventListenerInfo>& listener sArray);
84 85
85 void clearConsoleMessages(); 86 void clearConsoleMessages();
86 String databaseIdImpl(Database*); 87 String databaseIdImpl(Database*);
87 String storageIdImpl(Storage*); 88 String storageIdImpl(Storage*);
88 void debugFunction(const String& scriptId, int lineNumber, int columnNumber) ; 89 void debugFunction(const String& scriptId, int lineNumber, int columnNumber) ;
89 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe r); 90 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe r);
90 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe r, const String& functionName); 91 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe r, const String& functionName);
91 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum ber); 92 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum ber);
92 93
93 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; } 94 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; }
94 95
95 private: 96 private:
96 InjectedScriptHost(); 97 InjectedScriptHost();
97 98
98 InstrumentingAgents* m_instrumentingAgents; 99 InstrumentingAgents* m_instrumentingAgents;
99 ScriptDebugServer* m_scriptDebugServer; 100 ScriptDebugServer* m_scriptDebugServer;
100 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; 101 Vector<OwnPtr<InspectableObject> > m_inspectedObjects;
101 OwnPtr<InspectableObject> m_defaultInspectableObject; 102 OwnPtr<InspectableObject> m_defaultInspectableObject;
102 }; 103 };
103 104
104 } // namespace WebCore 105 } // namespace WebCore
105 106
106 #endif // !defined(InjectedScriptHost_h) 107 #endif // !defined(InjectedScriptHost_h)
OLDNEW
« no previous file with comments | « Source/core/events/EventTarget.cpp ('k') | Source/core/inspector/InjectedScriptHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698