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

Unified Diff: bindings/js/ScriptController.cpp

Issue 542055: DevTools: injected script per context(WebCore part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bindings/js/ScriptController.h ('k') | bindings/js/ScriptObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bindings/js/ScriptController.cpp
===================================================================
--- bindings/js/ScriptController.cpp (revision 53180)
+++ bindings/js/ScriptController.cpp (working copy)
@@ -374,6 +374,12 @@
#endif
+ScriptState* ScriptController::mainWorldScriptState()
+{
+ JSDOMWindowShell* shell = windowShell(mainThreadNormalWorld());
+ return shell->window()->globalExec();
+}
+
JSObject* ScriptController::jsObjectForPluginElement(HTMLPlugInElement* plugin)
{
// Can't create JSObjects when JavaScript is disabled
« no previous file with comments | « bindings/js/ScriptController.h ('k') | bindings/js/ScriptObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698