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

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

Issue 2656633004: DevTools: migrate v8 console client to the new API. (Closed)
Patch Set: rebaselined Created 3 years, 10 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 #ifndef ThreadDebugger_h 5 #ifndef ThreadDebugger_h
6 #define ThreadDebugger_h 6 #define ThreadDebugger_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/inspector/ConsoleTypes.h" 9 #include "core/inspector/ConsoleTypes.h"
10 #include "platform/Timer.h" 10 #include "platform/Timer.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 v8::Local<v8::Object>) override; 61 v8::Local<v8::Object>) override;
62 void createFunctionProperty(v8::Local<v8::Context>, 62 void createFunctionProperty(v8::Local<v8::Context>,
63 v8::Local<v8::Object>, 63 v8::Local<v8::Object>,
64 const char* name, 64 const char* name,
65 v8::FunctionCallback, 65 v8::FunctionCallback,
66 const char* description); 66 const char* description);
67 static v8::Maybe<bool> createDataPropertyInArray(v8::Local<v8::Context>, 67 static v8::Maybe<bool> createDataPropertyInArray(v8::Local<v8::Context>,
68 v8::Local<v8::Array>, 68 v8::Local<v8::Array>,
69 int index, 69 int index,
70 v8::Local<v8::Value>); 70 v8::Local<v8::Value>);
71 static MessageLevel consoleAPITypeToMessageLevel( 71 static MessageLevel v8MessageLevelToMessageLevel(
72 v8_inspector::V8ConsoleAPIType); 72 v8::Isolate::MessageErrorLevel);
73 73
74 v8::Isolate* m_isolate; 74 v8::Isolate* m_isolate;
75 75
76 private: 76 private:
77 // V8InspectorClient implementation. 77 // V8InspectorClient implementation.
78 void beginUserGesture() override; 78 void beginUserGesture() override;
79 void endUserGesture() override; 79 void endUserGesture() override;
80 std::unique_ptr<v8_inspector::StringBuffer> valueSubtype( 80 std::unique_ptr<v8_inspector::StringBuffer> valueSubtype(
81 v8::Local<v8::Value>) override; 81 v8::Local<v8::Value>) override;
82 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; 82 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override;
(...skipping 23 matching lines...) Expand all
106 std::unique_ptr<v8::TracingCpuProfiler> m_v8TracingCpuProfiler; 106 std::unique_ptr<v8::TracingCpuProfiler> m_v8TracingCpuProfiler;
107 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers; 107 Vector<std::unique_ptr<Timer<ThreadDebugger>>> m_timers;
108 Vector<v8_inspector::V8InspectorClient::TimerCallback> m_timerCallbacks; 108 Vector<v8_inspector::V8InspectorClient::TimerCallback> m_timerCallbacks;
109 Vector<void*> m_timerData; 109 Vector<void*> m_timerData;
110 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator; 110 std::unique_ptr<UserGestureIndicator> m_userGestureIndicator;
111 }; 111 };
112 112
113 } // namespace blink 113 } // namespace blink
114 114
115 #endif // ThreadDebugger_h 115 #endif // ThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698