Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2918943002: Move SetCanHaveScrollbars method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // another process and it dynamically updates these properties. 158 // another process and it dynamically updates these properties.
159 // TODO(dcheng): Currently, the update only takes effect on next frame 159 // TODO(dcheng): Currently, the update only takes effect on next frame
160 // navigation. This matches the in-process frame behavior. 160 // navigation. This matches the in-process frame behavior.
161 BLINK_EXPORT void SetFrameOwnerProperties(const WebFrameOwnerProperties&); 161 BLINK_EXPORT void SetFrameOwnerProperties(const WebFrameOwnerProperties&);
162 162
163 // Geometry ----------------------------------------------------------- 163 // Geometry -----------------------------------------------------------
164 164
165 // NOTE: These routines do not force page layout so their results may 165 // NOTE: These routines do not force page layout so their results may
166 // not be accurate if the page layout is out-of-date. 166 // not be accurate if the page layout is out-of-date.
167 167
168 // If set to false, do not draw scrollbars on this frame's view.
169 virtual void SetCanHaveScrollbars(bool) = 0;
170
171 // The scroll offset from the top-left corner of the frame in pixels. 168 // The scroll offset from the top-left corner of the frame in pixels.
172 virtual WebSize GetScrollOffset() const = 0; 169 virtual WebSize GetScrollOffset() const = 0;
173 virtual void SetScrollOffset(const WebSize&) = 0; 170 virtual void SetScrollOffset(const WebSize&) = 0;
174 171
175 // The size of the contents area. 172 // The size of the contents area.
176 virtual WebSize ContentsSize() const = 0; 173 virtual WebSize ContentsSize() const = 0;
177 174
178 // Returns true if the contents (minus scrollbars) has non-zero area. 175 // Returns true if the contents (minus scrollbars) has non-zero area.
179 virtual bool HasVisibleContent() const = 0; 176 virtual bool HasVisibleContent() const = 0;
180 177
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 WebFrame* first_child_; 463 WebFrame* first_child_;
467 WebFrame* last_child_; 464 WebFrame* last_child_;
468 465
469 WebFrame* opener_; 466 WebFrame* opener_;
470 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; 467 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_;
471 }; 468 };
472 469
473 } // namespace blink 470 } // namespace blink
474 471
475 #endif 472 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698