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

Side by Side Diff: Source/bindings/core/v8/ScriptDebugServer.h

Issue 761143003: DevTools: remove ScriptPreprocessor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 10 months 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 | Annotate | Revision Log
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>); 98 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>);
99 v8::Local<v8::Value> generatorObjectDetails(v8::Handle<v8::Object>&); 99 v8::Local<v8::Value> generatorObjectDetails(v8::Handle<v8::Object>&);
100 v8::Local<v8::Value> collectionEntries(v8::Handle<v8::Object>&); 100 v8::Local<v8::Value> collectionEntries(v8::Handle<v8::Object>&);
101 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&); 101 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&);
102 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa lue); 102 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa lue);
103 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc, v8::Handle<v8::Value> argv[]); 103 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc, v8::Handle<v8::Value> argv[]);
104 104
105 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 compileScript(ScriptState*, const String& expression, const Str ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber, int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace);
106 virtual void clearCompiledScripts(); 106 virtual void clearCompiledScripts();
107 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 runScript(ScriptState*, const String& scriptId, ScriptValue* re sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace);
108 virtual void setPreprocessorSource(const String&) { }
109 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { }
110 virtual ScriptSourceCode preprocess(LocalFrame*, const ScriptSourceCode&);
111 virtual String preprocessEventListener(LocalFrame*, const String& source, co nst String& url, const String& functionName);
112 virtual void clearPreprocessor() { }
113 108
114 virtual void muteWarningsAndDeprecations() { } 109 virtual void muteWarningsAndDeprecations() { }
115 virtual void unmuteWarningsAndDeprecations() { } 110 virtual void unmuteWarningsAndDeprecations() { }
116 111
117 v8::Isolate* isolate() const { return m_isolate; } 112 v8::Isolate* isolate() const { return m_isolate; }
118 113
119 protected: 114 protected:
120 explicit ScriptDebugServer(v8::Isolate*); 115 explicit ScriptDebugServer(v8::Isolate*);
121 116
122 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0; 117 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 153
159 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); 154 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData);
160 155
161 bool m_runningNestedMessageLoop; 156 bool m_runningNestedMessageLoop;
162 }; 157 };
163 158
164 } // namespace blink 159 } // namespace blink
165 160
166 161
167 #endif // ScriptDebugServer_h 162 #endif // ScriptDebugServer_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptController.cpp ('k') | Source/bindings/core/v8/ScriptDebugServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698