| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 virtual void setPauseOnExceptionsState(ScriptDebugServer::PauseOnExceptionsS
tate); | 183 virtual void setPauseOnExceptionsState(ScriptDebugServer::PauseOnExceptionsS
tate); |
| 184 | 184 |
| 185 virtual void setPauseOnNextStatement(bool); | 185 virtual void setPauseOnNextStatement(bool); |
| 186 virtual bool canBreakProgram(); | 186 virtual bool canBreakProgram(); |
| 187 virtual void breakProgram(); | 187 virtual void breakProgram(); |
| 188 virtual void continueProgram(); | 188 virtual void continueProgram(); |
| 189 virtual void stepIntoStatement(); | 189 virtual void stepIntoStatement(); |
| 190 virtual void stepOverStatement(); | 190 virtual void stepOverStatement(); |
| 191 virtual void stepOutOfFunction(); | 191 virtual void stepOutOfFunction(); |
| 192 | 192 |
| 193 virtual bool setScriptSource(const String& sourceID, const String& newConten
t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr
or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result); | 193 virtual bool setScriptSource(const String& sourceID, const String& newConten
t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr
or>&, StackTraces* newCallFrames, RefPtr<JSONObject>* result); |
| 194 virtual ScriptCallFrame topCallFrameNoScopes(); | 194 virtual ScriptCallFrame topCallFrameNoScopes(); |
| 195 virtual int frameCount(); | 195 virtual int frameCount(); |
| 196 virtual StackTrace currentCallFrames(); | 196 virtual StackTraces currentCallFrames(); |
| 197 virtual StackTrace currentCallFramesForAsyncStack(); | 197 virtual StackTraces currentCallFramesForAsyncStack(); |
| 198 | 198 |
| 199 virtual bool isPaused(); | 199 virtual bool isPaused(); |
| 200 virtual bool runningNestedMessageLoop() { return m_runningNestedMessageLoop;
} | 200 virtual bool runningNestedMessageLoop() { return m_runningNestedMessageLoop;
} |
| 201 | 201 |
| 202 virtual void clearCompiledScripts(); | 202 virtual void clearCompiledScripts(); |
| 203 virtual void setPreprocessorSource(const String&); | 203 virtual void setPreprocessorSource(const String&); |
| 204 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); | 204 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); |
| 205 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); | 205 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); |
| 206 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); | 206 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); |
| 207 virtual bool canPreprocess(LocalFrame*); | 207 virtual bool canPreprocess(LocalFrame*); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 void cancelDebugBreak(); | 242 void cancelDebugBreak(); |
| 243 Page* inferPage(Dart_Isolate); | 243 Page* inferPage(Dart_Isolate); |
| 244 | 244 |
| 245 Vector<Dart_Isolate> isolates(); | 245 Vector<Dart_Isolate> isolates(); |
| 246 Vector<DartPageDebug*> pages(); | 246 Vector<DartPageDebug*> pages(); |
| 247 | 247 |
| 248 ScriptDebugServer::PauseOnExceptionsState m_pauseOnExceptionState; | 248 ScriptDebugServer::PauseOnExceptionsState m_pauseOnExceptionState; |
| 249 bool m_breakpointsActivated; | 249 bool m_breakpointsActivated; |
| 250 bool m_runningNestedMessageLoop; | 250 bool m_runningNestedMessageLoop; |
| 251 Dart_StackTrace m_executionState; | 251 Dart_StackTrace m_executionState; |
| 252 bool m_isPaused; |
| 252 Dart_Isolate m_pausedIsolate; | 253 Dart_Isolate m_pausedIsolate; |
| 253 Page* m_pausedPage; | 254 Page* m_pausedPage; |
| 254 HashSet<Dart_Isolate> m_interruptCalled; | 255 HashSet<Dart_Isolate> m_interruptCalled; |
| 255 HashSet<Dart_Isolate> m_interruptCancelled; | 256 HashSet<Dart_Isolate> m_interruptCancelled; |
| 256 | 257 |
| 257 typedef HashMap<int, DartPageDebug*> DebugDataMap; | 258 typedef HashMap<int, DartPageDebug*> DebugDataMap; |
| 258 DebugDataMap m_pageIdToDebugDataMap; | 259 DebugDataMap m_pageIdToDebugDataMap; |
| 259 typedef HashMap<Page*, int> PageToIdMap; | 260 typedef HashMap<Page*, int> PageToIdMap; |
| 260 PageToIdMap m_pageToIdMap; | 261 PageToIdMap m_pageToIdMap; |
| 261 | 262 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 283 virtual void setPauseOnExceptionsState(ScriptDebugServer::PauseOnExceptionsS
tate); | 284 virtual void setPauseOnExceptionsState(ScriptDebugServer::PauseOnExceptionsS
tate); |
| 284 | 285 |
| 285 virtual void setPauseOnNextStatement(bool); | 286 virtual void setPauseOnNextStatement(bool); |
| 286 virtual bool canBreakProgram(); | 287 virtual bool canBreakProgram(); |
| 287 virtual void breakProgram(); | 288 virtual void breakProgram(); |
| 288 virtual void continueProgram(); | 289 virtual void continueProgram(); |
| 289 virtual void stepIntoStatement(); | 290 virtual void stepIntoStatement(); |
| 290 virtual void stepOverStatement(); | 291 virtual void stepOverStatement(); |
| 291 virtual void stepOutOfFunction(); | 292 virtual void stepOutOfFunction(); |
| 292 | 293 |
| 293 virtual bool setScriptSource(const String& sourceID, const String& newConten
t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr
or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result); | 294 virtual bool setScriptSource(const String& sourceID, const String& newConten
t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr
or>&, StackTraces* newCallFrames, RefPtr<JSONObject>* result); |
| 294 | 295 |
| 295 virtual ScriptCallFrame topCallFrameNoScopes(); | 296 virtual ScriptCallFrame topCallFrameNoScopes(); |
| 296 virtual int frameCount(); | 297 virtual int frameCount(); |
| 297 virtual StackTrace currentCallFrames(); | 298 virtual StackTraces currentCallFrames(); |
| 298 virtual StackTrace currentCallFramesForAsyncStack(); | 299 virtual StackTraces currentCallFramesForAsyncStack(); |
| 299 | 300 |
| 300 virtual bool isPaused(); | 301 virtual bool isPaused(); |
| 301 virtual bool runningNestedMessageLoop(); | 302 virtual bool runningNestedMessageLoop(); |
| 302 | 303 |
| 303 virtual void clearCompiledScripts(); | 304 virtual void clearCompiledScripts(); |
| 304 virtual void setPreprocessorSource(const String&); | 305 virtual void setPreprocessorSource(const String&); |
| 305 | 306 |
| 306 // FIXMEDART: this signature is v8 specific. | 307 // FIXMEDART: this signature is v8 specific. |
| 307 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&); | 308 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&); |
| 308 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); | 309 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 321 | 322 |
| 322 bool isDartSourceID(const String& sourceID); | 323 bool isDartSourceID(const String& sourceID); |
| 323 bool isDartBreakpointId(const String& breakpointId); | 324 bool isDartBreakpointId(const String& breakpointId); |
| 324 DartScriptDebugServer* m_dart; | 325 DartScriptDebugServer* m_dart; |
| 325 PageScriptDebugServer* m_v8; | 326 PageScriptDebugServer* m_v8; |
| 326 }; | 327 }; |
| 327 | 328 |
| 328 } | 329 } |
| 329 | 330 |
| 330 #endif // DartScriptDebugServer_h | 331 #endif // DartScriptDebugServer_h |
| OLD | NEW |