OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 unsigned numSources, | 189 unsigned numSources, |
190 int extensionGroup) = 0; | 190 int extensionGroup) = 0; |
191 | 191 |
192 // Executes JavaScript in a new world associated with the web frame. | 192 // Executes JavaScript in a new world associated with the web frame. |
193 // The script gets its own global scope and its own prototypes for | 193 // The script gets its own global scope and its own prototypes for |
194 // intrinsic JavaScript objects (String, Array, and so-on). It also | 194 // intrinsic JavaScript objects (String, Array, and so-on). It also |
195 // gets its own wrappers for all DOM nodes and DOM constructors. | 195 // gets its own wrappers for all DOM nodes and DOM constructors. |
196 // extensionGroup is an embedder-provided specifier that controls which | 196 // extensionGroup is an embedder-provided specifier that controls which |
197 // v8 extensions are loaded into the new context - see | 197 // v8 extensions are loaded into the new context - see |
198 // WebKit::registerExtension for the corresponding specifier. | 198 // WebKit::registerExtension for the corresponding specifier. |
199 virtual void executeScriptInNewWorld(const WebScriptSource* sources, | 199 virtual void executeScriptInIsolatedWorld( |
200 unsigned numSources, | 200 int worldId, const WebScriptSource* sources, unsigned numSources, |
201 int extensionGroup) = 0; | 201 int extensionGroup) = 0; |
202 | 202 |
203 // Logs to the console associated with this frame. | 203 // Logs to the console associated with this frame. |
204 virtual void addMessageToConsole(const WebConsoleMessage&) = 0; | 204 virtual void addMessageToConsole(const WebConsoleMessage&) = 0; |
205 | 205 |
206 // Calls window.gc() if it is defined. | 206 // Calls window.gc() if it is defined. |
207 virtual void collectGarbage() = 0; | 207 virtual void collectGarbage() = 0; |
208 | 208 |
209 #if WEBKIT_USING_V8 | 209 #if WEBKIT_USING_V8 |
210 // Returns the V8 context for this frame, or an empty handle if there | 210 // Returns the V8 context for this frame, or an empty handle if there |
211 // is none. | 211 // is none. |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 // from the DOM. | 439 // from the DOM. |
440 virtual WebString contentAsMarkup() const = 0; | 440 virtual WebString contentAsMarkup() const = 0; |
441 | 441 |
442 protected: | 442 protected: |
443 ~WebFrame() { } | 443 ~WebFrame() { } |
444 }; | 444 }; |
445 | 445 |
446 } // namespace WebKit | 446 } // namespace WebKit |
447 | 447 |
448 #endif | 448 #endif |
OLD | NEW |