| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 PassScriptInstance createScriptInstanceForWidget(Widget*); | 122 PassScriptInstance createScriptInstanceForWidget(Widget*); |
| 123 | 123 |
| 124 // Check if the javascript engine has been initialized. | 124 // Check if the javascript engine has been initialized. |
| 125 bool haveInterpreter() const; | 125 bool haveInterpreter() const; |
| 126 | 126 |
| 127 void enableEval(); | 127 void enableEval(); |
| 128 void disableEval(const String& errorMessage); | 128 void disableEval(const String& errorMessage); |
| 129 | 129 |
| 130 static bool canAccessFromCurrentOrigin(Frame*); | 130 static bool canAccessFromCurrentOrigin(Frame*); |
| 131 | 131 |
| 132 #if ENABLE(INSPECTOR) | |
| 133 static void setCaptureCallStackForUncaughtExceptions(bool); | 132 static void setCaptureCallStackForUncaughtExceptions(bool); |
| 134 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); | 133 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); |
| 135 #endif | |
| 136 | 134 |
| 137 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); | 135 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); |
| 138 | 136 |
| 139 // Returns V8 Context. If none exists, creates a new context. | 137 // Returns V8 Context. If none exists, creates a new context. |
| 140 // It is potentially slow and consumes memory. | 138 // It is potentially slow and consumes memory. |
| 141 static v8::Local<v8::Context> mainWorldContext(Frame*); | 139 static v8::Local<v8::Context> mainWorldContext(Frame*); |
| 142 v8::Local<v8::Context> mainWorldContext(); | 140 v8::Local<v8::Context> mainWorldContext(); |
| 143 v8::Local<v8::Context> currentWorldContext(); | 141 v8::Local<v8::Context> currentWorldContext(); |
| 144 | 142 |
| 145 // Pass command-line flags to the JS engine. | 143 // Pass command-line flags to the JS engine. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // destroyed. | 217 // destroyed. |
| 220 NPObject* m_wrappedWindowScriptNPObject; | 218 NPObject* m_wrappedWindowScriptNPObject; |
| 221 | 219 |
| 222 // All of the extensions registered with the context. | 220 // All of the extensions registered with the context. |
| 223 static V8Extensions m_extensions; | 221 static V8Extensions m_extensions; |
| 224 }; | 222 }; |
| 225 | 223 |
| 226 } // namespace WebCore | 224 } // namespace WebCore |
| 227 | 225 |
| 228 #endif // ScriptController_h | 226 #endif // ScriptController_h |
| OLD | NEW |