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

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

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Created 3 years, 10 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 WebInputEventResult handleGestureScrollEnd(const WebGestureEvent&); 80 WebInputEventResult handleGestureScrollEnd(const WebGestureEvent&);
81 81
82 bool isScrollbarHandlingGestures() const; 82 bool isScrollbarHandlingGestures() const;
83 83
84 // Returns true if the gesture event should be handled in ScrollManager. 84 // Returns true if the gesture event should be handled in ScrollManager.
85 bool canHandleGestureEvent(const GestureEventWithHitTestResults&); 85 bool canHandleGestureEvent(const GestureEventWithHitTestResults&);
86 86
87 // These functions are related to |m_resizeScrollableArea|. 87 // These functions are related to |m_resizeScrollableArea|.
88 bool inResizeMode() const; 88 bool inResizeMode() const;
89 void resize(const PlatformMouseEvent&); 89 void resize(const WebMouseEvent&);
90 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this 90 // Clears |m_resizeScrollableArea|. if |shouldNotBeNull| is true this
91 // function DCHECKs to make sure that variable is indeed not null. 91 // function DCHECKs to make sure that variable is indeed not null.
92 void clearResizeScrollableArea(bool shouldNotBeNull); 92 void clearResizeScrollableArea(bool shouldNotBeNull);
93 void setResizeScrollableArea(PaintLayer*, IntPoint); 93 void setResizeScrollableArea(PaintLayer*, IntPoint);
94 94
95 private: 95 private:
96 WebInputEventResult handleGestureScrollUpdate(const WebGestureEvent&); 96 WebInputEventResult handleGestureScrollUpdate(const WebGestureEvent&);
97 WebInputEventResult handleGestureScrollBegin(const WebGestureEvent&); 97 WebInputEventResult handleGestureScrollBegin(const WebGestureEvent&);
98 98
99 WebInputEventResult passScrollGestureEventToWidget(const WebGestureEvent&, 99 WebInputEventResult passScrollGestureEventToWidget(const WebGestureEvent&,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 Member<PaintLayerScrollableArea> m_resizeScrollableArea; 142 Member<PaintLayerScrollableArea> m_resizeScrollableArea;
143 143
144 LayoutSize 144 LayoutSize
145 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea. 145 m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea.
146 }; 146 };
147 147
148 } // namespace blink 148 } // namespace blink
149 149
150 #endif // ScrollManager_h 150 #endif // ScrollManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698