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

Unified Diff: Source/web/WebViewImpl.h

Issue 163933002: Send early ShowPress on TapDown when page isn't scrollable/pinchable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refactor into hasEarlyShowPress() Created 6 years, 9 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
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.h
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h
index 2bb2c378a94f8a0e6d51d214d7bab5c80979fc49..1b730276508ea2b666ee6697ecb53683fca391d9 100644
--- a/Source/web/WebViewImpl.h
+++ b/Source/web/WebViewImpl.h
@@ -525,6 +525,8 @@ public:
WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
+ bool isPinchZoomable() const;
+
private:
float legibleScale() const;
void refreshPageScaleFactorAfterLayout();
@@ -601,6 +603,8 @@ private:
virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE;
virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE;
+ bool earlyGestureShowPress(const WebCore::PlatformGestureEvent&);
+
WebCore::InputMethodContext* inputMethodContext();
WebPlugin* focusedPluginIfInputMethodSupported(WebCore::LocalFrame*);
@@ -769,6 +773,7 @@ private:
WebColor m_baseBackgroundColor;
WebColor m_backgroundColorOverride;
float m_zoomFactorOverride;
+ bool m_sentEarlyShowPress;
};
// We have no ways to check if the specified WebView is an instance of
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698