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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 // Returns true if the contents (minus scrollbars) has non-zero area. | 178 // Returns true if the contents (minus scrollbars) has non-zero area. |
179 virtual bool hasVisibleContent() const = 0; | 179 virtual bool hasVisibleContent() const = 0; |
180 | 180 |
181 // Returns the visible content rect (minus scrollbars, in absolute coordinate) | 181 // Returns the visible content rect (minus scrollbars, in absolute coordinate) |
182 virtual WebRect visibleContentRect() const = 0; | 182 virtual WebRect visibleContentRect() const = 0; |
183 | 183 |
184 virtual bool hasHorizontalScrollbar() const = 0; | 184 virtual bool hasHorizontalScrollbar() const = 0; |
185 virtual bool hasVerticalScrollbar() const = 0; | 185 virtual bool hasVerticalScrollbar() const = 0; |
186 | 186 |
| 187 // Whether to collapse the frame's owner element in the embedder document, |
| 188 // that is, to remove it from the layout as if it did not exist. Only works |
| 189 // for <iframe> owner elements. |
| 190 virtual void collapse(bool) = 0; |
| 191 |
187 // Hierarchy ---------------------------------------------------------- | 192 // Hierarchy ---------------------------------------------------------- |
188 | 193 |
189 // Returns the containing view. | 194 // Returns the containing view. |
190 virtual WebView* view() const = 0; | 195 virtual WebView* view() const = 0; |
191 | 196 |
192 // Returns the frame that opened this frame or 0 if there is none. | 197 // Returns the frame that opened this frame or 0 if there is none. |
193 BLINK_EXPORT WebFrame* opener() const; | 198 BLINK_EXPORT WebFrame* opener() const; |
194 | 199 |
195 // Sets the frame that opened this one or 0 if there is none. | 200 // Sets the frame that opened this one or 0 if there is none. |
196 BLINK_EXPORT void setOpener(WebFrame*); | 201 BLINK_EXPORT void setOpener(WebFrame*); |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 WebFrame* m_firstChild; | 474 WebFrame* m_firstChild; |
470 WebFrame* m_lastChild; | 475 WebFrame* m_lastChild; |
471 | 476 |
472 WebFrame* m_opener; | 477 WebFrame* m_opener; |
473 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; | 478 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; |
474 }; | 479 }; |
475 | 480 |
476 } // namespace blink | 481 } // namespace blink |
477 | 482 |
478 #endif | 483 #endif |
OLD | NEW |