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

Side by Side Diff: webkit/port/bindings/v8/ScriptController.h

Issue 10687: Clean up the proxy code for handling frame navigation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 // Copyright 2008, Google Inc. 1 // Copyright 2008, Google Inc.
2 // All rights reserved. 2 // 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 #endif 163 #endif
164 164
165 // Creates a property of the global object of a frame. 165 // Creates a property of the global object of a frame.
166 void BindToWindowObject(Frame*, const String& key, NPObject*); 166 void BindToWindowObject(Frame*, const String& key, NPObject*);
167 167
168 NPRuntimeFunctions* functions(); 168 NPRuntimeFunctions* functions();
169 169
170 JSInstanceHandle createScriptInstanceForWidget(Widget*); 170 JSInstanceHandle createScriptInstanceForWidget(Widget*);
171 171
172 void clearPluginObjects(); 172 void clearPluginObjects();
173 void clearDocumentWrapper();
174 void disconnectFrame(); 173 void disconnectFrame();
175 174
176 // Check if the javascript engine has been initialized. 175 // Check if the javascript engine has been initialized.
177 bool haveInterpreter() const; 176 bool haveInterpreter() const;
178 177
179 bool isEnabled() const; 178 bool isEnabled() const;
180 179
181 // TODO(eseidel): void* is a compile hack 180 // TODO(eseidel): void* is a compile hack
182 void attachDebugger(void*); 181 void attachDebugger(void*);
183 182
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void setProcessingTimerCallback(bool b) { m_processingTimerCallback = b; } 224 void setProcessingTimerCallback(bool b) { m_processingTimerCallback = b; }
226 bool processingUserGesture() const; 225 bool processingUserGesture() const;
227 226
228 void setPaused(bool b) { m_paused = b; } 227 void setPaused(bool b) { m_paused = b; }
229 bool isPaused() const { return m_paused; } 228 bool isPaused() const { return m_paused; }
230 229
231 const String* sourceURL() const { return m_sourceURL; } // 0 if we are not e valuating any script 230 const String* sourceURL() const { return m_sourceURL; } // 0 if we are not e valuating any script
232 231
233 void clearWindowShell(); 232 void clearWindowShell();
234 void updateDocument(); 233 void updateDocument();
235 void domWindowReady() { m_proxy->domWindowReady(); }
236 234
237 void pauseTimeouts(OwnPtr<PausedTimeouts>&); 235 void pauseTimeouts(OwnPtr<PausedTimeouts>&);
238 void resumeTimeouts(OwnPtr<PausedTimeouts>&); 236 void resumeTimeouts(OwnPtr<PausedTimeouts>&);
239 237
240 void clearScriptObjects(); 238 void clearScriptObjects();
241 void cleanupScriptObjectsForPlugin(void*); 239 void cleanupScriptObjectsForPlugin(void*);
242 240
243 #if ENABLE(NETSCAPE_PLUGIN_API) 241 #if ENABLE(NETSCAPE_PLUGIN_API)
244 NPObject* createScriptObjectForPluginElement(HTMLPlugInElement*); 242 NPObject* createScriptObjectForPluginElement(HTMLPlugInElement*);
245 NPObject* windowScriptNPObject(); 243 NPObject* windowScriptNPObject();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 JSInstanceHolder& operator=(JSInstanceHandle); 281 JSInstanceHolder& operator=(JSInstanceHandle);
284 static JSInstance EmptyInstance(); 282 static JSInstance EmptyInstance();
285 283
286 private: 284 private:
287 JSPersistentInstance m_instance; 285 JSPersistentInstance m_instance;
288 }; 286 };
289 287
290 } // namespace WebCore 288 } // namespace WebCore
291 289
292 #endif // ScriptController_h 290 #endif // ScriptController_h
OLDNEW
« no previous file with comments | « no previous file | webkit/port/bindings/v8/ScriptController.cpp » ('j') | webkit/port/bindings/v8/v8_proxy.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698