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

Side by Side Diff: Source/platform/scroll/ScrollableArea.h

Issue 792513004: Implement CSSOM smooth scroll for Elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // NOTE: Only called from Internals for testing. 192 // NOTE: Only called from Internals for testing.
193 void setScrollOffsetFromInternals(const IntPoint&); 193 void setScrollOffsetFromInternals(const IntPoint&);
194 194
195 IntPoint clampScrollPosition(const IntPoint&) const; 195 IntPoint clampScrollPosition(const IntPoint&) const;
196 196
197 // Let subclasses provide a way of asking for and servicing scroll 197 // Let subclasses provide a way of asking for and servicing scroll
198 // animations. 198 // animations.
199 bool scheduleAnimation(); 199 bool scheduleAnimation();
200 void serviceScrollAnimations(double monotonicTime); 200 void serviceScrollAnimations(double monotonicTime);
201 virtual void registerForAnimation() { }
202 virtual void deregisterForAnimation() { }
201 203
202 virtual bool usesCompositedScrolling() const { return false; } 204 virtual bool usesCompositedScrolling() const { return false; }
203 205
204 // Returns true if the GraphicsLayer tree needs to be rebuilt. 206 // Returns true if the GraphicsLayer tree needs to be rebuilt.
205 virtual bool updateAfterCompositingChange() { return false; } 207 virtual bool updateAfterCompositingChange() { return false; }
206 208
207 virtual bool userInputScrollable(ScrollbarOrientation) const = 0; 209 virtual bool userInputScrollable(ScrollbarOrientation) const = 0;
208 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0; 210 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0;
209 211
210 // Convenience functions 212 // Convenience functions
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // vertical-lr / ltr NO NO 311 // vertical-lr / ltr NO NO
310 // vertical-lr / rtl NO YES 312 // vertical-lr / rtl NO YES
311 // vertical-rl / ltr YES NO 313 // vertical-rl / ltr YES NO
312 // vertical-rl / rtl YES YES 314 // vertical-rl / rtl YES YES
313 IntPoint m_scrollOrigin; 315 IntPoint m_scrollOrigin;
314 }; 316 };
315 317
316 } // namespace blink 318 } // namespace blink
317 319
318 #endif // ScrollableArea_h 320 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollAnimatorNone.cpp ('k') | Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698