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

Side by Side Diff: sky/engine/platform/scroll/ScrollableArea.h

Issue 712573003: Remove usesCompositedScrolling (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar 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/RenderLayerScrollableArea.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) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // NOTE: Only called from Internals for testing. 162 // NOTE: Only called from Internals for testing.
163 void setScrollOffsetFromInternals(const IntPoint&); 163 void setScrollOffsetFromInternals(const IntPoint&);
164 164
165 IntPoint clampScrollPosition(const IntPoint&) const; 165 IntPoint clampScrollPosition(const IntPoint&) const;
166 166
167 // Let subclasses provide a way of asking for and servicing scroll 167 // Let subclasses provide a way of asking for and servicing scroll
168 // animations. 168 // animations.
169 bool scheduleAnimation(); 169 bool scheduleAnimation();
170 void serviceScrollAnimations(double monotonicTime); 170 void serviceScrollAnimations(double monotonicTime);
171 171
172 virtual bool usesCompositedScrolling() const { return false; }
173
174 // Returns true if the GraphicsLayer tree needs to be rebuilt. 172 // Returns true if the GraphicsLayer tree needs to be rebuilt.
175 virtual bool updateAfterCompositingChange() { return false; } 173 virtual bool updateAfterCompositingChange() { return false; }
176 174
177 virtual bool userInputScrollable(ScrollbarOrientation) const = 0; 175 virtual bool userInputScrollable(ScrollbarOrientation) const = 0;
178 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0; 176 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0;
179 177
180 // Convenience functions 178 // Convenience functions
181 int scrollPosition(ScrollbarOrientation orientation) { return orientation == HorizontalScrollbar ? scrollPosition().x() : scrollPosition().y(); } 179 int scrollPosition(ScrollbarOrientation orientation) { return orientation == HorizontalScrollbar ? scrollPosition().x() : scrollPosition().y(); }
182 int minimumScrollPosition(ScrollbarOrientation orientation) { return orienta tion == HorizontalScrollbar ? minimumScrollPosition().x() : minimumScrollPositio n().y(); } 180 int minimumScrollPosition(ScrollbarOrientation orientation) { return orienta tion == HorizontalScrollbar ? minimumScrollPosition().x() : minimumScrollPositio n().y(); }
183 int maximumScrollPosition(ScrollbarOrientation orientation) { return orienta tion == HorizontalScrollbar ? maximumScrollPosition().x() : maximumScrollPositio n().y(); } 181 int maximumScrollPosition(ScrollbarOrientation orientation) { return orienta tion == HorizontalScrollbar ? maximumScrollPosition().x() : maximumScrollPositio n().y(); }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // vertical-lr / ltr NO NO 265 // vertical-lr / ltr NO NO
268 // vertical-lr / rtl NO YES 266 // vertical-lr / rtl NO YES
269 // vertical-rl / ltr YES NO 267 // vertical-rl / ltr YES NO
270 // vertical-rl / rtl YES YES 268 // vertical-rl / rtl YES YES
271 IntPoint m_scrollOrigin; 269 IntPoint m_scrollOrigin;
272 }; 270 };
273 271
274 } // namespace blink 272 } // namespace blink
275 273
276 #endif // ScrollableArea_h 274 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698