OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio
nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa
lue); | 101 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio
nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa
lue); |
102 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc,
v8::Handle<v8::Value> argv[]); | 102 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc,
v8::Handle<v8::Value> argv[]); |
103 | 103 |
104 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber,
int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); | 104 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber,
int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); |
105 virtual void clearCompiledScripts(); | 105 virtual void clearCompiledScripts(); |
106 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); | 106 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); |
107 virtual void setPreprocessorSource(const String&) { } | 107 virtual void setPreprocessorSource(const String&) { } |
108 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } | 108 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } |
109 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); | 109 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); |
110 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); | 110 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); |
| 111 virtual void clearPreprocessor() { } |
111 | 112 |
112 virtual void muteWarningsAndDeprecations() { } | 113 virtual void muteWarningsAndDeprecations() { } |
113 virtual void unmuteWarningsAndDeprecations() { } | 114 virtual void unmuteWarningsAndDeprecations() { } |
114 | 115 |
115 protected: | 116 protected: |
116 explicit ScriptDebugServer(v8::Isolate*); | 117 explicit ScriptDebugServer(v8::Isolate*); |
117 virtual ~ScriptDebugServer(); | 118 virtual ~ScriptDebugServer(); |
118 | 119 |
119 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; | 120 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; |
120 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; | 121 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 154 |
154 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); | 155 void handleV8AsyncTaskEvent(ScriptDebugListener*, ScriptState* pausedScriptS
tate, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); |
155 | 156 |
156 bool m_runningNestedMessageLoop; | 157 bool m_runningNestedMessageLoop; |
157 }; | 158 }; |
158 | 159 |
159 } // namespace blink | 160 } // namespace blink |
160 | 161 |
161 | 162 |
162 #endif // ScriptDebugServer_h | 163 #endif // ScriptDebugServer_h |
OLD | NEW |