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

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

Issue 1133513002: Animations: Port ProgrammaticScrollAnimator to use compositor timelines (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@linkhigh
Patch Set: Mark subframe-interrupted-scroll as flaky Created 5 years, 5 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 28 matching lines...) Expand all
39 namespace blink { 39 namespace blink {
40 40
41 class DoubleRect; 41 class DoubleRect;
42 class FloatPoint; 42 class FloatPoint;
43 class GraphicsLayer; 43 class GraphicsLayer;
44 class HostWindow; 44 class HostWindow;
45 class PlatformWheelEvent; 45 class PlatformWheelEvent;
46 class ProgrammaticScrollAnimator; 46 class ProgrammaticScrollAnimator;
47 struct ScrollAlignment; 47 struct ScrollAlignment;
48 class ScrollAnimator; 48 class ScrollAnimator;
49 class WebCompositorAnimationTimeline;
49 50
50 enum ScrollBehavior { 51 enum ScrollBehavior {
51 ScrollBehaviorAuto, 52 ScrollBehaviorAuto,
52 ScrollBehaviorInstant, 53 ScrollBehaviorInstant,
53 ScrollBehaviorSmooth, 54 ScrollBehaviorSmooth,
54 }; 55 };
55 56
56 enum IncludeScrollbarsInRect { 57 enum IncludeScrollbarsInRect {
57 ExcludeScrollbars, 58 ExcludeScrollbars,
58 IncludeScrollbars, 59 IncludeScrollbars,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 262
262 virtual GraphicsLayer* layerForContainer() const; 263 virtual GraphicsLayer* layerForContainer() const;
263 virtual GraphicsLayer* layerForScrolling() const { return 0; } 264 virtual GraphicsLayer* layerForScrolling() const { return 0; }
264 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; } 265 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; }
265 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; } 266 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; }
266 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } 267 virtual GraphicsLayer* layerForScrollCorner() const { return 0; }
267 bool hasLayerForHorizontalScrollbar() const; 268 bool hasLayerForHorizontalScrollbar() const;
268 bool hasLayerForVerticalScrollbar() const; 269 bool hasLayerForVerticalScrollbar() const;
269 bool hasLayerForScrollCorner() const; 270 bool hasLayerForScrollCorner() const;
270 271
271 void layerForScrollingDidChange(); 272 void layerForScrollingDidChange(WebCompositorAnimationTimeline*);
272 273
273 void cancelScrollAnimation(); 274 void cancelScrollAnimation();
274 void cancelProgrammaticScrollAnimation(); 275 void cancelProgrammaticScrollAnimation();
275 276
276 virtual ~ScrollableArea(); 277 virtual ~ScrollableArea();
277 278
278 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; 279 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0;
279 virtual void invalidateScrollCornerRect(const IntRect&) = 0; 280 virtual void invalidateScrollCornerRect(const IntRect&) = 0;
280 281
281 // Returns the default scroll style this area should scroll with when not 282 // Returns the default scroll style this area should scroll with when not
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // vertical-lr / ltr NO NO 367 // vertical-lr / ltr NO NO
367 // vertical-lr / rtl NO YES 368 // vertical-lr / rtl NO YES
368 // vertical-rl / ltr YES NO 369 // vertical-rl / ltr YES NO
369 // vertical-rl / rtl YES YES 370 // vertical-rl / rtl YES YES
370 IntPoint m_scrollOrigin; 371 IntPoint m_scrollOrigin;
371 }; 372 };
372 373
373 } // namespace blink 374 } // namespace blink
374 375
375 #endif // ScrollableArea_h 376 #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