| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ScrollManager_h | 5 #ifndef ScrollManager_h |
| 6 #define ScrollManager_h | 6 #define ScrollManager_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/page/EventWithHitTestResults.h" | 9 #include "core/page/EventWithHitTestResults.h" |
| 10 #include "platform/geometry/LayoutSize.h" | 10 #include "platform/geometry/LayoutSize.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 Page* GetPage() const; | 105 Page* GetPage() const; |
| 106 | 106 |
| 107 bool IsViewportScrollingElement(const Element&) const; | 107 bool IsViewportScrollingElement(const Element&) const; |
| 108 | 108 |
| 109 bool HandleScrollGestureOnResizer(Node*, const WebGestureEvent&); | 109 bool HandleScrollGestureOnResizer(Node*, const WebGestureEvent&); |
| 110 | 110 |
| 111 void RecomputeScrollChain(const Node& start_node, | 111 void RecomputeScrollChain(const Node& start_node, |
| 112 std::deque<int>& scroll_chain); | 112 std::deque<int>& scroll_chain); |
| 113 | 113 |
| 114 uint32_t ComputeNonCompositedMainThreadScrollingReasons(); | |
| 115 void RecordNonCompositedMainThreadScrollingReasons(const WebGestureDevice); | |
| 116 | |
| 117 // NOTE: If adding a new field to this class please ensure that it is | 114 // NOTE: If adding a new field to this class please ensure that it is |
| 118 // cleared in |ScrollManager::clear()|. | 115 // cleared in |ScrollManager::clear()|. |
| 119 | 116 |
| 120 const Member<LocalFrame> frame_; | 117 const Member<LocalFrame> frame_; |
| 121 | 118 |
| 122 // Only used with the ScrollCustomization runtime enabled feature. | 119 // Only used with the ScrollCustomization runtime enabled feature. |
| 123 std::deque<int> current_scroll_chain_; | 120 std::deque<int> current_scroll_chain_; |
| 124 | 121 |
| 125 Member<Node> scroll_gesture_handling_node_; | 122 Member<Node> scroll_gesture_handling_node_; |
| 126 | 123 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 143 | 140 |
| 144 Member<PaintLayerScrollableArea> resize_scrollable_area_; | 141 Member<PaintLayerScrollableArea> resize_scrollable_area_; |
| 145 | 142 |
| 146 LayoutSize | 143 LayoutSize |
| 147 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. | 144 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. |
| 148 }; | 145 }; |
| 149 | 146 |
| 150 } // namespace blink | 147 } // namespace blink |
| 151 | 148 |
| 152 #endif // ScrollManager_h | 149 #endif // ScrollManager_h |
| OLD | NEW |