| 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 V8InspectorClient_h | 5 #ifndef V8InspectorClient_h |
| 6 #define V8InspectorClient_h | 6 #define V8InspectorClient_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/InspectorProtocol.h" | 8 #include "platform/inspector_protocol/InspectorProtocol.h" |
| 9 | 9 |
| 10 #include <v8.h> | 10 #include <v8.h> |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class V8StackTrace; | 14 class V8StackTrace; |
| 15 | 15 |
| 16 enum class V8ConsoleAPIType { kClear, kDebug, kLog, kInfo, kWarning, kError }; | 16 enum class V8ConsoleAPIType { kClear, kDebug, kLog, kInfo, kWarning, kError }; |
| 17 | 17 |
| 18 class PLATFORM_EXPORT V8InspectorClient { | 18 class PLATFORM_EXPORT V8InspectorClient { |
| 19 public: | 19 public: |
| 20 virtual ~V8InspectorClient() { } | 20 virtual ~V8InspectorClient() { } |
| 21 | 21 |
| 22 virtual void runMessageLoopOnPause(int contextGroupId) { } | 22 virtual void runMessageLoopOnPause(int contextGroupId) { } |
| 23 virtual void quitMessageLoopOnPause() { } | 23 virtual void quitMessageLoopOnPause() { } |
| 24 virtual void runIfWaitingForDebugger(int contextGroupId) { } | 24 virtual void resumeStartup(int contextGroupId) { } |
| 25 | 25 |
| 26 virtual void muteMetrics(int contextGroupId) { } | 26 virtual void muteMetrics(int contextGroupId) { } |
| 27 virtual void unmuteMetrics(int contextGroupId) { } | 27 virtual void unmuteMetrics(int contextGroupId) { } |
| 28 | 28 |
| 29 virtual void beginUserGesture() { } | 29 virtual void beginUserGesture() { } |
| 30 virtual void endUserGesture() { } | 30 virtual void endUserGesture() { } |
| 31 | 31 |
| 32 virtual String16 valueSubtype(v8::Local<v8::Value>) { return String16(); } | 32 virtual String16 valueSubtype(v8::Local<v8::Value>) { return String16(); } |
| 33 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) { return fals
e; } | 33 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) { return fals
e; } |
| 34 virtual bool isInspectableHeapObject(v8::Local<v8::Object>) { return true; } | 34 virtual bool isInspectableHeapObject(v8::Local<v8::Object>) { return true; } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 50 virtual void cancelTimer(void* data) { } | 50 virtual void cancelTimer(void* data) { } |
| 51 | 51 |
| 52 // TODO(dgozman): this was added to support service worker shadow page. We s
hould not connect at all. | 52 // TODO(dgozman): this was added to support service worker shadow page. We s
hould not connect at all. |
| 53 virtual bool canExecuteScripts(int contextGroupId) { return true; } | 53 virtual bool canExecuteScripts(int contextGroupId) { return true; } |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| 57 | 57 |
| 58 | 58 |
| 59 #endif // V8InspectorClient_h | 59 #endif // V8InspectorClient_h |
| OLD | NEW |