| 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 <deque> | 8 #include <deque> |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/page/EventWithHitTestResults.h" | 10 #include "core/page/EventWithHitTestResults.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 : public GarbageCollectedFinalized<ScrollManager> { | 35 : public GarbageCollectedFinalized<ScrollManager> { |
| 36 WTF_MAKE_NONCOPYABLE(ScrollManager); | 36 WTF_MAKE_NONCOPYABLE(ScrollManager); |
| 37 | 37 |
| 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 MiddleClickAutoscrollInProgress() const; | 44 bool MiddleClickAutoscrollInProgress() const; |
| 45 void StopMiddleClickAutoscroll(); |
| 45 AutoscrollController* GetAutoscrollController() const; | 46 AutoscrollController* GetAutoscrollController() const; |
| 46 void StopAutoscroll(); | 47 void StopAutoscroll(); |
| 47 | 48 |
| 48 // Performs a chaining logical scroll, within a *single* frame, starting | 49 // 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 | 50 // from either a provided starting node or a default based on the focused or |
| 50 // most recently clicked node, falling back to the frame. | 51 // most recently clicked node, falling back to the frame. |
| 51 // Returns true if the scroll was consumed. | 52 // Returns true if the scroll was consumed. |
| 52 // direction - The logical direction to scroll in. This will be converted to | 53 // direction - The logical direction to scroll in. This will be converted to |
| 53 // a physical direction for each LayoutBox we try to scroll | 54 // a physical direction for each LayoutBox we try to scroll |
| 54 // based on that box's writing mode. | 55 // based on that box's writing mode. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 147 |
| 147 Member<PaintLayerScrollableArea> resize_scrollable_area_; | 148 Member<PaintLayerScrollableArea> resize_scrollable_area_; |
| 148 | 149 |
| 149 LayoutSize | 150 LayoutSize |
| 150 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. | 151 offset_from_resize_corner_; // In the coords of m_resizeScrollableArea. |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace blink | 154 } // namespace blink |
| 154 | 155 |
| 155 #endif // ScrollManager_h | 156 #endif // ScrollManager_h |
| OLD | NEW |