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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 WebInputEventResult handleGestureScrollEnd(const WebGestureEvent&); | 80 WebInputEventResult handleGestureScrollEnd(const WebGestureEvent&); |
81 | 81 |
82 bool isScrollbarHandlingGestures() const; | 82 bool isScrollbarHandlingGestures() const; |
83 | 83 |
84 // Returns true if the gesture event should be handled in ScrollManager. | 84 // Returns true if the gesture event should be handled in ScrollManager. |
85 bool canHandleGestureEvent(const GestureEventWithHitTestResults&); | 85 bool canHandleGestureEvent(const GestureEventWithHitTestResults&); |
86 | 86 |
87 // These functions are related to |m_resizeScrollableArea|. | 87 // These functions are related to |m_resizeScrollableArea|. |
88 bool inResizeMode() const; | 88 bool inResizeMode() const; |
89 void resize(const PlatformMouseEvent&); | 89 void resize(const WebMouseEvent&); |
90 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this | 90 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this |
91 // function DCHECKs to make sure that variable is indeed not null. | 91 // function DCHECKs to make sure that variable is indeed not null. |
92 void clearResizeScrollableArea(bool shouldNotBeNull); | 92 void clearResizeScrollableArea(bool shouldNotBeNull); |
93 void setResizeScrollableArea(PaintLayer*, IntPoint); | 93 void setResizeScrollableArea(PaintLayer*, IntPoint); |
94 | 94 |
95 private: | 95 private: |
96 WebInputEventResult handleGestureScrollUpdate(const WebGestureEvent&); | 96 WebInputEventResult handleGestureScrollUpdate(const WebGestureEvent&); |
97 WebInputEventResult handleGestureScrollBegin(const WebGestureEvent&); | 97 WebInputEventResult handleGestureScrollBegin(const WebGestureEvent&); |
98 | 98 |
99 WebInputEventResult passScrollGestureEventToWidget(const WebGestureEvent&, | 99 WebInputEventResult passScrollGestureEventToWidget(const WebGestureEvent&, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 Member<PaintLayerScrollableArea> m_resizeScrollableArea; | 142 Member<PaintLayerScrollableArea> m_resizeScrollableArea; |
143 | 143 |
144 LayoutSize | 144 LayoutSize |
145 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. | 145 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. |
146 }; | 146 }; |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
149 | 149 |
150 #endif // ScrollManager_h | 150 #endif // ScrollManager_h |
OLD | NEW |