OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 V8DebuggerClient_h | 5 #ifndef V8InspectorClient_h |
6 #define V8DebuggerClient_h | 6 #define V8InspectorClient_h |
7 | 7 |
8 #include "platform/inspector_protocol/Platform.h" | 8 #include "platform/inspector_protocol/Platform.h" |
9 #include "platform/v8_inspector/public/V8ContextInfo.h" | 9 #include "platform/v8_inspector/public/V8ContextInfo.h" |
10 | 10 |
11 #include <v8.h> | 11 #include <v8.h> |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class V8StackTrace; | 15 class V8StackTrace; |
16 | 16 |
17 enum class V8ConsoleAPIType { kClear, kDebug, kLog, kInfo, kWarning, kError }; | 17 enum class V8ConsoleAPIType { kClear, kDebug, kLog, kInfo, kWarning, kError }; |
18 | 18 |
19 class PLATFORM_EXPORT V8DebuggerClient { | 19 class PLATFORM_EXPORT V8InspectorClient { |
20 public: | 20 public: |
21 virtual ~V8DebuggerClient() { } | 21 virtual ~V8InspectorClient() { } |
22 virtual void runMessageLoopOnPause(int contextGroupId) = 0; | 22 virtual void runMessageLoopOnPause(int contextGroupId) = 0; |
23 virtual void quitMessageLoopOnPause() = 0; | 23 virtual void quitMessageLoopOnPause() = 0; |
24 virtual void muteWarningsAndDeprecations(int contextGroupId) = 0; | 24 virtual void muteWarningsAndDeprecations(int contextGroupId) = 0; |
25 virtual void unmuteWarningsAndDeprecations(int contextGroupId) = 0; | 25 virtual void unmuteWarningsAndDeprecations(int contextGroupId) = 0; |
26 virtual void beginUserGesture() = 0; | 26 virtual void beginUserGesture() = 0; |
27 virtual void endUserGesture() = 0; | 27 virtual void endUserGesture() = 0; |
28 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0; | 28 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0; |
29 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0; | 29 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0; |
30 virtual bool isExecutionAllowed() = 0; | 30 virtual bool isExecutionAllowed() = 0; |
31 virtual double currentTimeMS() = 0; | 31 virtual double currentTimeMS() = 0; |
(...skipping 14 matching lines...) Expand all Loading... |
46 virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Con
text>) = 0; | 46 virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Con
text>) = 0; |
47 | 47 |
48 typedef void (*TimerCallback)(void*); | 48 typedef void (*TimerCallback)(void*); |
49 virtual void startRepeatingTimer(double, TimerCallback, void* data) = 0; | 49 virtual void startRepeatingTimer(double, TimerCallback, void* data) = 0; |
50 virtual void cancelTimer(void* data) = 0; | 50 virtual void cancelTimer(void* data) = 0; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace blink | 53 } // namespace blink |
54 | 54 |
55 | 55 |
56 #endif // V8DebuggerClient_h | 56 #endif // V8InspectorClient_h |
OLD | NEW |