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

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

Issue 1739743003: Blink Compositor Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude histograms.xml Created 4 years, 9 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 DoublePoint clampScrollPosition(const DoublePoint&) const; 211 DoublePoint clampScrollPosition(const DoublePoint&) const;
212 212
213 // Let subclasses provide a way of asking for and servicing scroll 213 // Let subclasses provide a way of asking for and servicing scroll
214 // animations. 214 // animations.
215 virtual bool scheduleAnimation(); 215 virtual bool scheduleAnimation();
216 virtual void serviceScrollAnimations(double monotonicTime); 216 virtual void serviceScrollAnimations(double monotonicTime);
217 virtual void updateCompositorScrollAnimations(); 217 virtual void updateCompositorScrollAnimations();
218 virtual void registerForAnimation() { } 218 virtual void registerForAnimation() { }
219 virtual void deregisterForAnimation() { } 219 virtual void deregisterForAnimation() { }
220 220
221 void notifyCompositorAnimationFinished(int groupId);
222 void notifyCompositorAnimationAborted(int groupId);
223
224 virtual bool usesCompositedScrolling() const { return false; } 221 virtual bool usesCompositedScrolling() const { return false; }
225 virtual bool shouldScrollOnMainThread() const; 222 virtual bool shouldScrollOnMainThread() const;
226 223
227 // Returns true if the GraphicsLayer tree needs to be rebuilt. 224 // Returns true if the GraphicsLayer tree needs to be rebuilt.
228 virtual bool updateAfterCompositingChange() { return false; } 225 virtual bool updateAfterCompositingChange() { return false; }
229 226
230 virtual bool userInputScrollable(ScrollbarOrientation) const = 0; 227 virtual bool userInputScrollable(ScrollbarOrientation) const = 0;
231 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0; 228 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0;
232 229
233 // Convenience functions 230 // Convenience functions
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // vertical-lr / ltr NO NO 355 // vertical-lr / ltr NO NO
359 // vertical-lr / rtl NO YES 356 // vertical-lr / rtl NO YES
360 // vertical-rl / ltr YES NO 357 // vertical-rl / ltr YES NO
361 // vertical-rl / rtl YES YES 358 // vertical-rl / rtl YES YES
362 IntPoint m_scrollOrigin; 359 IntPoint m_scrollOrigin;
363 }; 360 };
364 361
365 } // namespace blink 362 } // namespace blink
366 363
367 #endif // ScrollableArea_h 364 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698