| 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 15 matching lines...) Expand all Loading... |
| 26 class LocalFrame; | 26 class LocalFrame; |
| 27 class PaintLayer; | 27 class PaintLayer; |
| 28 class PaintLayerScrollableArea; | 28 class PaintLayerScrollableArea; |
| 29 class PlatformGestureEvent; | 29 class PlatformGestureEvent; |
| 30 class Scrollbar; | 30 class Scrollbar; |
| 31 class ScrollState; | 31 class ScrollState; |
| 32 | 32 |
| 33 // This class takes care of scrolling and resizing and the related states. The | 33 // This class takes care of scrolling and resizing and the related states. The |
| 34 // user action that causes scrolling or resizing is determined in other *Manager | 34 // user action that causes scrolling or resizing is determined in other *Manager |
| 35 // classes and they call into this class for doing the work. | 35 // classes and they call into this class for doing the work. |
| 36 class CORE_EXPORT ScrollManager { | 36 class CORE_EXPORT ScrollManager : public GarbageCollectedFinalized<ScrollManager
> { |
| 37 WTF_MAKE_NONCOPYABLE(ScrollManager); | 37 WTF_MAKE_NONCOPYABLE(ScrollManager); |
| 38 DISALLOW_NEW(); | |
| 39 public: | 38 public: |
| 40 explicit ScrollManager(LocalFrame*); | 39 explicit ScrollManager(LocalFrame*); |
| 41 ~ScrollManager(); | |
| 42 DECLARE_TRACE(); | 40 DECLARE_TRACE(); |
| 43 | 41 |
| 44 void clear(); | 42 void clear(); |
| 45 | 43 |
| 46 bool panScrollInProgress() const; | 44 bool panScrollInProgress() const; |
| 47 AutoscrollController* autoscrollController() const; | 45 AutoscrollController* autoscrollController() const; |
| 48 void stopAutoscroll(); | 46 void stopAutoscroll(); |
| 49 | 47 |
| 50 // Performs a chaining logical scroll, within a *single* frame, starting | 48 // 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 | 49 // from either a provided starting node or a default based on the focused or |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 135 |
| 138 Member<PaintLayerScrollableArea> m_resizeScrollableArea; | 136 Member<PaintLayerScrollableArea> m_resizeScrollableArea; |
| 139 | 137 |
| 140 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. | 138 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. |
| 141 | 139 |
| 142 }; | 140 }; |
| 143 | 141 |
| 144 } // namespace blink | 142 } // namespace blink |
| 145 | 143 |
| 146 #endif // ScrollManager_h | 144 #endif // ScrollManager_h |
| OLD | NEW |