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

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

Issue 869813003: Implement elementsFromPoint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typeo Created 5 years, 11 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 272c0a20222eae54294974dbc9b874fcbcb852bf..a38770f2f580646366075591dc7337ac59c27779 100644
--- a/Source/core/rendering/HitTestRequest.h
+++ b/Source/core/rendering/HitTestRequest.h
@@ -38,6 +38,12 @@ public:
AllowChildFrameContent = 1 << 8,
ChildFrameHitTest = 1 << 9,
IgnorePointerEventsNone = 1 << 10,
+ // Collect a list of nodes instead of just one.
+ // (e.g., for elementsFromPoint or rect-based tests).
Rick Byers 2015/02/04 10:34:03 Is it legal to ask for a list-based hit-test witho
pdr. 2015/02/17 04:10:13 It's not, I've updated the comment to be a bit mor
Rick Byers 2015/02/20 20:02:23 That enforces the penetrating part, but does anyth
+ ListBased = 1 << 11,
+ // Continues hit testing even after a hit has been found. This is useful
+ // with list-based testing for finding all nodes in an area.
+ Penetrating = 1 << 12,
Rick Byers 2015/02/04 10:34:03 What does it mean to have a penetrating hit test t
pdr. 2015/02/17 04:10:13 It doesn't make sense. I've renamed this Penetrati
};
typedef unsigned HitTestRequestType;
@@ -57,6 +63,8 @@ public:
bool allowsChildFrameContent() const { return m_requestType & AllowChildFrameContent; }
bool isChildFrameHitTest() const { return m_requestType & ChildFrameHitTest; }
bool ignorePointerEventsNone() const { return m_requestType & IgnorePointerEventsNone; }
+ bool listBased() const { return m_requestType & ListBased; }
+ bool penetrating() const { return m_requestType & Penetrating; }
// Convenience functions
bool touchMove() const { return move() && touchEvent(); }

Powered by Google App Engine
This is Rietveld 408576698