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 14 matching lines...) Expand all Loading... |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef ScriptDebugListener_h | 30 #ifndef ScriptDebugListener_h |
31 #define ScriptDebugListener_h | 31 #define ScriptDebugListener_h |
32 | 32 |
33 | 33 |
34 #include "bindings/v8/ScriptState.h" | 34 #include "bindings/v8/ScriptState.h" |
35 #include <wtf/Forward.h> | 35 #include "wtf/Forward.h" |
36 #include <wtf/text/WTFString.h> | 36 #include "wtf/Vector.h" |
| 37 #include "wtf/text/WTFString.h" |
37 | 38 |
38 namespace WebCore { | 39 namespace WebCore { |
39 class ScriptValue; | 40 class ScriptValue; |
40 | 41 |
41 class ScriptDebugListener { | 42 class ScriptDebugListener { |
42 public: | 43 public: |
43 class Script { | 44 class Script { |
44 public: | 45 public: |
45 Script() | 46 Script() |
46 : startLine(0) | 47 : startLine(0) |
(...skipping 13 matching lines...) Expand all Loading... |
60 int endColumn; | 61 int endColumn; |
61 bool isContentScript; | 62 bool isContentScript; |
62 | 63 |
63 void reportMemoryUsage(MemoryObjectInfo*) const; | 64 void reportMemoryUsage(MemoryObjectInfo*) const; |
64 }; | 65 }; |
65 | 66 |
66 virtual ~ScriptDebugListener() { } | 67 virtual ~ScriptDebugListener() { } |
67 | 68 |
68 virtual void didParseSource(const String& scriptId, const Script&) = 0; | 69 virtual void didParseSource(const String& scriptId, const Script&) = 0; |
69 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage) = 0; | 70 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage) = 0; |
70 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr
iptValue& exception) = 0; | 71 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr
iptValue& exception, const Vector<String>& hitBreakpoints) = 0; |
71 virtual void didContinue() = 0; | 72 virtual void didContinue() = 0; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace WebCore | 75 } // namespace WebCore |
75 | 76 |
76 | 77 |
77 #endif // ScriptDebugListener_h | 78 #endif // ScriptDebugListener_h |
OLD | NEW |