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

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: Remove unnecessary headers 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 c53c42608a5fc8c65a7efa48c5257b0b144cd97e..11beb0741e1c7a2f8474dc7e92fbc7d4adbb0eb4 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"
@@ -432,8 +433,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);
@@ -571,6 +572,8 @@ private:
virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE;
virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE;
+ bool handleGestureScrollEvent(const WebGestureEvent&);
+
InputMethodContext* inputMethodContext();
WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*);

Powered by Google App Engine
This is Rietveld 408576698