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

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

Issue 2773893003: Record size of scroller that user scrolls (Closed)
Patch Set: nit Created 3 years, 8 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); 114 void ComputeScrollRelatedMetrics(
flackr 2017/04/21 00:56:35 Document that scroller_size is set only if there i
yigu 2017/04/21 12:20:33 Done.
115 void RecordNonCompositedMainThreadScrollingReasons(const WebGestureDevice); 115 uint32_t* non_composited_main_thread_scrolling_reasons,
116 int* scroller_size);
117 void RecordScrollRelatedMetrics(const WebGestureDevice);
116 118
117 // NOTE: If adding a new field to this class please ensure that it is 119 // NOTE: If adding a new field to this class please ensure that it is
118 // cleared in |ScrollManager::clear()|. 120 // cleared in |ScrollManager::clear()|.
119 121
120 const Member<LocalFrame> frame_; 122 const Member<LocalFrame> frame_;
121 123
122 // Only used with the ScrollCustomization runtime enabled feature. 124 // Only used with the ScrollCustomization runtime enabled feature.
123 std::deque<int> current_scroll_chain_; 125 std::deque<int> current_scroll_chain_;
124 126
125 Member<Node> scroll_gesture_handling_node_; 127 Member<Node> scroll_gesture_handling_node_;
(...skipping 17 matching lines...) Expand all
143 145
144 Member<PaintLayerScrollableArea> resize_scrollable_area_; 146 Member<PaintLayerScrollableArea> resize_scrollable_area_;
145 147
146 LayoutSize 148 LayoutSize
147 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. 149 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea.
148 }; 150 };
149 151
150 } // namespace blink 152 } // namespace blink
151 153
152 #endif // ScrollManager_h 154 #endif // ScrollManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698