| 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/geometry/LayoutSize.h" | 10 #include "platform/geometry/LayoutSize.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // TODO(crbug.com/616491): Consider moving all gesture related functions to | 72 // TODO(crbug.com/616491): Consider moving all gesture related functions to |
| 73 // another class. | 73 // another class. |
| 74 | 74 |
| 75 // Handle the provided scroll gesture event, propagating down to child frames | 75 // Handle the provided scroll gesture event, propagating down to child frames |
| 76 // as necessary. | 76 // as necessary. |
| 77 WebInputEventResult handleGestureScrollEvent(const WebGestureEvent&); | 77 WebInputEventResult handleGestureScrollEvent(const WebGestureEvent&); |
| 78 | 78 |
| 79 WebInputEventResult handleGestureScrollEnd(const WebGestureEvent&); | 79 WebInputEventResult handleGestureScrollEnd(const WebGestureEvent&); |
| 80 | 80 |
| 81 void recordScrollerSize(const LayoutObject&, const WebGestureDevice); |
| 82 |
| 81 bool isScrollbarHandlingGestures() const; | 83 bool isScrollbarHandlingGestures() const; |
| 82 | 84 |
| 83 // Returns true if the gesture event should be handled in ScrollManager. | 85 // Returns true if the gesture event should be handled in ScrollManager. |
| 84 bool canHandleGestureEvent(const GestureEventWithHitTestResults&); | 86 bool canHandleGestureEvent(const GestureEventWithHitTestResults&); |
| 85 | 87 |
| 86 // These functions are related to |m_resizeScrollableArea|. | 88 // These functions are related to |m_resizeScrollableArea|. |
| 87 bool inResizeMode() const; | 89 bool inResizeMode() const; |
| 88 void resize(const WebMouseEvent&); | 90 void resize(const WebMouseEvent&); |
| 89 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this | 91 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this |
| 90 // function DCHECKs to make sure that variable is indeed not null. | 92 // function DCHECKs to make sure that variable is indeed not null. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 142 |
| 141 Member<PaintLayerScrollableArea> m_resizeScrollableArea; | 143 Member<PaintLayerScrollableArea> m_resizeScrollableArea; |
| 142 | 144 |
| 143 LayoutSize | 145 LayoutSize |
| 144 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. | 146 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. |
| 145 }; | 147 }; |
| 146 | 148 |
| 147 } // namespace blink | 149 } // namespace blink |
| 148 | 150 |
| 149 #endif // ScrollManager_h | 151 #endif // ScrollManager_h |
| OLD | NEW |