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

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

Issue 2735293002: Rename *isOverWidget* methods to ...isOverFrameViewBase... (Closed)
Patch Set: Rename *isOverWidget* methods to ...isOverFrameViewBase... Created 3 years, 9 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 "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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void resize(const WebMouseEvent&); 88 void resize(const WebMouseEvent&);
89 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this 89 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this
90 // function DCHECKs to make sure that variable is indeed not null. 90 // function DCHECKs to make sure that variable is indeed not null.
91 void clearResizeScrollableArea(bool shouldNotBeNull); 91 void clearResizeScrollableArea(bool shouldNotBeNull);
92 void setResizeScrollableArea(PaintLayer*, IntPoint); 92 void setResizeScrollableArea(PaintLayer*, IntPoint);
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 passScrollGestureEventToWidget(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& startNode, ScrollState&); 103 void customizedScroll(const Node& startNode, ScrollState&);
104 104
105 FrameHost* frameHost() const; 105 FrameHost* frameHost() 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& startNode, 111 void recomputeScrollChain(const Node& startNode,
112 std::deque<int>& scrollChain); 112 std::deque<int>& scrollChain);
113 113
114 // 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
115 // cleared in |ScrollManager::clear()|. 115 // cleared in |ScrollManager::clear()|.
116 116
117 const Member<LocalFrame> m_frame; 117 const Member<LocalFrame> m_frame;
118 118
119 // Only used with the ScrollCustomization runtime enabled feature. 119 // Only used with the ScrollCustomization runtime enabled feature.
120 std::deque<int> m_currentScrollChain; 120 std::deque<int> m_currentScrollChain;
121 121
122 Member<Node> m_scrollGestureHandlingNode; 122 Member<Node> m_scrollGestureHandlingNode;
123 123
124 bool m_lastGestureScrollOverWidget; 124 bool m_lastGestureScrollOverFrameViewBase;
125 125
126 // The most recent element to scroll natively during this scroll 126 // The most recent element to scroll natively during this scroll
127 // sequence. Null if no native element has scrolled this scroll 127 // sequence. Null if no native element has scrolled this scroll
128 // sequence, or if the most recent element to scroll used scroll 128 // sequence, or if the most recent element to scroll used scroll
129 // customization. 129 // customization.
130 Member<Element> m_previousGestureScrolledElement; 130 Member<Element> m_previousGestureScrolledElement;
131 131
132 // True iff some of the delta has been consumed for the current 132 // True iff some of the delta has been consumed for the current
133 // scroll sequence in this frame, or any child frames. Only used 133 // scroll sequence in this frame, or any child frames. Only used
134 // with ScrollCustomization. If some delta has been consumed, a 134 // with ScrollCustomization. If some delta has been consumed, a
135 // scroll which shouldn't propagate can't cause any element to 135 // scroll which shouldn't propagate can't cause any element to
136 // scroll other than the |m_previousGestureScrolledNode|. 136 // scroll other than the |m_previousGestureScrolledNode|.
137 bool m_deltaConsumedForScrollSequence; 137 bool m_deltaConsumedForScrollSequence;
138 138
139 Member<Scrollbar> m_scrollbarHandlingScrollGesture; 139 Member<Scrollbar> m_scrollbarHandlingScrollGesture;
140 140
141 Member<PaintLayerScrollableArea> m_resizeScrollableArea; 141 Member<PaintLayerScrollableArea> m_resizeScrollableArea;
142 142
143 LayoutSize 143 LayoutSize
144 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. 144 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea.
145 }; 145 };
146 146
147 } // namespace blink 147 } // namespace blink
148 148
149 #endif // ScrollManager_h 149 #endif // ScrollManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/ScrollManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698