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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 virtual WebFrame* findChildByExpression(const WebString& xpath) const = 0; | 234 virtual WebFrame* findChildByExpression(const WebString& xpath) const = 0; |
235 | 235 |
236 | 236 |
237 // Content ------------------------------------------------------------ | 237 // Content ------------------------------------------------------------ |
238 | 238 |
239 virtual WebDocument document() const = 0; | 239 virtual WebDocument document() const = 0; |
240 | 240 |
241 virtual WebPerformance performance() const = 0; | 241 virtual WebPerformance performance() const = 0; |
242 | 242 |
243 | 243 |
| 244 // Closing ------------------------------------------------------------- |
| 245 |
| 246 // Runs beforeunload handlers for this frame, returning false if a |
| 247 // handler suppressed unloading. |
| 248 virtual bool dispatchBeforeUnloadEvent() = 0; |
| 249 |
| 250 |
244 // Scripting ---------------------------------------------------------- | 251 // Scripting ---------------------------------------------------------- |
245 | 252 |
246 // Returns a NPObject corresponding to this frame's DOMWindow. | 253 // Returns a NPObject corresponding to this frame's DOMWindow. |
247 virtual NPObject* windowObject() const = 0; | 254 virtual NPObject* windowObject() const = 0; |
248 | 255 |
249 // Binds a NPObject as a property of this frame's DOMWindow. | 256 // Binds a NPObject as a property of this frame's DOMWindow. |
250 virtual void bindToWindowObject(const WebString& name, NPObject*) = 0; | 257 virtual void bindToWindowObject(const WebString& name, NPObject*) = 0; |
251 virtual void bindToWindowObject( | 258 virtual void bindToWindowObject( |
252 const WebString& name, NPObject*, void*) = 0; | 259 const WebString& name, NPObject*, void*) = 0; |
253 | 260 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // text form. This is used only by layout tests. | 674 // text form. This is used only by layout tests. |
668 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 675 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
669 | 676 |
670 protected: | 677 protected: |
671 ~WebFrame() { } | 678 ~WebFrame() { } |
672 }; | 679 }; |
673 | 680 |
674 } // namespace blink | 681 } // namespace blink |
675 | 682 |
676 #endif | 683 #endif |
OLD | NEW |