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

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

Issue 2255323004: Create MouseEventManager and EventHandlingUtil (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing 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 15 matching lines...) Expand all
26 class LocalFrame; 26 class LocalFrame;
27 class PaintLayer; 27 class PaintLayer;
28 class PaintLayerScrollableArea; 28 class PaintLayerScrollableArea;
29 class PlatformGestureEvent; 29 class PlatformGestureEvent;
30 class Scrollbar; 30 class Scrollbar;
31 class ScrollState; 31 class ScrollState;
32 32
33 // This class takes care of scrolling and resizing and the related states. The 33 // This class takes care of scrolling and resizing and the related states. The
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 { 36 class CORE_EXPORT ScrollManager : public GarbageCollectedFinalized<ScrollManager > {
37 WTF_MAKE_NONCOPYABLE(ScrollManager); 37 WTF_MAKE_NONCOPYABLE(ScrollManager);
38 DISALLOW_NEW();
39 public: 38 public:
40 explicit ScrollManager(LocalFrame*); 39 explicit ScrollManager(LocalFrame*);
41 ~ScrollManager();
42 DECLARE_TRACE(); 40 DECLARE_TRACE();
43 41
44 void clear(); 42 void clear();
45 43
46 bool panScrollInProgress() const; 44 bool panScrollInProgress() const;
47 AutoscrollController* autoscrollController() const; 45 AutoscrollController* autoscrollController() const;
48 void stopAutoscroll(); 46 void stopAutoscroll();
49 47
50 // Performs a chaining logical scroll, within a *single* frame, starting 48 // Performs a chaining logical scroll, within a *single* frame, starting
51 // 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
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 135
138 Member<PaintLayerScrollableArea> m_resizeScrollableArea; 136 Member<PaintLayerScrollableArea> m_resizeScrollableArea;
139 137
140 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA rea. 138 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA rea.
141 139
142 }; 140 };
143 141
144 } // namespace blink 142 } // namespace blink
145 143
146 #endif // ScrollManager_h 144 #endif // ScrollManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/PointerEventManager.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