| 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/V8Binding.h" | 7 #include "bindings/core/v8/V8Binding.h" |
| 8 #include "bindings/core/v8/V8DOMException.h" | 8 #include "bindings/core/v8/V8DOMException.h" |
| 9 #include "bindings/core/v8/V8DOMTokenList.h" | 9 #include "bindings/core/v8/V8DOMTokenList.h" |
| 10 #include "bindings/core/v8/V8HTMLAllCollection.h" | 10 #include "bindings/core/v8/V8HTMLAllCollection.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 ThreadDebugger::ThreadDebugger(v8::Isolate* isolate) | 22 ThreadDebugger::ThreadDebugger(v8::Isolate* isolate) |
| 23 : m_isolate(isolate) | 23 : m_isolate(isolate) |
| 24 , m_debugger(V8Debugger::create(isolate, this)) | 24 , m_debugger(V8Debugger::create(isolate, this)) |
| 25 { | 25 { |
| 26 } | 26 } |
| 27 | 27 |
| 28 ThreadDebugger::~ThreadDebugger() | 28 ThreadDebugger::~ThreadDebugger() |
| 29 { | 29 { |
| 30 } | 30 } |
| 31 | 31 |
| 32 void ThreadDebugger::eventListeners(v8::Local<v8::Value> value, V8EventListenerI
nfoMap& result) | 32 void ThreadDebugger::eventListeners(v8::Local<v8::Value> value, V8EventListenerI
nfoList& result) |
| 33 { | 33 { |
| 34 InspectorDOMDebuggerAgent::eventListenersInfoForTarget(m_isolate, value, res
ult); | 34 InspectorDOMDebuggerAgent::eventListenersInfoForTarget(m_isolate, value, res
ult); |
| 35 } | 35 } |
| 36 | 36 |
| 37 v8::MaybeLocal<v8::Object> ThreadDebugger::instantiateObject(v8::Local<v8::Funct
ion> function) | 37 v8::MaybeLocal<v8::Object> ThreadDebugger::instantiateObject(v8::Local<v8::Funct
ion> function) |
| 38 { | 38 { |
| 39 return V8ScriptRunner::instantiateObject(m_isolate, function); | 39 return V8ScriptRunner::instantiateObject(m_isolate, function); |
| 40 } | 40 } |
| 41 | 41 |
| 42 v8::MaybeLocal<v8::Value> ThreadDebugger::runCompiledScript(v8::Local<v8::Contex
t> context, v8::Local<v8::Script> script) | 42 v8::MaybeLocal<v8::Value> ThreadDebugger::runCompiledScript(v8::Local<v8::Contex
t> context, v8::Local<v8::Script> script) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 return !!V8RecursionScope::recursionLevel(m_isolate); | 84 return !!V8RecursionScope::recursionLevel(m_isolate); |
| 85 } | 85 } |
| 86 | 86 |
| 87 double ThreadDebugger::currentTimeMS() | 87 double ThreadDebugger::currentTimeMS() |
| 88 { | 88 { |
| 89 return WTF::currentTimeMS(); | 89 return WTF::currentTimeMS(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| OLD | NEW |