| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 class Listener { | 162 class Listener { |
| 163 public: | 163 public: |
| 164 virtual ~Listener() { } | 164 virtual ~Listener() { } |
| 165 virtual void debuggerWasEnabled() = 0; | 165 virtual void debuggerWasEnabled() = 0; |
| 166 virtual void debuggerWasDisabled() = 0; | 166 virtual void debuggerWasDisabled() = 0; |
| 167 virtual void stepInto() = 0; | 167 virtual void stepInto() = 0; |
| 168 virtual void didPause() = 0; | 168 virtual void didPause() = 0; |
| 169 }; | 169 }; |
| 170 void setListener(Listener* listener) { m_listener = listener; } | 170 void setListener(Listener* listener) { m_listener = listener; } |
| 171 | 171 |
| 172 bool enabled(); |
| 173 |
| 172 virtual ScriptDebugServer& scriptDebugServer() = 0; | 174 virtual ScriptDebugServer& scriptDebugServer() = 0; |
| 173 | 175 |
| 174 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber,
BreakpointSource, const String& condition = String()); | 176 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber,
BreakpointSource, const String& condition = String()); |
| 175 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb
er, BreakpointSource); | 177 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb
er, BreakpointSource); |
| 176 | 178 |
| 177 protected: | 179 protected: |
| 178 explicit InspectorDebuggerAgent(InjectedScriptManager*); | 180 explicit InspectorDebuggerAgent(InjectedScriptManager*); |
| 179 | 181 |
| 180 virtual void startListeningScriptDebugServer() = 0; | 182 virtual void startListeningScriptDebugServer() = 0; |
| 181 virtual void stopListeningScriptDebugServer() = 0; | 183 virtual void stopListeningScriptDebugServer() = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 192 void pageDidCommitLoad(); | 194 void pageDidCommitLoad(); |
| 193 | 195 |
| 194 private: | 196 private: |
| 195 SkipPauseRequest shouldSkipExceptionPause(); | 197 SkipPauseRequest shouldSkipExceptionPause(); |
| 196 SkipPauseRequest shouldSkipBreakpointPause(); | 198 SkipPauseRequest shouldSkipBreakpointPause(); |
| 197 SkipPauseRequest shouldSkipStepPause(); | 199 SkipPauseRequest shouldSkipStepPause(); |
| 198 | 200 |
| 199 void cancelPauseOnNextStatement(); | 201 void cancelPauseOnNextStatement(); |
| 200 void addMessageToConsole(MessageSource, MessageType); | 202 void addMessageToConsole(MessageSource, MessageType); |
| 201 | 203 |
| 202 bool enabled(); | |
| 203 | |
| 204 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); | 204 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); |
| 205 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); | 205 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); |
| 206 | 206 |
| 207 virtual void didParseSource(const String& scriptId, const Script&) OVERRIDE
FINAL; | 207 virtual void didParseSource(const String& scriptId, const Script&) OVERRIDE
FINAL; |
| 208 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage) OVERRIDE FINAL; | 208 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage) OVERRIDE FINAL; |
| 209 | 209 |
| 210 void setPauseOnExceptionsImpl(ErrorString*, int); | 210 void setPauseOnExceptionsImpl(ErrorString*, int); |
| 211 | 211 |
| 212 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; | 212 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource)
; |
| 213 void removeBreakpoint(const String& breakpointId); | 213 void removeBreakpoint(const String& breakpointId); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 241 int m_skipStepInCount; | 241 int m_skipStepInCount; |
| 242 bool m_skipAllPauses; | 242 bool m_skipAllPauses; |
| 243 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; | 243 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; |
| 244 AsyncCallStackTracker m_asyncCallStackTracker; | 244 AsyncCallStackTracker m_asyncCallStackTracker; |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 } // namespace WebCore | 247 } // namespace WebCore |
| 248 | 248 |
| 249 | 249 |
| 250 #endif // !defined(InspectorDebuggerAgent_h) | 250 #endif // !defined(InspectorDebuggerAgent_h) |
| OLD | NEW |