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

Side by Side Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 1950403002: Add the ability to return descedant event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/inspector/ThreadDebugger.h" 5 #include "core/inspector/ThreadDebugger.h"
6 6
7 #include "bindings/core/v8/ScriptCallStack.h" 7 #include "bindings/core/v8/ScriptCallStack.h"
8 #include "bindings/core/v8/ScriptValue.h" 8 #include "bindings/core/v8/ScriptValue.h"
9 #include "bindings/core/v8/V8Binding.h" 9 #include "bindings/core/v8/V8Binding.h"
10 #include "bindings/core/v8/V8DOMException.h" 10 #include "bindings/core/v8/V8DOMException.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void ThreadDebugger::beginUserGesture() 63 void ThreadDebugger::beginUserGesture()
64 { 64 {
65 m_userGestureIndicator = adoptPtr(new UserGestureIndicator(DefinitelyProcess ingNewUserGesture)); 65 m_userGestureIndicator = adoptPtr(new UserGestureIndicator(DefinitelyProcess ingNewUserGesture));
66 } 66 }
67 67
68 void ThreadDebugger::endUserGesture() 68 void ThreadDebugger::endUserGesture()
69 { 69 {
70 m_userGestureIndicator.clear(); 70 m_userGestureIndicator.clear();
71 } 71 }
72 72
73 void ThreadDebugger::eventListeners(v8::Local<v8::Value> value, V8EventListenerI nfoList& result) 73 void ThreadDebugger::eventListeners(v8::Local<v8::Value> value, unsigned filterM ask, V8EventListenerInfoList& result)
74 { 74 {
75 InspectorDOMDebuggerAgent::eventListenersInfoForTarget(m_isolate, value, res ult); 75 InspectorDOMDebuggerAgent::eventListenersInfoForTarget(m_isolate, value, fil terMask, result);
76 } 76 }
77 77
78 String16 ThreadDebugger::valueSubtype(v8::Local<v8::Value> value) 78 String16 ThreadDebugger::valueSubtype(v8::Local<v8::Value> value)
79 { 79 {
80 if (V8Node::hasInstance(value, m_isolate)) 80 if (V8Node::hasInstance(value, m_isolate))
81 return "node"; 81 return "node";
82 if (V8NodeList::hasInstance(value, m_isolate) 82 if (V8NodeList::hasInstance(value, m_isolate)
83 || V8DOMTokenList::hasInstance(value, m_isolate) 83 || V8DOMTokenList::hasInstance(value, m_isolate)
84 || V8HTMLCollection::hasInstance(value, m_isolate) 84 || V8HTMLCollection::hasInstance(value, m_isolate)
85 || V8HTMLAllCollection::hasInstance(value, m_isolate)) { 85 || V8HTMLAllCollection::hasInstance(value, m_isolate)) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 { 183 {
184 for (size_t index = 0; index < m_timers.size(); ++index) { 184 for (size_t index = 0; index < m_timers.size(); ++index) {
185 if (m_timers[index] == timer) { 185 if (m_timers[index] == timer) {
186 m_timerCallbacks[index](m_timerData[index]); 186 m_timerCallbacks[index](m_timerData[index]);
187 return; 187 return;
188 } 188 }
189 } 189 }
190 } 190 }
191 191
192 } // namespace blink 192 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698