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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 virtual WebPerformance Performance() const = 0; | 218 virtual WebPerformance Performance() const = 0; |
219 | 219 |
220 // Closing ------------------------------------------------------------- | 220 // Closing ------------------------------------------------------------- |
221 | 221 |
222 // Runs unload handlers for this frame. | 222 // Runs unload handlers for this frame. |
223 virtual void DispatchUnloadEvent() = 0; | 223 virtual void DispatchUnloadEvent() = 0; |
224 | 224 |
225 // Scripting ---------------------------------------------------------- | 225 // Scripting ---------------------------------------------------------- |
226 | 226 |
227 // Executes script in the context of the current page. | |
228 virtual void ExecuteScript(const WebScriptSource&) = 0; | |
229 | |
230 // Executes JavaScript in a new world associated with the web frame. | 227 // Executes JavaScript in a new world associated with the web frame. |
231 // The script gets its own global scope and its own prototypes for | 228 // The script gets its own global scope and its own prototypes for |
232 // intrinsic JavaScript objects (String, Array, and so-on). It also | 229 // intrinsic JavaScript objects (String, Array, and so-on). It also |
233 // gets its own wrappers for all DOM nodes and DOM constructors. | 230 // gets its own wrappers for all DOM nodes and DOM constructors. |
234 // | 231 // |
235 // worldID must be > 0 (as 0 represents the main world). | 232 // worldID must be > 0 (as 0 represents the main world). |
236 // worldID must be < EmbedderWorldIdLimit, high number used internally. | 233 // worldID must be < EmbedderWorldIdLimit, high number used internally. |
237 virtual void ExecuteScriptInIsolatedWorld(int world_id, | 234 virtual void ExecuteScriptInIsolatedWorld(int world_id, |
238 const WebScriptSource* sources, | 235 const WebScriptSource* sources, |
239 unsigned num_sources) = 0; | 236 unsigned num_sources) = 0; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 WebFrame* first_child_; | 455 WebFrame* first_child_; |
459 WebFrame* last_child_; | 456 WebFrame* last_child_; |
460 | 457 |
461 WebFrame* opener_; | 458 WebFrame* opener_; |
462 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; | 459 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; |
463 }; | 460 }; |
464 | 461 |
465 } // namespace blink | 462 } // namespace blink |
466 | 463 |
467 #endif | 464 #endif |
OLD | NEW |