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

Side by Side Diff: sky/engine/public/web/WebFrame.h

Issue 677223002: Remove some more frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/engine/web/WebLocalFrameImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Geometry ----------------------------------------------------------- 102 // Geometry -----------------------------------------------------------
103 103
104 // NOTE: These routines do not force page layout so their results may 104 // NOTE: These routines do not force page layout so their results may
105 // not be accurate if the page layout is out-of-date. 105 // not be accurate if the page layout is out-of-date.
106 106
107 // If set to false, do not draw scrollbars on this frame's view. 107 // If set to false, do not draw scrollbars on this frame's view.
108 virtual void setCanHaveScrollbars(bool) = 0; 108 virtual void setCanHaveScrollbars(bool) = 0;
109 109
110 // The scroll offset from the top-left corner of the frame in pixels. 110 // The scroll offset from the top-left corner of the frame in pixels.
111 virtual WebSize scrollOffset() const = 0; 111 virtual WebSize scrollOffset() const = 0;
112 virtual void setScrollOffset(const WebSize&) = 0;
113 112
114 // The minimum and maxium scroll positions in pixels. 113 // The minimum and maxium scroll positions in pixels.
115 virtual WebSize minimumScrollOffset() const = 0; 114 virtual WebSize minimumScrollOffset() const = 0;
116 virtual WebSize maximumScrollOffset() const = 0; 115 virtual WebSize maximumScrollOffset() const = 0;
117 116
118 // The size of the contents area. 117 // The size of the contents area.
119 virtual WebSize contentsSize() const = 0; 118 virtual WebSize contentsSize() const = 0;
120 119
121 // Returns true if the contents (minus scrollbars) has non-zero area. 120 // Returns true if the contents (minus scrollbars) has non-zero area.
122 virtual bool hasVisibleContent() const = 0; 121 virtual bool hasVisibleContent() const = 0;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 private: 330 private:
332 }; 331 };
333 332
334 #if BLINK_IMPLEMENTATION 333 #if BLINK_IMPLEMENTATION
335 Frame* toCoreFrame(const WebFrame*); 334 Frame* toCoreFrame(const WebFrame*);
336 #endif 335 #endif
337 336
338 } // namespace blink 337 } // namespace blink
339 338
340 #endif 339 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/engine/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698