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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // another process and it dynamically updates these properties. | 133 // another process and it dynamically updates these properties. |
134 // TODO(dcheng): Currently, the update only takes effect on next frame | 134 // TODO(dcheng): Currently, the update only takes effect on next frame |
135 // navigation. This matches the in-process frame behavior. | 135 // navigation. This matches the in-process frame behavior. |
136 void SetFrameOwnerProperties(const WebFrameOwnerProperties&); | 136 void SetFrameOwnerProperties(const WebFrameOwnerProperties&); |
137 | 137 |
138 // Geometry ----------------------------------------------------------- | 138 // Geometry ----------------------------------------------------------- |
139 | 139 |
140 // NOTE: These routines do not force page layout so their results may | 140 // NOTE: These routines do not force page layout so their results may |
141 // not be accurate if the page layout is out-of-date. | 141 // not be accurate if the page layout is out-of-date. |
142 | 142 |
143 // The scroll offset from the top-left corner of the frame in pixels. | |
144 virtual WebSize GetScrollOffset() const = 0; | |
145 virtual void SetScrollOffset(const WebSize&) = 0; | |
146 | |
147 // The size of the contents area. | 143 // The size of the contents area. |
148 virtual WebSize ContentsSize() const = 0; | 144 virtual WebSize ContentsSize() const = 0; |
149 | 145 |
150 // Returns true if the contents (minus scrollbars) has non-zero area. | 146 // Returns true if the contents (minus scrollbars) has non-zero area. |
151 virtual bool HasVisibleContent() const = 0; | 147 virtual bool HasVisibleContent() const = 0; |
152 | 148 |
153 // Returns the visible content rect (minus scrollbars, in absolute coordinate) | 149 // Returns the visible content rect (minus scrollbars, in absolute coordinate) |
154 virtual WebRect VisibleContentRect() const = 0; | 150 virtual WebRect VisibleContentRect() const = 0; |
155 | 151 |
156 virtual bool HasHorizontalScrollbar() const = 0; | 152 virtual bool HasHorizontalScrollbar() const = 0; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 WebFrame* first_child_; | 308 WebFrame* first_child_; |
313 WebFrame* last_child_; | 309 WebFrame* last_child_; |
314 | 310 |
315 WebFrame* opener_; | 311 WebFrame* opener_; |
316 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; | 312 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; |
317 }; | 313 }; |
318 | 314 |
319 } // namespace blink | 315 } // namespace blink |
320 | 316 |
321 #endif | 317 #endif |
OLD | NEW |