| OLD | NEW |
| 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 29 matching lines...) Expand all Loading... |
| 40 data->threadDebugger()->debugger()->willExecuteScript(isolate->GetCurren
tContext(), scriptId); | 40 data->threadDebugger()->debugger()->willExecuteScript(isolate->GetCurren
tContext(), scriptId); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void ThreadDebugger::didExecuteScript(v8::Isolate* isolate) | 43 void ThreadDebugger::didExecuteScript(v8::Isolate* isolate) |
| 44 { | 44 { |
| 45 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 45 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 46 if (data && data->threadDebugger()) | 46 if (data && data->threadDebugger()) |
| 47 data->threadDebugger()->debugger()->didExecuteScript(isolate->GetCurrent
Context()); | 47 data->threadDebugger()->debugger()->didExecuteScript(isolate->GetCurrent
Context()); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void ThreadDebugger::eventListeners(v8::Local<v8::Value> value, V8EventListenerI
nfoList& result) | 50 void ThreadDebugger::eventListeners(v8::Local<v8::Value> value, unsigned filterM
ask, V8EventListenerInfoList& result) |
| 51 { | 51 { |
| 52 InspectorDOMDebuggerAgent::eventListenersInfoForTarget(m_isolate, value, res
ult); | 52 InspectorDOMDebuggerAgent::eventListenersInfoForTarget(m_isolate, value, fil
terMask, result); |
| 53 } | 53 } |
| 54 | 54 |
| 55 String16 ThreadDebugger::valueSubtype(v8::Local<v8::Value> value) | 55 String16 ThreadDebugger::valueSubtype(v8::Local<v8::Value> value) |
| 56 { | 56 { |
| 57 if (V8Node::hasInstance(value, m_isolate)) | 57 if (V8Node::hasInstance(value, m_isolate)) |
| 58 return "node"; | 58 return "node"; |
| 59 if (V8NodeList::hasInstance(value, m_isolate) | 59 if (V8NodeList::hasInstance(value, m_isolate) |
| 60 || V8DOMTokenList::hasInstance(value, m_isolate) | 60 || V8DOMTokenList::hasInstance(value, m_isolate) |
| 61 || V8HTMLCollection::hasInstance(value, m_isolate) | 61 || V8HTMLCollection::hasInstance(value, m_isolate) |
| 62 || V8HTMLAllCollection::hasInstance(value, m_isolate)) { | 62 || V8HTMLAllCollection::hasInstance(value, m_isolate)) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 m_timers.remove(id); | 153 m_timers.remove(id); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void ThreadDebugger::onTimer(Timer<ThreadDebugger>* timer) | 156 void ThreadDebugger::onTimer(Timer<ThreadDebugger>* timer) |
| 157 { | 157 { |
| 158 ASSERT(m_timerCallbacks.contains(timer)); | 158 ASSERT(m_timerCallbacks.contains(timer)); |
| 159 (*m_timerCallbacks.get(timer))(); | 159 (*m_timerCallbacks.get(timer))(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |