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

Side by Side Diff: third_party/WebKit/Source/core/input/ScrollManager.h

Issue 2907053004: GSB uses delta_hints to calculate scrolling chain. (Closed)
Patch Set: Merged with master. Created 3 years, 6 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 // 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 private: 94 private:
95 WebInputEventResult HandleGestureScrollUpdate(const WebGestureEvent&); 95 WebInputEventResult HandleGestureScrollUpdate(const WebGestureEvent&);
96 WebInputEventResult HandleGestureScrollBegin(const WebGestureEvent&); 96 WebInputEventResult HandleGestureScrollBegin(const WebGestureEvent&);
97 97
98 WebInputEventResult PassScrollGestureEvent(const WebGestureEvent&, 98 WebInputEventResult PassScrollGestureEvent(const WebGestureEvent&,
99 LayoutObject*); 99 LayoutObject*);
100 100
101 void ClearGestureScrollState(); 101 void ClearGestureScrollState();
102 102
103 void CustomizedScroll(const Node& start_node, ScrollState&); 103 void CustomizedScroll(ScrollState&);
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 const ScrollState&,
112 std::deque<int>& scroll_chain); 113 std::deque<int>& scroll_chain);
114 bool CanScroll(const ScrollState&, const Element* current_element);
113 115
114 // scroller_size is set only when scrolling non root scroller. 116 // scroller_size is set only when scrolling non root scroller.
115 void ComputeScrollRelatedMetrics( 117 void ComputeScrollRelatedMetrics(
116 uint32_t* non_composited_main_thread_scrolling_reasons, 118 uint32_t* non_composited_main_thread_scrolling_reasons,
117 int* scroller_size, 119 int* scroller_size,
118 bool* scroller_size_updated); 120 bool* scroller_size_updated);
119 void RecordScrollRelatedMetrics(const WebGestureDevice); 121 void RecordScrollRelatedMetrics(const WebGestureDevice);
120 122
121 // NOTE: If adding a new field to this class please ensure that it is 123 // NOTE: If adding a new field to this class please ensure that it is
122 // cleared in |ScrollManager::clear()|. 124 // cleared in |ScrollManager::clear()|.
(...skipping 24 matching lines...) Expand all
147 149
148 Member<PaintLayerScrollableArea> resize_scrollable_area_; 150 Member<PaintLayerScrollableArea> resize_scrollable_area_;
149 151
150 LayoutSize 152 LayoutSize
151 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. 153 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea.
152 }; 154 };
153 155
154 } // namespace blink 156 } // namespace blink
155 157
156 #endif // ScrollManager_h 158 #endif // ScrollManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698