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

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

Issue 2918943002: Move SetCanHaveScrollbars method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Rebasing... 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // another process and it dynamically updates these properties. 153 // another process and it dynamically updates these properties.
154 // TODO(dcheng): Currently, the update only takes effect on next frame 154 // TODO(dcheng): Currently, the update only takes effect on next frame
155 // navigation. This matches the in-process frame behavior. 155 // navigation. This matches the in-process frame behavior.
156 BLINK_EXPORT void SetFrameOwnerProperties(const WebFrameOwnerProperties&); 156 BLINK_EXPORT void SetFrameOwnerProperties(const WebFrameOwnerProperties&);
157 157
158 // Geometry ----------------------------------------------------------- 158 // Geometry -----------------------------------------------------------
159 159
160 // NOTE: These routines do not force page layout so their results may 160 // NOTE: These routines do not force page layout so their results may
161 // not be accurate if the page layout is out-of-date. 161 // not be accurate if the page layout is out-of-date.
162 162
163 // If set to false, do not draw scrollbars on this frame's view.
164 virtual void SetCanHaveScrollbars(bool) = 0;
165
166 // The scroll offset from the top-left corner of the frame in pixels. 163 // The scroll offset from the top-left corner of the frame in pixels.
167 virtual WebSize GetScrollOffset() const = 0; 164 virtual WebSize GetScrollOffset() const = 0;
168 virtual void SetScrollOffset(const WebSize&) = 0; 165 virtual void SetScrollOffset(const WebSize&) = 0;
169 166
170 // The size of the contents area. 167 // The size of the contents area.
171 virtual WebSize ContentsSize() const = 0; 168 virtual WebSize ContentsSize() const = 0;
172 169
173 // Returns true if the contents (minus scrollbars) has non-zero area. 170 // Returns true if the contents (minus scrollbars) has non-zero area.
174 virtual bool HasVisibleContent() const = 0; 171 virtual bool HasVisibleContent() const = 0;
175 172
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 WebFrame* first_child_; 458 WebFrame* first_child_;
462 WebFrame* last_child_; 459 WebFrame* last_child_;
463 460
464 WebFrame* opener_; 461 WebFrame* opener_;
465 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; 462 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_;
466 }; 463 };
467 464
468 } // namespace blink 465 } // namespace blink
469 466
470 #endif 467 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698