Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: third_party/WebKit/Source/core/input/ScrollManager.h

Issue 2918053002: Move middle-click autoscroll to synthetic fling. (Closed)
Patch Set: Delete redundant cursor shape print Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/MouseEventManager.cpp ('k') | third_party/WebKit/Source/core/input/ScrollManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698