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

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

Issue 1587073011: Plumb NotifyAnimationAborted from the compositor to blink animation delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize aborted_ in unittest Created 4 years, 11 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 221 void notifyCompositorAnimationFinished(int groupId);
222 void notifyCompositorAnimationAborted(int groupId);
222 223
223 virtual bool usesCompositedScrolling() const { return false; } 224 virtual bool usesCompositedScrolling() const { return false; }
224 225
225 // Returns true if the GraphicsLayer tree needs to be rebuilt. 226 // Returns true if the GraphicsLayer tree needs to be rebuilt.
226 virtual bool updateAfterCompositingChange() { return false; } 227 virtual bool updateAfterCompositingChange() { return false; }
227 228
228 virtual bool userInputScrollable(ScrollbarOrientation) const = 0; 229 virtual bool userInputScrollable(ScrollbarOrientation) const = 0;
229 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0; 230 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0;
230 231
231 // Convenience functions 232 // Convenience functions
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // vertical-lr / ltr NO NO 354 // vertical-lr / ltr NO NO
354 // vertical-lr / rtl NO YES 355 // vertical-lr / rtl NO YES
355 // vertical-rl / ltr YES NO 356 // vertical-rl / ltr YES NO
356 // vertical-rl / rtl YES YES 357 // vertical-rl / rtl YES YES
357 IntPoint m_scrollOrigin; 358 IntPoint m_scrollOrigin;
358 }; 359 };
359 360
360 } // namespace blink 361 } // namespace blink
361 362
362 #endif // ScrollableArea_h 363 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698