| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Runs beforeunload handlers for this frame, returning false if a | 262 // Runs beforeunload handlers for this frame, returning false if a |
| 263 // handler suppressed unloading. | 263 // handler suppressed unloading. |
| 264 virtual bool dispatchBeforeUnloadEvent() = 0; | 264 virtual bool dispatchBeforeUnloadEvent() = 0; |
| 265 | 265 |
| 266 // Runs unload handlers for this frame. | 266 // Runs unload handlers for this frame. |
| 267 virtual void dispatchUnloadEvent() = 0; | 267 virtual void dispatchUnloadEvent() = 0; |
| 268 | 268 |
| 269 | 269 |
| 270 // Scripting ---------------------------------------------------------- | 270 // Scripting ---------------------------------------------------------- |
| 271 | 271 |
| 272 // Returns a NPObject corresponding to this frame's DOMWindow. | |
| 273 virtual NPObject* windowObject() const = 0; | |
| 274 | |
| 275 // Binds a NPObject as a property of this frame's DOMWindow. | |
| 276 virtual void bindToWindowObject(const WebString& name, NPObject*) = 0; | |
| 277 virtual void bindToWindowObject( | |
| 278 const WebString& name, NPObject*, void*) = 0; | |
| 279 | |
| 280 // Executes script in the context of the current page. | 272 // Executes script in the context of the current page. |
| 281 virtual void executeScript(const WebScriptSource&) = 0; | 273 virtual void executeScript(const WebScriptSource&) = 0; |
| 282 | 274 |
| 283 // Executes JavaScript in a new world associated with the web frame. | 275 // Executes JavaScript in a new world associated with the web frame. |
| 284 // The script gets its own global scope and its own prototypes for | 276 // The script gets its own global scope and its own prototypes for |
| 285 // intrinsic JavaScript objects (String, Array, and so-on). It also | 277 // intrinsic JavaScript objects (String, Array, and so-on). It also |
| 286 // gets its own wrappers for all DOM nodes and DOM constructors. | 278 // gets its own wrappers for all DOM nodes and DOM constructors. |
| 287 // extensionGroup is an embedder-provided specifier that controls which | 279 // extensionGroup is an embedder-provided specifier that controls which |
| 288 // v8 extensions are loaded into the new context - see | 280 // v8 extensions are loaded into the new context - see |
| 289 // blink::registerExtension for the corresponding specifier. | 281 // blink::registerExtension for the corresponding specifier. |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 WebFrame* m_firstChild; | 735 WebFrame* m_firstChild; |
| 744 WebFrame* m_lastChild; | 736 WebFrame* m_lastChild; |
| 745 | 737 |
| 746 WebFrame* m_opener; | 738 WebFrame* m_opener; |
| 747 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 739 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
| 748 }; | 740 }; |
| 749 | 741 |
| 750 } // namespace blink | 742 } // namespace blink |
| 751 | 743 |
| 752 #endif | 744 #endif |
| OLD | NEW |