| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #ifndef ScriptDebugListener_h | 30 #ifndef ScriptDebugListener_h |
| 31 #define ScriptDebugListener_h | 31 #define ScriptDebugListener_h |
| 32 | 32 |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptState.h" | 34 #include "bindings/core/v8/ScriptState.h" |
| 35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
| 36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 |
| 41 class ExecutionContext; |
| 40 class ScriptValue; | 42 class ScriptValue; |
| 41 | 43 |
| 42 class ScriptDebugListener { | 44 class ScriptDebugListener { |
| 43 public: | 45 public: |
| 44 class Script { | 46 class Script { |
| 45 public: | 47 public: |
| 46 Script() | 48 Script() |
| 47 : startLine(0) | 49 : startLine(0) |
| 48 , startColumn(0) | 50 , startColumn(0) |
| 49 , endLine(0) | 51 , endLine(0) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 68 StepInto, | 70 StepInto, |
| 69 StepOut | 71 StepOut |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 virtual ~ScriptDebugListener() { } | 74 virtual ~ScriptDebugListener() { } |
| 73 | 75 |
| 74 virtual void didParseSource(const String& scriptId, const Script&) = 0; | 76 virtual void didParseSource(const String& scriptId, const Script&) = 0; |
| 75 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage) = 0; | 77 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage) = 0; |
| 76 virtual SkipPauseRequest didPause(ScriptState*, const ScriptValue& callFrame
s, const ScriptValue& exception, const Vector<String>& hitBreakpoints) = 0; | 78 virtual SkipPauseRequest didPause(ScriptState*, const ScriptValue& callFrame
s, const ScriptValue& exception, const Vector<String>& hitBreakpoints) = 0; |
| 77 virtual void didContinue() = 0; | 79 virtual void didContinue() = 0; |
| 80 virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eve
ntType, const String& eventName, int id) = 0; |
| 78 }; | 81 }; |
| 79 | 82 |
| 80 } // namespace WebCore | 83 } // namespace WebCore |
| 81 | 84 |
| 82 | 85 |
| 83 #endif // ScriptDebugListener_h | 86 #endif // ScriptDebugListener_h |
| OLD | NEW |