| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // FIXME: V8Proxy should either be folded into ScriptController | 58 // FIXME: V8Proxy should either be folded into ScriptController |
| 59 // or this accessor should be made JSProxy* | 59 // or this accessor should be made JSProxy* |
| 60 V8Proxy* proxy() { return m_proxy.get(); } | 60 V8Proxy* proxy() { return m_proxy.get(); } |
| 61 | 61 |
| 62 // Evaluate a script file in the environment of this proxy. | 62 // Evaluate a script file in the environment of this proxy. |
| 63 // If succeeded, 'succ' is set to true and result is returned | 63 // If succeeded, 'succ' is set to true and result is returned |
| 64 // as a string. | 64 // as a string. |
| 65 ScriptValue evaluate(const ScriptSourceCode&); | 65 ScriptValue evaluate(const ScriptSourceCode&); |
| 66 | 66 |
| 67 // Executes JavaScript in a new world associated with the web frame. The |
| 68 // script gets its own global scope, its own prototypes for intrinsic |
| 69 // JavaScript objects (String, Array, and so-on), and its own wrappers f
or |
| 70 // all DOM nodes and DOM constructors. |
| 71 void evaluateInNewWorld(const Vector<ScriptSourceCode>&); |
| 72 |
| 67 // Executes JavaScript in a new context associated with the web frame. T
he | 73 // Executes JavaScript in a new context associated with the web frame. T
he |
| 68 // script gets its own global scope and its own prototypes for intrinsic | 74 // script gets its own global scope and its own prototypes for intrinsic |
| 69 // JavaScript objects (String, Array, and so-on). It shares the wrappers
for | 75 // JavaScript objects (String, Array, and so-on). It shares the wrappers
for |
| 70 // all DOM nodes and DOM constructors. | 76 // all DOM nodes and DOM constructors. |
| 71 void evaluateInNewContext(const Vector<ScriptSourceCode>&); | 77 void evaluateInNewContext(const Vector<ScriptSourceCode>&); |
| 72 | 78 |
| 73 // JSC has a WindowShell object, but for V8, the ScriptController | 79 // JSC has a WindowShell object, but for V8, the ScriptController |
| 74 // is the WindowShell. | 80 // is the WindowShell. |
| 75 bool haveWindowShell() const { return true; } | 81 bool haveWindowShell() const { return true; } |
| 76 | 82 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // The frame keeps a NPObject reference for each item on the list. | 164 // The frame keeps a NPObject reference for each item on the list. |
| 159 PluginObjectMap m_pluginObjects; | 165 PluginObjectMap m_pluginObjects; |
| 160 #if ENABLE(NETSCAPE_PLUGIN_API) | 166 #if ENABLE(NETSCAPE_PLUGIN_API) |
| 161 NPObject* m_windowScriptNPObject; | 167 NPObject* m_windowScriptNPObject; |
| 162 #endif | 168 #endif |
| 163 }; | 169 }; |
| 164 | 170 |
| 165 } // namespace WebCore | 171 } // namespace WebCore |
| 166 | 172 |
| 167 #endif // ScriptController_h | 173 #endif // ScriptController_h |
| OLD | NEW |