OLD | NEW |
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 "platform/Timer.h" | 9 #include "platform/Timer.h" |
10 #include "platform/UserGestureIndicator.h" | 10 #include "platform/UserGestureIndicator.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // V8DebuggerClient implementation. | 34 // V8DebuggerClient implementation. |
35 void beginUserGesture() override; | 35 void beginUserGesture() override; |
36 void endUserGesture() override; | 36 void endUserGesture() override; |
37 void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoList&) override
; | 37 void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoList&) override
; |
38 String16 valueSubtype(v8::Local<v8::Value>) override; | 38 String16 valueSubtype(v8::Local<v8::Value>) override; |
39 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; | 39 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; |
40 bool isExecutionAllowed() override; | 40 bool isExecutionAllowed() override; |
41 double currentTimeMS() override; | 41 double currentTimeMS() override; |
42 bool isInspectableHeapObject(v8::Local<v8::Object>) override; | 42 bool isInspectableHeapObject(v8::Local<v8::Object>) override; |
43 void reportMessageToConsole(v8::Local<v8::Context>, MessageType, MessageLeve
l, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* arguments
, unsigned skipArgumentCount, int maxStackSize) final; | 43 void reportMessageToConsole(v8::Local<v8::Context>, MessageType, MessageLeve
l, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* arguments
, unsigned skipArgumentCount) final; |
44 void consoleTime(const String16& title) override; | 44 void consoleTime(const String16& title) override; |
45 void consoleTimeEnd(const String16& title) override; | 45 void consoleTimeEnd(const String16& title) override; |
46 void consoleTimeStamp(const String16& title) override; | 46 void consoleTimeStamp(const String16& title) override; |
47 void startRepeatingTimer(double, V8DebuggerClient::TimerCallback, void* data
) override; | 47 void startRepeatingTimer(double, V8DebuggerClient::TimerCallback, void* data
) override; |
48 void cancelTimer(void* data) override; | 48 void cancelTimer(void* data) override; |
49 | 49 |
50 V8Debugger* debugger() const { return m_debugger.get(); } | 50 V8Debugger* debugger() const { return m_debugger.get(); } |
51 virtual bool isWorker() { return true; } | 51 virtual bool isWorker() { return true; } |
52 protected: | 52 protected: |
53 virtual void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*)
= 0; | 53 virtual void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*)
= 0; |
54 void onTimer(Timer<ThreadDebugger>*); | 54 void onTimer(Timer<ThreadDebugger>*); |
55 | 55 |
56 v8::Isolate* m_isolate; | 56 v8::Isolate* m_isolate; |
57 OwnPtr<V8Debugger> m_debugger; | 57 OwnPtr<V8Debugger> m_debugger; |
58 Vector<OwnPtr<Timer<ThreadDebugger>>> m_timers; | 58 Vector<OwnPtr<Timer<ThreadDebugger>>> m_timers; |
59 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; | 59 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; |
60 Vector<void*> m_timerData; | 60 Vector<void*> m_timerData; |
61 OwnPtr<UserGestureIndicator> m_userGestureIndicator; | 61 OwnPtr<UserGestureIndicator> m_userGestureIndicator; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
65 | 65 |
66 #endif // ThreadDebugger_h | 66 #endif // ThreadDebugger_h |
OLD | NEW |