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

Unified Diff: Source/core/rendering/HitTestRequest.h

Issue 137123009: Add hittest mode for Touch-action which ignore inline elements and svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/HitTestRequest.h
diff --git a/Source/core/rendering/HitTestRequest.h b/Source/core/rendering/HitTestRequest.h
index 97dfa5165a72c72c815075403178ff20e7c9846e..5d32811dc15bad376282d80253a77de14abc0a0d 100644
--- a/Source/core/rendering/HitTestRequest.h
+++ b/Source/core/rendering/HitTestRequest.h
@@ -40,7 +40,8 @@ public:
AllowFrameScrollbars = 1 << 9,
AllowChildFrameContent = 1 << 10,
ChildFrameHitTest = 1 << 11,
- IgnorePointerEventsNone = 1 << 12
+ IgnorePointerEventsNone = 1 << 12,
+ TouchAction = 1 << 13, // Hit testing for touch-action considers only blocks-level elements
Rick Byers 2014/02/17 14:43:52 nit: s/blocks/block/
gnana 2014/02/24 18:59:50 Done.
};
typedef unsigned HitTestRequestType;
@@ -63,6 +64,7 @@ public:
bool allowsChildFrameContent() const { return m_requestType & AllowChildFrameContent; }
bool isChildFrameHitTest() const { return m_requestType & ChildFrameHitTest; }
bool ignorePointerEventsNone() const { return m_requestType & IgnorePointerEventsNone; }
+ bool touchAction() const { return m_requestType & TouchAction; }
// Convenience functions
bool touchMove() const { return move() && touchEvent(); }

Powered by Google App Engine
This is Rietveld 408576698