| 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 16 matching lines...) Expand all Loading... |
| 27 ~ThreadDebugger() override; | 27 ~ThreadDebugger() override; |
| 28 | 28 |
| 29 static void willExecuteScript(v8::Isolate*, int scriptId); | 29 static void willExecuteScript(v8::Isolate*, int scriptId); |
| 30 static void didExecuteScript(v8::Isolate*); | 30 static void didExecuteScript(v8::Isolate*); |
| 31 static void idleStarted(v8::Isolate*); | 31 static void idleStarted(v8::Isolate*); |
| 32 static void idleFinished(v8::Isolate*); | 32 static void idleFinished(v8::Isolate*); |
| 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
; | |
| 38 String16 valueSubtype(v8::Local<v8::Value>) override; | 37 String16 valueSubtype(v8::Local<v8::Value>) override; |
| 39 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; | 38 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; |
| 40 bool isExecutionAllowed() override; | 39 bool isExecutionAllowed() override; |
| 41 double currentTimeMS() override; | 40 double currentTimeMS() override; |
| 42 bool isInspectableHeapObject(v8::Local<v8::Object>) override; | 41 bool isInspectableHeapObject(v8::Local<v8::Object>) override; |
| 43 static bool isCommandLineAPIMethod(const String& name); | 42 static bool isCommandLineAPIMethod(const String& name); |
| 44 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O
bject>) override; | 43 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O
bject>) override; |
| 45 void reportMessageToConsole(v8::Local<v8::Context>, MessageType, MessageLeve
l, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* arguments
, unsigned skipArgumentCount) final; | 44 void reportMessageToConsole(v8::Local<v8::Context>, MessageType, MessageLeve
l, const String16& message, const v8::FunctionCallbackInfo<v8::Value>* arguments
, unsigned skipArgumentCount) final; |
| 46 void consoleTime(const String16& title) override; | 45 void consoleTime(const String16& title) override; |
| 47 void consoleTimeEnd(const String16& title) override; | 46 void consoleTimeEnd(const String16& title) override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 60 OwnPtr<V8Debugger> m_debugger; | 59 OwnPtr<V8Debugger> m_debugger; |
| 61 | 60 |
| 62 private: | 61 private: |
| 63 v8::Local<v8::Function> eventLogFunction(); | 62 v8::Local<v8::Function> eventLogFunction(); |
| 64 | 63 |
| 65 static void setMonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Valu
e>&, bool enabled); | 64 static void setMonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Valu
e>&, bool enabled); |
| 66 static void monitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value>&
); | 65 static void monitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value>&
); |
| 67 static void unmonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value
>&); | 66 static void unmonitorEventsCallback(const v8::FunctionCallbackInfo<v8::Value
>&); |
| 68 static void logCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 67 static void logCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 69 | 68 |
| 69 static void getEventListenersCallback(const v8::FunctionCallbackInfo<v8::Val
ue>&); |
| 70 |
| 70 Vector<OwnPtr<Timer<ThreadDebugger>>> m_timers; | 71 Vector<OwnPtr<Timer<ThreadDebugger>>> m_timers; |
| 71 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; | 72 Vector<V8DebuggerClient::TimerCallback> m_timerCallbacks; |
| 72 Vector<void*> m_timerData; | 73 Vector<void*> m_timerData; |
| 73 OwnPtr<UserGestureIndicator> m_userGestureIndicator; | 74 OwnPtr<UserGestureIndicator> m_userGestureIndicator; |
| 74 v8::Global<v8::Function> m_eventLogFunction; | 75 v8::Global<v8::Function> m_eventLogFunction; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace blink | 78 } // namespace blink |
| 78 | 79 |
| 79 #endif // ThreadDebugger_h | 80 #endif // ThreadDebugger_h |
| OLD | NEW |