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

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

Issue 1971473002: Move touch hit testing to PointerEventManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/TouchEventManager.h
diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.h b/third_party/WebKit/Source/core/input/TouchEventManager.h
index d5762143646b246a40c6b8549d317a99e05abf4f..f0ef96bae1e3ab40c7f1176f875aac1eb177b959 100644
--- a/third_party/WebKit/Source/core/input/TouchEventManager.h
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.h
@@ -40,7 +40,6 @@ public:
FloatPoint contentPoint;
FloatSize adjustedRadius;
bool knownTarget;
- bool consumed;
String region;
};
@@ -48,14 +47,19 @@ public:
~TouchEventManager();
DECLARE_TRACE();
- // Returns true if it succesfully generates touchInfos.
- bool generateTouchInfosAfterHittest(
+ // Does the hit-testing again if the original hit test result was not inside
+ // capturing frame for touch events. Returns true if touch events could be
+ // dispatched and otherwise returns false.
+ bool reHitTestTouchPointsIfNeeded(
const PlatformTouchEvent&,
HeapVector<TouchInfo>&);
+ // The TouchInfo array is reference just to prevent the copy. However, it
+ // cannot be const as this function might change some of the properties in
+ // TouchInfo objects.
WebInputEventResult handleTouchEvent(
const PlatformTouchEvent&,
- const HeapVector<TouchInfo>&);
+ HeapVector<TouchInfo>&);
// Resets the internal state of this object.
void clear();

Powered by Google App Engine
This is Rietveld 408576698