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

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

Issue 2651793012: [RootLayerScrolls] Annotate non-fast-scroll regions to correct layer (Closed)
Patch Set: Created 3 years, 10 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 23 matching lines...) Expand all
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "platform/scroll/ScrollAnimatorBase.h" 35 #include "platform/scroll/ScrollAnimatorBase.h"
36 #include "platform/scroll/ScrollTypes.h" 36 #include "platform/scroll/ScrollTypes.h"
37 #include "platform/scroll/Scrollbar.h" 37 #include "platform/scroll/Scrollbar.h"
38 #include "wtf/MathExtras.h" 38 #include "wtf/MathExtras.h"
39 #include "wtf/Noncopyable.h" 39 #include "wtf/Noncopyable.h"
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class ClientRectList;
44 class CompositorAnimationHost; 45 class CompositorAnimationHost;
45 class CompositorAnimationTimeline; 46 class CompositorAnimationTimeline;
46 class GraphicsLayer; 47 class GraphicsLayer;
47 class HostWindow; 48 class HostWindow;
48 class LayoutBox; 49 class LayoutBox;
49 class LayoutObject; 50 class LayoutObject;
50 class PaintLayer; 51 class PaintLayer;
51 class ProgrammaticScrollAnimator; 52 class ProgrammaticScrollAnimator;
52 struct ScrollAlignment; 53 struct ScrollAlignment;
53 class ScrollAnchor; 54 class ScrollAnchor;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } 300 virtual GraphicsLayer* layerForScrollCorner() const { return 0; }
300 bool hasLayerForHorizontalScrollbar() const; 301 bool hasLayerForHorizontalScrollbar() const;
301 bool hasLayerForVerticalScrollbar() const; 302 bool hasLayerForVerticalScrollbar() const;
302 bool hasLayerForScrollCorner() const; 303 bool hasLayerForScrollCorner() const;
303 304
304 void layerForScrollingDidChange(CompositorAnimationTimeline*); 305 void layerForScrollingDidChange(CompositorAnimationTimeline*);
305 306
306 void cancelScrollAnimation(); 307 void cancelScrollAnimation();
307 virtual void cancelProgrammaticScrollAnimation(); 308 virtual void cancelProgrammaticScrollAnimation();
308 309
310 virtual ClientRectList* nonFastScrollableRects() const { return 0; }
311
309 virtual ~ScrollableArea(); 312 virtual ~ScrollableArea();
310 313
311 // Called when any of horizontal scrollbar, vertical scrollbar and scroll 314 // Called when any of horizontal scrollbar, vertical scrollbar and scroll
312 // corner is setNeedsPaintInvalidation. 315 // corner is setNeedsPaintInvalidation.
313 virtual void scrollControlWasSetNeedsPaintInvalidation() = 0; 316 virtual void scrollControlWasSetNeedsPaintInvalidation() = 0;
314 317
315 // Returns the default scroll style this area should scroll with when not 318 // Returns the default scroll style this area should scroll with when not
316 // explicitly specified. E.g. The scrolling behavior of an element can be 319 // explicitly specified. E.g. The scrolling behavior of an element can be
317 // specified in CSS. 320 // specified in CSS.
318 virtual ScrollBehavior scrollBehaviorStyle() const { 321 virtual ScrollBehavior scrollBehaviorStyle() const {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 // vertical-lr / ltr NO NO 449 // vertical-lr / ltr NO NO
447 // vertical-lr / rtl NO YES 450 // vertical-lr / rtl NO YES
448 // vertical-rl / ltr YES NO 451 // vertical-rl / ltr YES NO
449 // vertical-rl / rtl YES YES 452 // vertical-rl / rtl YES YES
450 IntPoint m_scrollOrigin; 453 IntPoint m_scrollOrigin;
451 }; 454 };
452 455
453 } // namespace blink 456 } // namespace blink
454 457
455 #endif // ScrollableArea_h 458 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698