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

Unified Diff: Source/web/WebViewImpl.h

Issue 490783003: Reduce hit test on ShowPress by moving event targeting to WebViewImpl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase after other hit test patches Created 6 years, 4 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/web/WebViewImpl.h
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h
index 0db68d6ecdc61129878687dbed3b7c28e71490eb..4912b73fb1d0950f38b4495ea36a2c0a5417f532 100644
--- a/Source/web/WebViewImpl.h
+++ b/Source/web/WebViewImpl.h
@@ -31,6 +31,7 @@
#ifndef WebViewImpl_h
#define WebViewImpl_h
+#include "core/page/EventWithHitTestResults.h"
#include "core/page/PagePopupDriver.h"
#include "platform/geometry/IntPoint.h"
#include "platform/geometry/IntRect.h"
@@ -431,8 +432,8 @@ public:
void fullFramePluginZoomLevelChanged(double zoomLevel);
void computeScaleAndScrollForBlockRect(const WebPoint& hitPoint, const WebRect& blockRect, float padding, float defaultScaleWhenAlreadyLegible, float& scale, WebPoint& scroll);
- Node* bestTapNode(const PlatformGestureEvent& tapEvent);
- void enableTapHighlightAtPoint(const PlatformGestureEvent& tapEvent);
+ Node* bestTapNode(const GestureEventWithHitTestResults& targetedTapEvent);
+ void enableTapHighlightAtPoint(const GestureEventWithHitTestResults& targetedTapEvent);
void enableTapHighlights(WillBeHeapVector<RawPtrWillBeMember<Node> >&);
void computeScaleAndScrollForFocusedNode(Node* focusedNode, float& scale, IntPoint& scroll, bool& needAnimation);

Powered by Google App Engine
This is Rietveld 408576698