| 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 V8DebuggerClient_h |
| 6 #define V8DebuggerClient_h | 6 #define V8DebuggerClient_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/v8_inspector/public/V8ContextInfo.h" | 9 #include "platform/v8_inspector/public/V8ContextInfo.h" |
| 10 #include "platform/v8_inspector/public/V8EventListenerInfo.h" | 10 #include "platform/v8_inspector/public/V8EventListenerInfo.h" |
| 11 | 11 |
| 12 #include <v8.h> | 12 #include <v8.h> |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class PLATFORM_EXPORT V8DebuggerClient { | 16 class PLATFORM_EXPORT V8DebuggerClient { |
| 17 public: | 17 public: |
| 18 virtual ~V8DebuggerClient() { } | 18 virtual ~V8DebuggerClient() { } |
| 19 virtual void runMessageLoopOnPause(int contextGroupId) = 0; | 19 virtual void runMessageLoopOnPause(int contextGroupId) = 0; |
| 20 virtual void quitMessageLoopOnPause() = 0; | 20 virtual void quitMessageLoopOnPause() = 0; |
| 21 virtual void muteWarningsAndDeprecations() = 0; | 21 virtual void muteWarningsAndDeprecations() = 0; |
| 22 virtual void unmuteWarningsAndDeprecations() = 0; | 22 virtual void unmuteWarningsAndDeprecations() = 0; |
| 23 virtual void muteConsole() = 0; | 23 virtual void muteConsole() = 0; |
| 24 virtual void unmuteConsole() = 0; | 24 virtual void unmuteConsole() = 0; |
| 25 virtual void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoList&)
= 0; | 25 virtual void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoList&)
= 0; |
| 26 virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling,
v8::Local<v8::Context> target) = 0; | 26 virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling,
v8::Local<v8::Context> target) = 0; |
| 27 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0; | 27 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0; |
| 28 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0; | 28 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0; |
| 29 virtual bool hasRecursionLevel() = 0; | |
| 30 virtual bool isExecutionAllowed() = 0; | 29 virtual bool isExecutionAllowed() = 0; |
| 31 virtual double currentTimeMS() = 0; | 30 virtual double currentTimeMS() = 0; |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 } // namespace blink | 33 } // namespace blink |
| 35 | 34 |
| 36 | 35 |
| 37 #endif // V8DebuggerClient_h | 36 #endif // V8DebuggerClient_h |
| OLD | NEW |