| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 data->threadDebugger()->debugger()->idleFinished(); | 65 data->threadDebugger()->debugger()->idleFinished(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void ThreadDebugger::beginUserGesture() | 68 void ThreadDebugger::beginUserGesture() |
| 69 { | 69 { |
| 70 m_userGestureIndicator = adoptPtr(new UserGestureIndicator(DefinitelyProcess
ingNewUserGesture)); | 70 m_userGestureIndicator = adoptPtr(new UserGestureIndicator(DefinitelyProcess
ingNewUserGesture)); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void ThreadDebugger::endUserGesture() | 73 void ThreadDebugger::endUserGesture() |
| 74 { | 74 { |
| 75 m_userGestureIndicator.clear(); | 75 m_userGestureIndicator.reset(); |
| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 { | 390 { |
| 391 for (size_t index = 0; index < m_timers.size(); ++index) { | 391 for (size_t index = 0; index < m_timers.size(); ++index) { |
| 392 if (m_timers[index] == timer) { | 392 if (m_timers[index] == timer) { |
| 393 m_timerCallbacks[index](m_timerData[index]); | 393 m_timerCallbacks[index](m_timerData[index]); |
| 394 return; | 394 return; |
| 395 } | 395 } |
| 396 } | 396 } |
| 397 } | 397 } |
| 398 | 398 |
| 399 } // namespace blink | 399 } // namespace blink |
| OLD | NEW |