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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 // Returns true if the contents (minus scrollbars) has non-zero area. | 175 // Returns true if the contents (minus scrollbars) has non-zero area. |
176 virtual bool HasVisibleContent() const = 0; | 176 virtual bool HasVisibleContent() const = 0; |
177 | 177 |
178 // Returns the visible content rect (minus scrollbars, in absolute coordinate) | 178 // Returns the visible content rect (minus scrollbars, in absolute coordinate) |
179 virtual WebRect VisibleContentRect() const = 0; | 179 virtual WebRect VisibleContentRect() const = 0; |
180 | 180 |
181 virtual bool HasHorizontalScrollbar() const = 0; | 181 virtual bool HasHorizontalScrollbar() const = 0; |
182 virtual bool HasVerticalScrollbar() const = 0; | 182 virtual bool HasVerticalScrollbar() const = 0; |
183 | 183 |
| 184 // Whether to collapse the frame's owner element in the embedder document, |
| 185 // that is, to remove it from the layout as if it did not exist. Only works |
| 186 // for <iframe> owner elements. |
| 187 virtual void Collapse(bool) = 0; |
| 188 |
184 // Hierarchy ---------------------------------------------------------- | 189 // Hierarchy ---------------------------------------------------------- |
185 | 190 |
186 // Returns the containing view. | 191 // Returns the containing view. |
187 virtual WebView* View() const = 0; | 192 virtual WebView* View() const = 0; |
188 | 193 |
189 // Returns the frame that opened this frame or 0 if there is none. | 194 // Returns the frame that opened this frame or 0 if there is none. |
190 BLINK_EXPORT WebFrame* Opener() const; | 195 BLINK_EXPORT WebFrame* Opener() const; |
191 | 196 |
192 // Sets the frame that opened this one or 0 if there is none. | 197 // Sets the frame that opened this one or 0 if there is none. |
193 BLINK_EXPORT void SetOpener(WebFrame*); | 198 BLINK_EXPORT void SetOpener(WebFrame*); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 WebFrame* first_child_; | 463 WebFrame* first_child_; |
459 WebFrame* last_child_; | 464 WebFrame* last_child_; |
460 | 465 |
461 WebFrame* opener_; | 466 WebFrame* opener_; |
462 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; | 467 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; |
463 }; | 468 }; |
464 | 469 |
465 } // namespace blink | 470 } // namespace blink |
466 | 471 |
467 #endif | 472 #endif |
OLD | NEW |