Chromium Code Reviews| Index: third_party/WebKit/Source/core/input/TouchEventManager.h |
| diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.h b/third_party/WebKit/Source/core/input/TouchEventManager.h |
| index f0ef96bae1e3ab40c7f1176f875aac1eb177b959..996ffa61d30189f352eaab420c1dc2baa999f69b 100644 |
| --- a/third_party/WebKit/Source/core/input/TouchEventManager.h |
| +++ b/third_party/WebKit/Source/core/input/TouchEventManager.h |
| @@ -22,7 +22,7 @@ class PointerEventWithTarget; |
| // This class takes care of dispatching all touch events and |
| // maintaining related states. |
| -class CORE_EXPORT TouchEventManager { |
| +class CORE_EXPORT TouchEventManager: public UserGestureUtilizedCallback { |
| DISALLOW_NEW(); |
| public: |
| class TouchInfo { |
| @@ -67,8 +67,13 @@ public: |
| // Returns whether there is any touch on the screen. |
| bool isAnyTouchActive() const; |
| -private: |
| + // Indicate that a touchs scroll has started |
|
dtapuska
2016/05/24 14:54:27
touchs?
Rick Byers
2016/05/24 20:29:21
Done.
|
| + void setTouchScrollStarted() { m_touchScrollStarted = true; } |
| + |
| + // Invoked when a UserGestureIndicator corresponding to a touch event is utilized |
|
dtapuska
2016/05/24 14:54:27
Comments should terminate with periods :-) You see
|
| + void userGestureUtilized() override; |
| +private: |
| void updateTargetAndRegionMapsForTouchStarts(HeapVector<TouchInfo>&); |
| void setAllPropertiesOfTouchInfos(HeapVector<TouchInfo>&); |
| @@ -96,7 +101,10 @@ private: |
| bool m_touchPressed; |
| // True if waiting on first touch move after a touch start. |
| bool m_waitingForFirstTouchMove; |
| - |
| + // True if a touch is active but scrolling/zooming has started |
| + bool m_touchScrollStarted; |
| + // The touch event currently being handled or NoType if none. |
| + PlatformEvent::EventType m_currentEvent; |
| }; |
| } // namespace blink |