| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "wtf/Noncopyable.h" | 42 #include "wtf/Noncopyable.h" |
| 43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
| 44 #include "wtf/text/TextPosition.h" | 44 #include "wtf/text/TextPosition.h" |
| 45 #include <v8.h> | 45 #include <v8.h> |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class CompiledScript; | 49 class CompiledScript; |
| 50 class DOMWrapperWorld; | 50 class DOMWrapperWorld; |
| 51 class Element; | 51 class Element; |
| 52 class HTMLDocument; | |
| 53 class KURL; | 52 class KURL; |
| 54 class ScriptSourceCode; | 53 class ScriptSourceCode; |
| 55 class SecurityOrigin; | 54 class SecurityOrigin; |
| 56 class WindowProxy; | 55 class WindowProxy; |
| 57 class Widget; | 56 class Widget; |
| 58 | 57 |
| 59 typedef WTF::Vector<v8::Extension*> V8Extensions; | 58 typedef WTF::Vector<v8::Extension*> V8Extensions; |
| 60 | 59 |
| 61 enum ReasonForCallingCanExecuteScripts { | 60 enum ReasonForCallingCanExecuteScripts { |
| 62 AboutToExecuteScript, | 61 AboutToExecuteScript, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void enableEval(); | 128 void enableEval(); |
| 130 void disableEval(const String& errorMessage); | 129 void disableEval(const String& errorMessage); |
| 131 | 130 |
| 132 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); | 131 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); |
| 133 | 132 |
| 134 TextPosition eventHandlerPosition() const; | 133 TextPosition eventHandlerPosition() const; |
| 135 | 134 |
| 136 void clearWindowProxy(); | 135 void clearWindowProxy(); |
| 137 void updateDocument(); | 136 void updateDocument(); |
| 138 | 137 |
| 139 void namedItemAdded(HTMLDocument*, const AtomicString&); | |
| 140 void namedItemRemoved(HTMLDocument*, const AtomicString&); | |
| 141 | |
| 142 void updateSecurityOrigin(SecurityOrigin*); | 138 void updateSecurityOrigin(SecurityOrigin*); |
| 143 | 139 |
| 144 void clearForClose(); | 140 void clearForClose(); |
| 145 | 141 |
| 146 // Registers a v8 extension to be available on webpages. Will only | 142 // Registers a v8 extension to be available on webpages. Will only |
| 147 // affect v8 contexts initialized after this call. Takes ownership of | 143 // affect v8 contexts initialized after this call. Takes ownership of |
| 148 // the v8::Extension object passed. | 144 // the v8::Extension object passed. |
| 149 static void registerExtensionIfNeeded(v8::Extension*); | 145 static void registerExtensionIfNeeded(v8::Extension*); |
| 150 static V8Extensions& registeredExtensions(); | 146 static V8Extensions& registeredExtensions(); |
| 151 | 147 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 165 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, | 161 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, |
| 166 AccessControlStatus, | 162 AccessControlStatus, |
| 167 ExecuteScriptPolicy); | 163 ExecuteScriptPolicy); |
| 168 | 164 |
| 169 Member<WindowProxyManager> m_windowProxyManager; | 165 Member<WindowProxyManager> m_windowProxyManager; |
| 170 }; | 166 }; |
| 171 | 167 |
| 172 } // namespace blink | 168 } // namespace blink |
| 173 | 169 |
| 174 #endif // ScriptController_h | 170 #endif // ScriptController_h |
| OLD | NEW |