| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Runs beforeunload handlers for this frame, returning false if a | 254 // Runs beforeunload handlers for this frame, returning false if a |
| 255 // handler suppressed unloading. | 255 // handler suppressed unloading. |
| 256 virtual bool dispatchBeforeUnloadEvent() = 0; | 256 virtual bool dispatchBeforeUnloadEvent() = 0; |
| 257 | 257 |
| 258 // Runs unload handlers for this frame. | 258 // Runs unload handlers for this frame. |
| 259 virtual void dispatchUnloadEvent() = 0; | 259 virtual void dispatchUnloadEvent() = 0; |
| 260 | 260 |
| 261 | 261 |
| 262 // Scripting ---------------------------------------------------------- | 262 // Scripting ---------------------------------------------------------- |
| 263 | 263 |
| 264 // Returns a NPObject corresponding to this frame's DOMWindow. | |
| 265 virtual NPObject* windowObject() const = 0; | |
| 266 | |
| 267 // Binds a NPObject as a property of this frame's DOMWindow. | |
| 268 virtual void bindToWindowObject(const WebString& name, NPObject*) = 0; | |
| 269 virtual void bindToWindowObject( | |
| 270 const WebString& name, NPObject*, void*) = 0; | |
| 271 | |
| 272 // Executes script in the context of the current page. | 264 // Executes script in the context of the current page. |
| 273 virtual void executeScript(const WebScriptSource&) = 0; | 265 virtual void executeScript(const WebScriptSource&) = 0; |
| 274 | 266 |
| 275 // Executes JavaScript in a new world associated with the web frame. | 267 // Executes JavaScript in a new world associated with the web frame. |
| 276 // The script gets its own global scope and its own prototypes for | 268 // The script gets its own global scope and its own prototypes for |
| 277 // intrinsic JavaScript objects (String, Array, and so-on). It also | 269 // intrinsic JavaScript objects (String, Array, and so-on). It also |
| 278 // gets its own wrappers for all DOM nodes and DOM constructors. | 270 // gets its own wrappers for all DOM nodes and DOM constructors. |
| 279 // extensionGroup is an embedder-provided specifier that controls which | 271 // extensionGroup is an embedder-provided specifier that controls which |
| 280 // v8 extensions are loaded into the new context - see | 272 // v8 extensions are loaded into the new context - see |
| 281 // blink::registerExtension for the corresponding specifier. | 273 // blink::registerExtension for the corresponding specifier. |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 WebFrame* m_firstChild; | 604 WebFrame* m_firstChild; |
| 613 WebFrame* m_lastChild; | 605 WebFrame* m_lastChild; |
| 614 | 606 |
| 615 WebFrame* m_opener; | 607 WebFrame* m_opener; |
| 616 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 608 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
| 617 }; | 609 }; |
| 618 | 610 |
| 619 } // namespace blink | 611 } // namespace blink |
| 620 | 612 |
| 621 #endif | 613 #endif |
| OLD | NEW |