| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber,
int* columnNumber, RefPtr<ScriptCallStack>* stackTrace); | 106 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber,
int* columnNumber, RefPtr<ScriptCallStack>* stackTrace); |
| 107 virtual void clearCompiledScripts(); | 107 virtual void clearCompiledScripts(); |
| 108 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtr<ScriptCallStack>* stackTrace); | 108 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtr<ScriptCallStack>* stackTrace); |
| 109 virtual void setPreprocessorSource(const String&) { } | 109 virtual void setPreprocessorSource(const String&) { } |
| 110 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } | 110 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } |
| 111 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); | 111 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); |
| 112 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); | 112 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); |
| 113 virtual void clearPreprocessor() { } | 113 virtual void clearPreprocessor() { } |
| 114 | 114 |
| 115 virtual void muteWarningsAndDeprecations() { } | |
| 116 virtual void unmuteWarningsAndDeprecations() { } | |
| 117 | |
| 118 protected: | 115 protected: |
| 119 explicit ScriptDebugServer(v8::Isolate*); | 116 explicit ScriptDebugServer(v8::Isolate*); |
| 120 virtual ~ScriptDebugServer(); | 117 virtual ~ScriptDebugServer(); |
| 121 | 118 |
| 122 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; | 119 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; |
| 123 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; | 120 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; |
| 124 virtual void quitMessageLoopOnPause() = 0; | 121 virtual void quitMessageLoopOnPause() = 0; |
| 125 | 122 |
| 126 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 123 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
| 127 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints); | 124 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 158 | 155 |
| 159 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); | 156 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); |
| 160 | 157 |
| 161 bool m_runningNestedMessageLoop; | 158 bool m_runningNestedMessageLoop; |
| 162 }; | 159 }; |
| 163 | 160 |
| 164 } // namespace blink | 161 } // namespace blink |
| 165 | 162 |
| 166 | 163 |
| 167 #endif // SKY_ENGINE_V8_INSPECTOR_SCRIPTDEBUGSERVER_H_ | 164 #endif // SKY_ENGINE_V8_INSPECTOR_SCRIPTDEBUGSERVER_H_ |
| OLD | NEW |