| 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 25 matching lines...) Expand all Loading... |
| 36 class CORE_EXPORT ScrollManager { | 36 class CORE_EXPORT ScrollManager { |
| 37 WTF_MAKE_NONCOPYABLE(ScrollManager); | 37 WTF_MAKE_NONCOPYABLE(ScrollManager); |
| 38 DISALLOW_NEW(); | 38 DISALLOW_NEW(); |
| 39 public: | 39 public: |
| 40 explicit ScrollManager(LocalFrame*); | 40 explicit ScrollManager(LocalFrame*); |
| 41 ~ScrollManager(); | 41 ~ScrollManager(); |
| 42 DECLARE_TRACE(); | 42 DECLARE_TRACE(); |
| 43 | 43 |
| 44 void clear(); | 44 void clear(); |
| 45 | 45 |
| 46 bool panScrollInProgress() const; | 46 bool middleClickAutoscrollInProgress() const; |
| 47 AutoscrollController* autoscrollController() const; | 47 AutoscrollController* autoscrollController() const; |
| 48 void stopAutoscroll(); | 48 void stopAutoscroll(); |
| 49 | 49 |
| 50 // Performs a chaining logical scroll, within a *single* frame, starting | 50 // Performs a chaining logical scroll, within a *single* frame, starting |
| 51 // from either a provided starting node or a default based on the focused or | 51 // from either a provided starting node or a default based on the focused or |
| 52 // most recently clicked node, falling back to the frame. | 52 // most recently clicked node, falling back to the frame. |
| 53 // Returns true if the scroll was consumed. | 53 // Returns true if the scroll was consumed. |
| 54 // direction - The logical direction to scroll in. This will be converted to | 54 // direction - The logical direction to scroll in. This will be converted to |
| 55 // a physical direction for each LayoutBox we try to scroll | 55 // a physical direction for each LayoutBox we try to scroll |
| 56 // based on that box's writing mode. | 56 // based on that box's writing mode. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 Member<PaintLayerScrollableArea> m_resizeScrollableArea; | 138 Member<PaintLayerScrollableArea> m_resizeScrollableArea; |
| 139 | 139 |
| 140 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. | 140 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. |
| 141 | 141 |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace blink | 144 } // namespace blink |
| 145 | 145 |
| 146 #endif // ScrollManager_h | 146 #endif // ScrollManager_h |
| OLD | NEW |