Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: sky/engine/v8_inspector/ScriptDebugServer.h

Issue 754463004: Remove ScriptPreprocessor (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>); 100 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>);
101 v8::Local<v8::Value> collectionEntries(v8::Handle<v8::Object>&); 101 v8::Local<v8::Value> collectionEntries(v8::Handle<v8::Object>&);
102 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&); 102 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&);
103 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa lue); 103 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa lue);
104 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc, v8::Handle<v8::Value> argv[]); 104 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc, v8::Handle<v8::Value> argv[]);
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&) { }
110 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { }
111 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou rceCode&);
112 virtual String preprocessEventListener(LocalFrame*, const String& source, co nst String& url, const String& functionName);
113 virtual void clearPreprocessor() { }
114 109
115 protected: 110 protected:
116 explicit ScriptDebugServer(v8::Isolate*); 111 explicit ScriptDebugServer(v8::Isolate*);
117 virtual ~ScriptDebugServer(); 112 virtual ~ScriptDebugServer();
118 113
119 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0; 114 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0;
120 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; 115 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0;
121 virtual void quitMessageLoopOnPause() = 0; 116 virtual void quitMessageLoopOnPause() = 0;
122 117
123 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 118 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 150
156 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); 151 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData);
157 152
158 bool m_runningNestedMessageLoop; 153 bool m_runningNestedMessageLoop;
159 }; 154 };
160 155
161 } // namespace blink 156 } // namespace blink
162 157
163 158
164 #endif // SKY_ENGINE_V8_INSPECTOR_SCRIPTDEBUGSERVER_H_ 159 #endif // SKY_ENGINE_V8_INSPECTOR_SCRIPTDEBUGSERVER_H_
OLDNEW
« no previous file with comments | « sky/engine/v8_inspector/PageScriptDebugServer.cpp ('k') | sky/engine/v8_inspector/ScriptDebugServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698