| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 protected: | 108 protected: |
| 109 explicit ScriptDebugServer(v8::Isolate*); | 109 explicit ScriptDebugServer(v8::Isolate*); |
| 110 virtual ~ScriptDebugServer(); | 110 virtual ~ScriptDebugServer(); |
| 111 | 111 |
| 112 ScriptValue currentCallFrame(); | 112 ScriptValue currentCallFrame(); |
| 113 | 113 |
| 114 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; | 114 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; |
| 115 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; | 115 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; |
| 116 virtual void quitMessageLoopOnPause() = 0; | 116 virtual void quitMessageLoopOnPause() = 0; |
| 117 | 117 |
| 118 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&
args); | 118 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
| 119 void handleProgramBreak(v8::Handle<v8::Object> executionState, v8::Handle<v8
::Value> exception, v8::Handle<v8::Array> hitBreakpoints); | 119 void handleProgramBreak(v8::Handle<v8::Object> executionState, v8::Handle<v8
::Value> exception, v8::Handle<v8::Array> hitBreakpoints); |
| 120 void handleProgramBreak(const v8::Debug::EventDetails&, v8::Handle<v8::Value
> exception, v8::Handle<v8::Array> hitBreakpointNumbers); | 120 void handleProgramBreak(const v8::Debug::EventDetails&, v8::Handle<v8::Value
> exception, v8::Handle<v8::Array> hitBreakpointNumbers); |
| 121 | 121 |
| 122 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); | 122 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails
); |
| 123 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); | 123 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); |
| 124 | 124 |
| 125 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob
ject> sourceObject); | 125 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob
ject> sourceObject); |
| 126 | 126 |
| 127 void ensureDebuggerScriptCompiled(); | 127 void ensureDebuggerScriptCompiled(); |
| 128 | 128 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 140 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut
ionState, int maximumLimit); | 140 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut
ionState, int maximumLimit); |
| 141 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand
le<v8::Object> executionState); | 141 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand
le<v8::Object> executionState); |
| 142 | 142 |
| 143 bool m_runningNestedMessageLoop; | 143 bool m_runningNestedMessageLoop; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace WebCore | 146 } // namespace WebCore |
| 147 | 147 |
| 148 | 148 |
| 149 #endif // ScriptDebugServer_h | 149 #endif // ScriptDebugServer_h |
| OLD | NEW |