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

Side by Side Diff: Source/core/inspector/InjectedScriptHost.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 unified diff | Download patch
« no previous file with comments | « Source/core/inspector/InjectedScript.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void init(InspectorConsoleAgent* consoleAgent, InspectorDebuggerAgent* debug gerAgent, PassOwnPtr<InspectCallback> inspectCallback, ScriptDebugServer* script DebugServer) 69 void init(InspectorConsoleAgent* consoleAgent, InspectorDebuggerAgent* debug gerAgent, PassOwnPtr<InspectCallback> inspectCallback, ScriptDebugServer* script DebugServer)
70 { 70 {
71 m_consoleAgent = consoleAgent; 71 m_consoleAgent = consoleAgent;
72 m_debuggerAgent = debuggerAgent; 72 m_debuggerAgent = debuggerAgent;
73 m_inspectCallback = inspectCallback; 73 m_inspectCallback = inspectCallback;
74 m_scriptDebugServer = scriptDebugServer; 74 m_scriptDebugServer = scriptDebugServer;
75 } 75 }
76 76
77 static Node* scriptValueAsNode(ScriptState*, ScriptValue); 77 static Node* scriptValueAsNode(ScriptState*, ScriptValue);
78 static ScriptValue nodeAsScriptValue(ScriptState*, Node*); 78 static ScriptValue nodeAsScriptValue(ScriptState*, Node*);
79 static EventTarget* scriptValueAsEventTarget(ScriptState*, ScriptValue);
79 80
80 void disconnect(); 81 void disconnect();
81 82
82 class InspectableObject { 83 class InspectableObject {
83 WTF_MAKE_FAST_ALLOCATED(InspectableObject); 84 WTF_MAKE_FAST_ALLOCATED(InspectableObject);
84 public: 85 public:
85 virtual ScriptValue get(ScriptState*); 86 virtual ScriptValue get(ScriptState*);
86 virtual ~InspectableObject() { } 87 virtual ~InspectableObject() { }
87 }; 88 };
88 void addInspectedObject(PassOwnPtr<InspectableObject>); 89 void addInspectedObject(PassOwnPtr<InspectableObject>);
(...skipping 18 matching lines...) Expand all
107 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 108 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
108 OwnPtr<InspectCallback> m_inspectCallback; 109 OwnPtr<InspectCallback> m_inspectCallback;
109 RawPtrWillBeMember<ScriptDebugServer> m_scriptDebugServer; 110 RawPtrWillBeMember<ScriptDebugServer> m_scriptDebugServer;
110 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; 111 Vector<OwnPtr<InspectableObject> > m_inspectedObjects;
111 OwnPtr<InspectableObject> m_defaultInspectableObject; 112 OwnPtr<InspectableObject> m_defaultInspectableObject;
112 }; 113 };
113 114
114 } // namespace blink 115 } // namespace blink
115 116
116 #endif // InjectedScriptHost_h 117 #endif // InjectedScriptHost_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScript.cpp ('k') | Source/core/inspector/InjectedScriptHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698