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

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: Update hit test counts 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 f4ab61a6e27dca2b1912944ce9884a1bfb471d9a..c01bb69112d058377d5df46841f609155755e06c 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