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/PlatformEvent.h" | 10 #include "platform/PlatformEvent.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool bubblingScroll(ScrollDirection, | 67 bool bubblingScroll(ScrollDirection, |
68 ScrollGranularity, | 68 ScrollGranularity, |
69 Node* startingNode, | 69 Node* startingNode, |
70 Node* mousePressNode); | 70 Node* mousePressNode); |
71 | 71 |
72 void setFrameWasScrolledByUser(); | 72 void setFrameWasScrolledByUser(); |
73 | 73 |
74 // TODO(crbug.com/616491): Consider moving all gesture related functions to | 74 // TODO(crbug.com/616491): Consider moving all gesture related functions to |
75 // another class. | 75 // another class. |
76 | 76 |
77 // Handle the provided scroll gesture event, propagating down to child frames
as necessary. | 77 // Handle the provided scroll gesture event, propagating down to child frames |
| 78 // as necessary. |
78 WebInputEventResult handleGestureScrollEvent(const PlatformGestureEvent&); | 79 WebInputEventResult handleGestureScrollEvent(const PlatformGestureEvent&); |
79 | 80 |
80 WebInputEventResult handleGestureScrollEnd(const PlatformGestureEvent&); | 81 WebInputEventResult handleGestureScrollEnd(const PlatformGestureEvent&); |
81 | 82 |
82 bool isScrollbarHandlingGestures() const; | 83 bool isScrollbarHandlingGestures() const; |
83 | 84 |
84 // Returns true if the gesture event should be handled in ScrollManager. | 85 // Returns true if the gesture event should be handled in ScrollManager. |
85 bool canHandleGestureEvent(const GestureEventWithHitTestResults&); | 86 bool canHandleGestureEvent(const GestureEventWithHitTestResults&); |
86 | 87 |
87 // These functions are related to |m_resizeScrollableArea|. | 88 // These functions are related to |m_resizeScrollableArea|. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 143 |
143 Member<PaintLayerScrollableArea> m_resizeScrollableArea; | 144 Member<PaintLayerScrollableArea> m_resizeScrollableArea; |
144 | 145 |
145 LayoutSize | 146 LayoutSize |
146 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. | 147 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. |
147 }; | 148 }; |
148 | 149 |
149 } // namespace blink | 150 } // namespace blink |
150 | 151 |
151 #endif // ScrollManager_h | 152 #endif // ScrollManager_h |
OLD | NEW |