| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; | 120 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; |
| 121 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; | 121 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; |
| 122 virtual void quitMessageLoopOnPause() = 0; | 122 virtual void quitMessageLoopOnPause() = 0; |
| 123 | 123 |
| 124 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 124 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
| 125 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints); | 125 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints); |
| 126 | 126 |
| 127 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); | 127 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); |
| 128 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); | 128 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); |
| 129 | 129 |
| 130 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob
ject> sourceObject); | 130 void dispatchDidParseSource(ScriptDebugListener*, v8::Handle<v8::Object> sou
rceObject, CompileResult); |
| 131 | 131 |
| 132 void ensureDebuggerScriptCompiled(); | 132 void ensureDebuggerScriptCompiled(); |
| 133 void discardDebuggerScript(); | 133 void discardDebuggerScript(); |
| 134 | 134 |
| 135 PauseOnExceptionsState m_pauseOnExceptionsState; | 135 PauseOnExceptionsState m_pauseOnExceptionsState; |
| 136 ScopedPersistent<v8::Object> m_debuggerScript; | 136 ScopedPersistent<v8::Object> m_debuggerScript; |
| 137 v8::Local<v8::Object> m_executionState; | 137 v8::Local<v8::Object> m_executionState; |
| 138 RefPtr<ScriptState> m_pausedScriptState; | 138 RefPtr<ScriptState> m_pausedScriptState; |
| 139 bool m_breakpointsActivated; | 139 bool m_breakpointsActivated; |
| 140 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; | 140 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 154 | 154 |
| 155 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); | 155 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); |
| 156 | 156 |
| 157 bool m_runningNestedMessageLoop; | 157 bool m_runningNestedMessageLoop; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace WebCore | 160 } // namespace WebCore |
| 161 | 161 |
| 162 | 162 |
| 163 #endif // ScriptDebugServer_h | 163 #endif // ScriptDebugServer_h |
| OLD | NEW |