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

Side by Side Diff: trunk/Source/bindings/v8/ScriptController.h

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 8 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) 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 public: 70 public:
71 enum ExecuteScriptPolicy { 71 enum ExecuteScriptPolicy {
72 ExecuteScriptWhenScriptsDisabled, 72 ExecuteScriptWhenScriptsDisabled,
73 DoNotExecuteScriptWhenScriptsDisabled 73 DoNotExecuteScriptWhenScriptsDisabled
74 }; 74 };
75 75
76 ScriptController(LocalFrame*); 76 ScriptController(LocalFrame*);
77 ~ScriptController(); 77 ~ScriptController();
78 78
79 bool initializeMainWorld(); 79 bool initializeMainWorld();
80 V8WindowShell* windowShell(DOMWrapperWorld*); 80 V8WindowShell* windowShell(DOMWrapperWorld&);
81 V8WindowShell* existingWindowShell(DOMWrapperWorld*); 81 V8WindowShell* existingWindowShell(DOMWrapperWorld&);
82 82
83 // Evaluate JavaScript in the main world. 83 // Evaluate JavaScript in the main world.
84 void executeScriptInMainWorld(const String&, ExecuteScriptPolicy = DoNotExec uteScriptWhenScriptsDisabled); 84 void executeScriptInMainWorld(const String&, ExecuteScriptPolicy = DoNotExec uteScriptWhenScriptsDisabled);
85 void executeScriptInMainWorld(const ScriptSourceCode&, AccessControlStatus = NotSharableCrossOrigin); 85 void executeScriptInMainWorld(const ScriptSourceCode&, AccessControlStatus = NotSharableCrossOrigin);
86 ScriptValue executeScriptInMainWorldAndReturnValue(const ScriptSourceCode&); 86 ScriptValue executeScriptInMainWorldAndReturnValue(const ScriptSourceCode&);
87 v8::Local<v8::Value> executeScriptAndReturnValue(v8::Handle<v8::Context>, co nst ScriptSourceCode&, AccessControlStatus = NotSharableCrossOrigin); 87 v8::Local<v8::Value> executeScriptAndReturnValue(v8::Handle<v8::Context>, co nst ScriptSourceCode&, AccessControlStatus = NotSharableCrossOrigin);
88 88
89 // Executes JavaScript in an isolated world. The script gets its own global scope, 89 // Executes JavaScript in an isolated world. The script gets its own global scope,
90 // its own prototypes for intrinsic JavaScript objects (String, Array, and s o-on), 90 // its own prototypes for intrinsic JavaScript objects (String, Array, and s o-on),
91 // and its own wrappers for all DOM nodes and DOM constructors. 91 // and its own wrappers for all DOM nodes and DOM constructors.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // invalidate all sub-objects which are associated with that plugin. 168 // invalidate all sub-objects which are associated with that plugin.
169 // The frame keeps a NPObject reference for each item on the list. 169 // The frame keeps a NPObject reference for each item on the list.
170 PluginObjectMap m_pluginObjects; 170 PluginObjectMap m_pluginObjects;
171 171
172 NPObject* m_windowScriptNPObject; 172 NPObject* m_windowScriptNPObject;
173 }; 173 };
174 174
175 } // namespace WebCore 175 } // namespace WebCore
176 176
177 #endif // ScriptController_h 177 #endif // ScriptController_h
OLDNEW
« no previous file with comments | « trunk/Source/bindings/v8/MIDIAccessResolver.cpp ('k') | trunk/Source/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698