OLD | NEW |
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 ExecuteScriptWhenScriptsDisabled, | 71 ExecuteScriptWhenScriptsDisabled, |
72 DoNotExecuteScriptWhenScriptsDisabled | 72 DoNotExecuteScriptWhenScriptsDisabled |
73 }; | 73 }; |
74 | 74 |
75 static PassOwnPtrWillBeRawPtr<ScriptController> create(LocalFrame* frame) | 75 static PassOwnPtrWillBeRawPtr<ScriptController> create(LocalFrame* frame) |
76 { | 76 { |
77 return adoptPtrWillBeNoop(new ScriptController(frame)); | 77 return adoptPtrWillBeNoop(new ScriptController(frame)); |
78 } | 78 } |
79 | 79 |
80 ~ScriptController(); | 80 ~ScriptController(); |
81 void trace(Visitor*); | 81 DECLARE_TRACE(); |
82 | 82 |
83 bool initializeMainWorld(); | 83 bool initializeMainWorld(); |
84 WindowProxy* windowProxy(DOMWrapperWorld&); | 84 WindowProxy* windowProxy(DOMWrapperWorld&); |
85 WindowProxy* existingWindowProxy(DOMWrapperWorld&); | 85 WindowProxy* existingWindowProxy(DOMWrapperWorld&); |
86 | 86 |
87 // Evaluate JavaScript in the main world. | 87 // Evaluate JavaScript in the main world. |
88 void executeScriptInMainWorld(const String&, ExecuteScriptPolicy = DoNotExec
uteScriptWhenScriptsDisabled); | 88 void executeScriptInMainWorld(const String&, ExecuteScriptPolicy = DoNotExec
uteScriptWhenScriptsDisabled); |
89 void executeScriptInMainWorld(const ScriptSourceCode&, AccessControlStatus =
NotSharableCrossOrigin, double* compilationFinishTime = 0); | 89 void executeScriptInMainWorld(const ScriptSourceCode&, AccessControlStatus =
NotSharableCrossOrigin, double* compilationFinishTime = 0); |
90 v8::Local<v8::Value> executeScriptInMainWorldAndReturnValue(const ScriptSour
ceCode&); | 90 v8::Local<v8::Value> executeScriptInMainWorldAndReturnValue(const ScriptSour
ceCode&); |
91 v8::Local<v8::Value> executeScriptAndReturnValue(v8::Handle<v8::Context>, co
nst ScriptSourceCode&, AccessControlStatus = NotSharableCrossOrigin, double* com
pilationFinishTime = 0); | 91 v8::Local<v8::Value> executeScriptAndReturnValue(v8::Handle<v8::Context>, co
nst ScriptSourceCode&, AccessControlStatus = NotSharableCrossOrigin, double* com
pilationFinishTime = 0); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // invalidate all sub-objects which are associated with that plugin. | 169 // invalidate all sub-objects which are associated with that plugin. |
170 // The frame keeps a NPObject reference for each item on the list. | 170 // The frame keeps a NPObject reference for each item on the list. |
171 PluginObjectMap m_pluginObjects; | 171 PluginObjectMap m_pluginObjects; |
172 | 172 |
173 NPObject* m_windowScriptNPObject; | 173 NPObject* m_windowScriptNPObject; |
174 }; | 174 }; |
175 | 175 |
176 } // namespace blink | 176 } // namespace blink |
177 | 177 |
178 #endif // ScriptController_h | 178 #endif // ScriptController_h |
OLD | NEW |