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

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

Issue 1892653003: Extract touch handling logic from EventHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/input/EventHandler.h
diff --git a/third_party/WebKit/Source/core/input/EventHandler.h b/third_party/WebKit/Source/core/input/EventHandler.h
index 9634047c3793db0ae1eaf08d4e9ed131e1e0a5b6..339f6b9b1a18da8fcda307b59a0660629db65696 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.h
+++ b/third_party/WebKit/Source/core/input/EventHandler.h
@@ -109,6 +109,8 @@ public:
void dispatchFakeMouseMoveEventSoon();
void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&);
+ static HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active);
+
HitTestResult hitTestResultAtPoint(const LayoutPoint&,
HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active,
const LayoutSize& padding = LayoutSize());
@@ -331,8 +333,6 @@ private:
bool isRootScroller(const Node&) const;
void customizedScroll(const Node& startNode, ScrollState&);
- HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active);
-
void invalidateClick();
Node* updateMouseEventTargetNode(Node*, const PlatformMouseEvent&);
@@ -398,10 +398,6 @@ private:
// the given element.
bool slideFocusOnShadowHostIfNecessary(const Element&);
- void dispatchPointerEvents(const PlatformTouchEvent&, HeapVector<TouchInfo>&);
-
- WebInputEventResult dispatchTouchEvents(const PlatformTouchEvent&, HeapVector<TouchInfo>&, bool);
-
// NOTE: If adding a new field to this class please ensure that it is
// cleared in |EventHandler::clear()|.
@@ -463,18 +459,6 @@ private:
PlatformMouseEvent m_mouseDown;
RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
- // The target of each active touch point indexed by the touch ID.
- using TouchTargetMap = HeapHashMap<unsigned, Member<EventTarget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
- TouchTargetMap m_targetForTouchID;
- using TouchRegionMap = HashMap<unsigned, String, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
- TouchRegionMap m_regionForTouchID;
-
- // If set, the document of the active touch sequence. Unset if no touch sequence active.
- Member<Document> m_touchSequenceDocument;
- RefPtr<UserGestureToken> m_touchSequenceUserGestureToken;
-
- bool m_touchPressed;
-
PointerEventManager m_pointerEventManager;
Member<Node> m_scrollGestureHandlingNode;
@@ -502,9 +486,6 @@ private:
// scroll which shouldn't propagate can't cause any element to
// scroll other than the |m_previousGestureScrolledNode|.
bool m_deltaConsumedForScrollSequence;
-
- // True if waiting on first touch move after a touch start.
- bool m_waitingForFirstTouchMove;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698