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-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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 bool canSetScriptSource(); | 84 bool canSetScriptSource(); |
85 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, ScriptValue* newCallFrames, ScriptObject* result); | 85 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, ScriptValue* newCallFrames, ScriptObject* result); |
86 | 86 |
87 bool causesRecompilation() { return true; } | 87 bool causesRecompilation() { return true; } |
88 bool supportsNativeBreakpoints() { return false; } | 88 bool supportsNativeBreakpoints() { return false; } |
89 | 89 |
90 void recompileAllJSFunctionsSoon(); | 90 void recompileAllJSFunctionsSoon(); |
91 virtual void recompileAllJSFunctions(Timer<ScriptDebugServer>* = 0) = 0; | 91 virtual void recompileAllJSFunctions(Timer<ScriptDebugServer>* = 0) = 0; |
92 | 92 |
| 93 bool isPaused() { return m_paused; } |
| 94 |
93 protected: | 95 protected: |
94 typedef HashSet<ScriptDebugListener*> ListenerSet; | 96 typedef HashSet<ScriptDebugListener*> ListenerSet; |
95 typedef void (ScriptDebugServer::*JavaScriptExecutionCallback)(ScriptDebugLi
stener*); | 97 typedef void (ScriptDebugServer::*JavaScriptExecutionCallback)(ScriptDebugLi
stener*); |
96 | 98 |
97 ScriptDebugServer(); | 99 ScriptDebugServer(); |
98 ~ScriptDebugServer(); | 100 ~ScriptDebugServer(); |
99 | 101 |
100 virtual ListenerSet* getListenersForGlobalObject(JSC::JSGlobalObject*) = 0; | 102 virtual ListenerSet* getListenersForGlobalObject(JSC::JSGlobalObject*) = 0; |
101 virtual void didPause(JSC::JSGlobalObject*) = 0; | 103 virtual void didPause(JSC::JSGlobalObject*) = 0; |
102 virtual void didContinue(JSC::JSGlobalObject*) = 0; | 104 virtual void didContinue(JSC::JSGlobalObject*) = 0; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 RefPtr<JavaScriptCallFrame> m_currentCallFrame; | 142 RefPtr<JavaScriptCallFrame> m_currentCallFrame; |
141 SourceIdToBreakpointsMap m_sourceIdToBreakpoints; | 143 SourceIdToBreakpointsMap m_sourceIdToBreakpoints; |
142 Timer<ScriptDebugServer> m_recompileTimer; | 144 Timer<ScriptDebugServer> m_recompileTimer; |
143 }; | 145 }; |
144 | 146 |
145 } // namespace WebCore | 147 } // namespace WebCore |
146 | 148 |
147 #endif // ENABLE(JAVASCRIPT_DEBUGGER) | 149 #endif // ENABLE(JAVASCRIPT_DEBUGGER) |
148 | 150 |
149 #endif // ScriptDebugServer_h | 151 #endif // ScriptDebugServer_h |
OLD | NEW |