| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 using MainThreadScrollingReasons = uint32_t; | 44 using MainThreadScrollingReasons = uint32_t; |
| 45 | 45 |
| 46 class LocalFrame; | 46 class LocalFrame; |
| 47 class FrameView; | 47 class FrameView; |
| 48 class GraphicsLayer; | 48 class GraphicsLayer; |
| 49 class Page; | 49 class Page; |
| 50 class Region; | 50 class Region; |
| 51 class ScrollableArea; | 51 class ScrollableArea; |
| 52 class WebCompositorAnimationTimeline; | 52 class CompositorAnimationTimeline; |
| 53 class WebLayerTreeView; | 53 class WebLayerTreeView; |
| 54 | 54 |
| 55 class CORE_EXPORT ScrollingCoordinator final : public NoBaseWillBeGarbageCollect
edFinalized<ScrollingCoordinator> { | 55 class CORE_EXPORT ScrollingCoordinator final : public NoBaseWillBeGarbageCollect
edFinalized<ScrollingCoordinator> { |
| 56 WTF_MAKE_NONCOPYABLE(ScrollingCoordinator); | 56 WTF_MAKE_NONCOPYABLE(ScrollingCoordinator); |
| 57 USING_FAST_MALLOC_WILL_BE_REMOVED(ScrollingCoordinator); | 57 USING_FAST_MALLOC_WILL_BE_REMOVED(ScrollingCoordinator); |
| 58 public: | 58 public: |
| 59 static PassOwnPtrWillBeRawPtr<ScrollingCoordinator> create(Page*); | 59 static PassOwnPtrWillBeRawPtr<ScrollingCoordinator> create(Page*); |
| 60 | 60 |
| 61 ~ScrollingCoordinator(); | 61 ~ScrollingCoordinator(); |
| 62 DECLARE_TRACE(); | 62 DECLARE_TRACE(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void setShouldHandleScrollGestureOnMainThreadRegion(const Region&); | 144 void setShouldHandleScrollGestureOnMainThreadRegion(const Region&); |
| 145 void setTouchEventTargetRects(LayerHitTestRects&); | 145 void setTouchEventTargetRects(LayerHitTestRects&); |
| 146 void computeTouchEventTargetRects(LayerHitTestRects&); | 146 void computeTouchEventTargetRects(LayerHitTestRects&); |
| 147 | 147 |
| 148 WebScrollbarLayer* addWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio
n, PassOwnPtr<WebScrollbarLayer>); | 148 WebScrollbarLayer* addWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio
n, PassOwnPtr<WebScrollbarLayer>); |
| 149 WebScrollbarLayer* getWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio
n); | 149 WebScrollbarLayer* getWebScrollbarLayer(ScrollableArea*, ScrollbarOrientatio
n); |
| 150 void removeWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation); | 150 void removeWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation); |
| 151 | 151 |
| 152 bool frameViewIsDirty() const; | 152 bool frameViewIsDirty() const; |
| 153 | 153 |
| 154 OwnPtr<WebCompositorAnimationTimeline> m_programmaticScrollAnimatorTimeline; | 154 OwnPtr<CompositorAnimationTimeline> m_programmaticScrollAnimatorTimeline; |
| 155 | 155 |
| 156 using ScrollbarMap = WillBeHeapHashMap<RawPtrWillBeMember<ScrollableArea>, O
wnPtr<WebScrollbarLayer>>; | 156 using ScrollbarMap = WillBeHeapHashMap<RawPtrWillBeMember<ScrollableArea>, O
wnPtr<WebScrollbarLayer>>; |
| 157 ScrollbarMap m_horizontalScrollbars; | 157 ScrollbarMap m_horizontalScrollbars; |
| 158 ScrollbarMap m_verticalScrollbars; | 158 ScrollbarMap m_verticalScrollbars; |
| 159 HashSet<const PaintLayer*> m_layersWithTouchRects; | 159 HashSet<const PaintLayer*> m_layersWithTouchRects; |
| 160 bool m_wasFrameScrollable; | 160 bool m_wasFrameScrollable; |
| 161 | 161 |
| 162 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; | 162 MainThreadScrollingReasons m_lastMainThreadScrollingReasons; |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // namespace blink | 165 } // namespace blink |
| 166 | 166 |
| 167 #endif // ScrollingCoordinator_h | 167 #endif // ScrollingCoordinator_h |
| OLD | NEW |