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

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

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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/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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 v8::MaybeLocal<v8::Value> ThreadDebugger::callFunction(v8::Local<v8::Function> f unction, v8::Local<v8::Context> context, v8::Local<v8::Value> receiver, int argc , v8::Local<v8::Value> info[]) 52 v8::MaybeLocal<v8::Value> ThreadDebugger::callFunction(v8::Local<v8::Function> f unction, v8::Local<v8::Context> context, v8::Local<v8::Value> receiver, int argc , v8::Local<v8::Value> info[])
53 { 53 {
54 return V8ScriptRunner::callFunction(function, toExecutionContext(context), r eceiver, argc, info, m_isolate); 54 return V8ScriptRunner::callFunction(function, toExecutionContext(context), r eceiver, argc, info, m_isolate);
55 } 55 }
56 56
57 v8::MaybeLocal<v8::Value> ThreadDebugger::callInternalFunction(v8::Local<v8::Fun ction> function, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> i nfo[]) 57 v8::MaybeLocal<v8::Value> ThreadDebugger::callInternalFunction(v8::Local<v8::Fun ction> function, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> i nfo[])
58 { 58 {
59 return V8ScriptRunner::callInternalFunction(function, receiver, argc, info, m_isolate); 59 return V8ScriptRunner::callInternalFunction(function, receiver, argc, info, m_isolate);
60 } 60 }
61 61
62 String ThreadDebugger::valueSubtype(v8::Local<v8::Value> value) 62 String16 ThreadDebugger::valueSubtype(v8::Local<v8::Value> value)
63 { 63 {
64 if (V8Node::hasInstance(value, m_isolate)) 64 if (V8Node::hasInstance(value, m_isolate))
65 return "node"; 65 return "node";
66 if (V8NodeList::hasInstance(value, m_isolate) 66 if (V8NodeList::hasInstance(value, m_isolate)
67 || V8DOMTokenList::hasInstance(value, m_isolate) 67 || V8DOMTokenList::hasInstance(value, m_isolate)
68 || V8HTMLCollection::hasInstance(value, m_isolate) 68 || V8HTMLCollection::hasInstance(value, m_isolate)
69 || V8HTMLAllCollection::hasInstance(value, m_isolate)) { 69 || V8HTMLAllCollection::hasInstance(value, m_isolate)) {
70 return "array"; 70 return "array";
71 } 71 }
72 if (V8DOMException::hasInstance(value, m_isolate)) 72 if (V8DOMException::hasInstance(value, m_isolate))
(...skipping 11 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698