OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |