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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 int endColumn; | 62 int endColumn; |
63 bool isContentScript; | 63 bool isContentScript; |
64 }; | 64 }; |
65 | 65 |
66 virtual ~ScriptDebugListener() { } | 66 virtual ~ScriptDebugListener() { } |
67 | 67 |
68 virtual void didParseSource(const String& scriptId, const Script&) = 0; | 68 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; | 69 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, const Vector<String>& hitBreakpoints) = 0; | 70 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr
iptValue& exception, const Vector<String>& hitBreakpoints) = 0; |
71 virtual void didContinue() = 0; | 71 virtual void didContinue() = 0; |
| 72 virtual void didRequestAsyncCallFrames(ScriptValue callFrames) = 0; |
72 | 73 |
73 enum SkipPauseRequest { | 74 enum SkipPauseRequest { |
74 NoSkip, | 75 NoSkip, |
75 Continue, | 76 Continue, |
76 StepInto, | 77 StepInto, |
77 StepOut | 78 StepOut |
78 }; | 79 }; |
79 | 80 |
80 virtual SkipPauseRequest shouldSkipExceptionPause(RefPtr<JavaScriptCallFrame
>& topFrame) = 0; | 81 virtual SkipPauseRequest shouldSkipExceptionPause(RefPtr<JavaScriptCallFrame
>& topFrame) = 0; |
81 virtual SkipPauseRequest shouldSkipBreakpointPause(RefPtr<JavaScriptCallFram
e>& topFrame) = 0; | 82 virtual SkipPauseRequest shouldSkipBreakpointPause(RefPtr<JavaScriptCallFram
e>& topFrame) = 0; |
82 virtual SkipPauseRequest shouldSkipStepPause(RefPtr<JavaScriptCallFrame>& to
pFrame) = 0; | 83 virtual SkipPauseRequest shouldSkipStepPause(RefPtr<JavaScriptCallFrame>& to
pFrame) = 0; |
83 }; | 84 }; |
84 | 85 |
85 } // namespace WebCore | 86 } // namespace WebCore |
86 | 87 |
87 | 88 |
88 #endif // ScriptDebugListener_h | 89 #endif // ScriptDebugListener_h |
OLD | NEW |