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