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

Side by Side Diff: public/platform/WebLayer.h

Issue 215033003: Remove WebLayer::maxScrollPosition(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove WebLayer::maxScrollPosition(). Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/ScrollingCoordinatorChromiumTest.cpp ('k') | no next file » | 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 // A layer will not respect any clips established by layers between it and 167 // A layer will not respect any clips established by layers between it and
168 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. 168 // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
169 // This is not a requirement of the scroll parent. 169 // This is not a requirement of the scroll parent.
170 virtual void setClipParent(WebLayer*) = 0; 170 virtual void setClipParent(WebLayer*) = 0;
171 171
172 // Scrolling 172 // Scrolling
173 virtual void setScrollPosition(WebPoint) = 0; 173 virtual void setScrollPosition(WebPoint) = 0;
174 virtual WebPoint scrollPosition() const = 0; 174 virtual WebPoint scrollPosition() const = 0;
175 175
176 virtual WebSize maxScrollPosition() const = 0;
177
178 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. 176 // To set a WebLayer as scrollable we must specify the corresponding clip la yer.
179 virtual void setScrollClipLayer(WebLayer*) = 0; 177 virtual void setScrollClipLayer(WebLayer*) = 0;
180 virtual bool scrollable() const = 0; 178 virtual bool scrollable() const = 0;
181 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; 179 virtual void setUserScrollable(bool horizontal, bool vertical) = 0;
182 virtual bool userScrollableHorizontal() const = 0; 180 virtual bool userScrollableHorizontal() const = 0;
183 virtual bool userScrollableVertical() const = 0; 181 virtual bool userScrollableVertical() const = 0;
184 182
185 virtual void setHaveWheelEventHandlers(bool) = 0; 183 virtual void setHaveWheelEventHandlers(bool) = 0;
186 virtual bool haveWheelEventHandlers() const = 0; 184 virtual bool haveWheelEventHandlers() const = 0;
187 185
(...skipping 27 matching lines...) Expand all
215 213
216 // True if the layer is not part of a tree attached to a WebLayerTreeView. 214 // True if the layer is not part of a tree attached to a WebLayerTreeView.
217 virtual bool isOrphan() const = 0; 215 virtual bool isOrphan() const = 0;
218 216
219 virtual void setWebLayerClient(WebLayerClient*) = 0; 217 virtual void setWebLayerClient(WebLayerClient*) = 0;
220 }; 218 };
221 219
222 } // namespace blink 220 } // namespace blink
223 221
224 #endif // WebLayer_h 222 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « Source/web/tests/ScrollingCoordinatorChromiumTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698