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