OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010-2011 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual void enable(ErrorString*); | 90 virtual void enable(ErrorString*); |
91 virtual void disable(ErrorString*); | 91 virtual void disable(ErrorString*); |
92 virtual void setBreakpointsActive(ErrorString*, bool active); | 92 virtual void setBreakpointsActive(ErrorString*, bool active); |
93 virtual void setSkipAllPauses(ErrorString*, bool skipped, const bool* untilR
eload); | 93 virtual void setSkipAllPauses(ErrorString*, bool skipped, const bool* untilR
eload); |
94 | 94 |
95 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String*
optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, co
nst String* optionalCondition, const bool* isAntiBreakpoint, TypeBuilder::Debugg
er::BreakpointId*, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >&
locations); | 95 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String*
optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, co
nst String* optionalCondition, const bool* isAntiBreakpoint, TypeBuilder::Debugg
er::BreakpointId*, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >&
locations); |
96 virtual void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& location,
const String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<T
ypeBuilder::Debugger::Location>& actualLocation); | 96 virtual void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& location,
const String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<T
ypeBuilder::Debugger::Location>& actualLocation); |
97 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); | 97 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); |
98 virtual void continueToLocation(ErrorString*, const RefPtr<JSONObject>& loca
tion, const bool* interstateLocationOpt); | 98 virtual void continueToLocation(ErrorString*, const RefPtr<JSONObject>& loca
tion, const bool* interstateLocationOpt); |
99 virtual void getStepInPositions(ErrorString*, const String& callFrameId, Ref
Ptr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >& positions); | 99 virtual void getStepInPositions(ErrorString*, const String& callFrameId, Ref
Ptr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >& positions); |
100 virtual void getBacktrace(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilde
r::Debugger::CallFrame> >&); | 100 virtual void getBacktrace(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilde
r::Debugger::CallFrame> >&, RefPtr<TypeBuilder::Debugger::StackTrace>&); |
101 | 101 |
102 virtual void searchInContent(ErrorString*, const String& scriptId, const Str
ing& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefP
tr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); | 102 virtual void searchInContent(ErrorString*, const String& scriptId, const Str
ing& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefP
tr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); |
103 virtual void setScriptSource(ErrorString*, RefPtr<TypeBuilder::Debugger::Set
ScriptSourceError>&, const String& scriptId, const String& newContent, const boo
l* preview, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCa
llFrames, RefPtr<JSONObject>& result); | 103 virtual void setScriptSource(ErrorString*, RefPtr<TypeBuilder::Debugger::Set
ScriptSourceError>&, const String& scriptId, const String& newContent, const boo
l* preview, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCa
llFrames, RefPtr<JSONObject>& result, RefPtr<TypeBuilder::Debugger::StackTrace>&
asyncStackTrace); |
104 virtual void restartFrame(ErrorString*, const String& callFrameId, RefPtr<Ty
peBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCallFrames, RefPtr<JSON
Object>& result); | 104 virtual void restartFrame(ErrorString*, const String& callFrameId, RefPtr<Ty
peBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCallFrames, RefPtr<JSON
Object>& result, RefPtr<TypeBuilder::Debugger::StackTrace>& asyncStackTrace); |
105 virtual void getScriptSource(ErrorString*, const String& scriptId, String* s
criptSource); | 105 virtual void getScriptSource(ErrorString*, const String& scriptId, String* s
criptSource); |
106 virtual void getFunctionDetails(ErrorString*, const String& functionId, RefP
tr<TypeBuilder::Debugger::FunctionDetails>&); | 106 virtual void getFunctionDetails(ErrorString*, const String& functionId, RefP
tr<TypeBuilder::Debugger::FunctionDetails>&); |
107 virtual void pause(ErrorString*); | 107 virtual void pause(ErrorString*); |
108 virtual void resume(ErrorString*); | 108 virtual void resume(ErrorString*); |
109 virtual void stepOver(ErrorString*, const String* callFrameId); | 109 virtual void stepOver(ErrorString*, const String* callFrameId); |
110 virtual void stepInto(ErrorString*); | 110 virtual void stepInto(ErrorString*); |
111 virtual void stepOut(ErrorString*, const String* callFrameId); | 111 virtual void stepOut(ErrorString*, const String* callFrameId); |
112 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState); | 112 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState); |
113 virtual void evaluateOnCallFrame(ErrorString*, | 113 virtual void evaluateOnCallFrame(ErrorString*, |
114 const String& callFrameId, | 114 const String& callFrameId, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void reset(); | 169 void reset(); |
170 void pageDidCommitLoad(); | 170 void pageDidCommitLoad(); |
171 | 171 |
172 private: | 172 private: |
173 void cancelPauseOnNextStatement(); | 173 void cancelPauseOnNextStatement(); |
174 void addMessageToConsole(MessageSource, MessageType); | 174 void addMessageToConsole(MessageSource, MessageType); |
175 | 175 |
176 bool enabled(); | 176 bool enabled(); |
177 | 177 |
178 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); | 178 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); |
| 179 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); |
179 | 180 |
180 virtual void didParseSource(const String& scriptId, const Script&); | 181 virtual void didParseSource(const String& scriptId, const Script&); |
181 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage); | 182 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage); |
182 | 183 |
183 void setPauseOnExceptionsImpl(ErrorString*, int); | 184 void setPauseOnExceptionsImpl(ErrorString*, int); |
184 | 185 |
185 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; | 186 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; |
186 void removeBreakpoint(const String& breakpointId); | 187 void removeBreakpoint(const String& breakpointId); |
187 void clear(); | 188 void clear(); |
188 bool assertPaused(ErrorString*); | 189 bool assertPaused(ErrorString*); |
(...skipping 24 matching lines...) Expand all Loading... |
213 | 214 |
214 int m_skipStepInCount; | 215 int m_skipStepInCount; |
215 bool m_skipAllPauses; | 216 bool m_skipAllPauses; |
216 OwnPtr<RegularExpression> m_cachedSkipStackRegExp; | 217 OwnPtr<RegularExpression> m_cachedSkipStackRegExp; |
217 }; | 218 }; |
218 | 219 |
219 } // namespace WebCore | 220 } // namespace WebCore |
220 | 221 |
221 | 222 |
222 #endif // !defined(InspectorDebuggerAgent_h) | 223 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |