| 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 <deque> | 8 #include <deque> |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/page/EventWithHitTestResults.h" | 10 #include "core/page/EventWithHitTestResults.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 Page* GetPage() const; | 106 Page* GetPage() const; |
| 107 | 107 |
| 108 bool IsViewportScrollingElement(const Element&) const; | 108 bool IsViewportScrollingElement(const Element&) const; |
| 109 | 109 |
| 110 bool HandleScrollGestureOnResizer(Node*, const WebGestureEvent&); | 110 bool HandleScrollGestureOnResizer(Node*, const WebGestureEvent&); |
| 111 | 111 |
| 112 void RecomputeScrollChain(const Node& start_node, | 112 void RecomputeScrollChain(const Node& start_node, |
| 113 const ScrollState&, | 113 const ScrollState&, |
| 114 std::deque<int>& scroll_chain); | 114 std::deque<int>& scroll_chain); |
| 115 bool CanScroll(const ScrollState&, const Element& current_element); | 115 bool CanScroll(const ScrollState&, const Element& current_element); |
| 116 bool CanPropagate(const ScrollState&, const Element& current_element); |
| 116 | 117 |
| 117 // scroller_size is set only when scrolling non root scroller. | 118 // scroller_size is set only when scrolling non root scroller. |
| 118 void ComputeScrollRelatedMetrics( | 119 void ComputeScrollRelatedMetrics( |
| 119 uint32_t* non_composited_main_thread_scrolling_reasons, | 120 uint32_t* non_composited_main_thread_scrolling_reasons, |
| 120 int* scroller_size, | 121 int* scroller_size, |
| 121 bool* scroller_size_updated); | 122 bool* scroller_size_updated); |
| 122 void RecordScrollRelatedMetrics(const WebGestureDevice); | 123 void RecordScrollRelatedMetrics(const WebGestureDevice); |
| 123 | 124 |
| 124 // NOTE: If adding a new field to this class please ensure that it is | 125 // NOTE: If adding a new field to this class please ensure that it is |
| 125 // cleared in |ScrollManager::clear()|. | 126 // cleared in |ScrollManager::clear()|. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 150 | 151 |
| 151 Member<PaintLayerScrollableArea> resize_scrollable_area_; | 152 Member<PaintLayerScrollableArea> resize_scrollable_area_; |
| 152 | 153 |
| 153 LayoutSize | 154 LayoutSize |
| 154 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. | 155 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace blink | 158 } // namespace blink |
| 158 | 159 |
| 159 #endif // ScrollManager_h | 160 #endif // ScrollManager_h |
| OLD | NEW |