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

Unified Diff: third_party/WebKit/Source/core/input/TouchEventManager.h

Issue 2414273003: Remove UserGesture on touch scrolls (Closed)
Patch Set: Improve comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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 9f08be84ebb184df1b4c8afa9a4385a8b24a19cc..e6c7d5e811dc1bed8ebf91944a8abaf4c87cac33 100644
--- a/third_party/WebKit/Source/core/input/TouchEventManager.h
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.h
@@ -7,7 +7,6 @@
#include "core/CoreExport.h"
#include "core/events/PointerEventFactory.h"
-#include "platform/UserGestureIndicator.h"
#include "public/platform/WebInputEventResult.h"
#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
@@ -21,8 +20,7 @@ class PlatformTouchEvent;
// This class takes care of dispatching all touch events and
// maintaining related states.
class CORE_EXPORT TouchEventManager
- : public GarbageCollectedFinalized<TouchEventManager>,
- public UserGestureUtilizedCallback {
+ : public GarbageCollectedFinalized<TouchEventManager> {
WTF_MAKE_NONCOPYABLE(TouchEventManager);
public:
@@ -65,13 +63,6 @@ class CORE_EXPORT TouchEventManager
// Returns whether there is any touch on the screen.
bool isAnyTouchActive() const;
- // Indicate that a touch scroll has started.
- void setTouchScrollStarted() { m_touchScrollStarted = true; }
-
- // Invoked when a UserGestureIndicator corresponding to a touch event is
- // utilized.
- void userGestureUtilized() override;
-
private:
void updateTargetAndRegionMapsForTouchStarts(HeapVector<TouchInfo>&);
void setAllPropertiesOfTouchInfos(HeapVector<TouchInfo>&);
@@ -102,10 +93,7 @@ class CORE_EXPORT TouchEventManager
// sequence active.
Member<Document> m_touchSequenceDocument;
- RefPtr<UserGestureToken> m_touchSequenceUserGestureToken;
bool m_touchPressed;
- // 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;
};

Powered by Google App Engine
This is Rietveld 408576698