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

Side by Side Diff: Source/core/page/scrolling/ScrollingCoordinator.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 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 30 matching lines...) Expand all
41 namespace blink { 41 namespace blink {
42 42
43 typedef unsigned MainThreadScrollingReasons; 43 typedef unsigned MainThreadScrollingReasons;
44 44
45 class LocalFrame; 45 class LocalFrame;
46 class FrameView; 46 class FrameView;
47 class GraphicsLayer; 47 class GraphicsLayer;
48 class Page; 48 class Page;
49 class Region; 49 class Region;
50 class ScrollableArea; 50 class ScrollableArea;
51 class WebCompositorAnimationTimeline;
51 52
52 class CORE_EXPORT ScrollingCoordinator final : public NoBaseWillBeGarbageCollect edFinalized<ScrollingCoordinator> { 53 class CORE_EXPORT ScrollingCoordinator final : public NoBaseWillBeGarbageCollect edFinalized<ScrollingCoordinator> {
53 WTF_MAKE_NONCOPYABLE(ScrollingCoordinator); 54 WTF_MAKE_NONCOPYABLE(ScrollingCoordinator);
54 public: 55 public:
55 static PassOwnPtrWillBeRawPtr<ScrollingCoordinator> create(Page*); 56 static PassOwnPtrWillBeRawPtr<ScrollingCoordinator> create(Page*);
56 57
57 ~ScrollingCoordinator(); 58 ~ScrollingCoordinator();
58 DECLARE_TRACE(); 59 DECLARE_TRACE();
59 60
60 void willBeDestroyed(); 61 void willBeDestroyed();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 void setShouldHandleScrollGestureOnMainThreadRegion(const Region&); 145 void setShouldHandleScrollGestureOnMainThreadRegion(const Region&);
145 void setTouchEventTargetRects(LayerHitTestRects&); 146 void setTouchEventTargetRects(LayerHitTestRects&);
146 void computeTouchEventTargetRects(LayerHitTestRects&); 147 void computeTouchEventTargetRects(LayerHitTestRects&);
147 148
148 WebScrollbarLayer* addWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio n, PassOwnPtr<WebScrollbarLayer>); 149 WebScrollbarLayer* addWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio n, PassOwnPtr<WebScrollbarLayer>);
149 WebScrollbarLayer* getWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio n); 150 WebScrollbarLayer* getWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio n);
150 void removeWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation); 151 void removeWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation);
151 152
152 bool frameViewIsDirty() const; 153 bool frameViewIsDirty() const;
153 154
155 OwnPtr<WebCompositorAnimationTimeline> m_programmaticScrollAnimatorTimeline;
156
154 using ScrollbarMap = WillBeHeapHashMap<RawPtrWillBeMember<ScrollableArea>, O wnPtr<WebScrollbarLayer>>; 157 using ScrollbarMap = WillBeHeapHashMap<RawPtrWillBeMember<ScrollableArea>, O wnPtr<WebScrollbarLayer>>;
155 ScrollbarMap m_horizontalScrollbars; 158 ScrollbarMap m_horizontalScrollbars;
156 ScrollbarMap m_verticalScrollbars; 159 ScrollbarMap m_verticalScrollbars;
157 HashSet<const DeprecatedPaintLayer*> m_layersWithTouchRects; 160 HashSet<const DeprecatedPaintLayer*> m_layersWithTouchRects;
158 bool m_wasFrameScrollable; 161 bool m_wasFrameScrollable;
159 162
160 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; 163 MainThreadScrollingReasons m_lastMainThreadScrollingReasons;
161 }; 164 };
162 165
163 } // namespace blink 166 } // namespace blink
164 167
165 #endif // ScrollingCoordinator_h 168 #endif // ScrollingCoordinator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698