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

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

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698