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

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

Issue 2289213002: Implement Middle Click Autoscroll on all platforms not just Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into panscroll Created 4 years, 3 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 "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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/KeyboardEventManager.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