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

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

Issue 1131833002: [Sketch] Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scroll
Patch Set: Delete more. Created 5 years, 7 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) 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 IntPoint clampScrollPosition(const IntPoint&) const; 198 IntPoint clampScrollPosition(const IntPoint&) const;
199 199
200 // Let subclasses provide a way of asking for and servicing scroll 200 // Let subclasses provide a way of asking for and servicing scroll
201 // animations. 201 // animations.
202 bool scheduleAnimation(); 202 bool scheduleAnimation();
203 void serviceScrollAnimations(double monotonicTime); 203 void serviceScrollAnimations(double monotonicTime);
204 void updateCompositorScrollAnimations(); 204 void updateCompositorScrollAnimations();
205 virtual void registerForAnimation() { } 205 virtual void registerForAnimation() { }
206 virtual void deregisterForAnimation() { } 206 virtual void deregisterForAnimation() { }
207 207
208 void notifyCompositorAnimationFinished(int groupId);
209
210 virtual bool usesCompositedScrolling() const { return false; } 208 virtual bool usesCompositedScrolling() const { return false; }
211 209
212 // Returns true if the GraphicsLayer tree needs to be rebuilt. 210 // Returns true if the GraphicsLayer tree needs to be rebuilt.
213 virtual bool updateAfterCompositingChange() { return false; } 211 virtual bool updateAfterCompositingChange() { return false; }
214 212
215 virtual bool userInputScrollable(ScrollbarOrientation) const = 0; 213 virtual bool userInputScrollable(ScrollbarOrientation) const = 0;
216 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0; 214 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0;
217 215
218 // Convenience functions 216 // Convenience functions
219 int scrollPosition(ScrollbarOrientation orientation) { return orientation == HorizontalScrollbar ? scrollPosition().x() : scrollPosition().y(); } 217 int scrollPosition(ScrollbarOrientation orientation) { return orientation == HorizontalScrollbar ? scrollPosition().x() : scrollPosition().y(); }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // vertical-lr / ltr NO NO 314 // vertical-lr / ltr NO NO
317 // vertical-lr / rtl NO YES 315 // vertical-lr / rtl NO YES
318 // vertical-rl / ltr YES NO 316 // vertical-rl / ltr YES NO
319 // vertical-rl / rtl YES YES 317 // vertical-rl / rtl YES YES
320 IntPoint m_scrollOrigin; 318 IntPoint m_scrollOrigin;
321 }; 319 };
322 320
323 } // namespace blink 321 } // namespace blink
324 322
325 #endif // ScrollableArea_h 323 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/platform/scroll/ProgrammaticScrollAnimator.cpp ('k') | Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698