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

Unified Diff: content/browser/renderer_host/input/touch_handle.h

Issue 516573003: Use platform slop/timeout values for selection handle tap detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/touch_handle.h
diff --git a/content/browser/renderer_host/input/touch_handle.h b/content/browser/renderer_host/input/touch_handle.h
index c78a5b952a72e8c4f84300b316858424e02c110e..7859febef238ea035e699bd1d253af7eeb022fc1 100644
--- a/content/browser/renderer_host/input/touch_handle.h
+++ b/content/browser/renderer_host/input/touch_handle.h
@@ -49,6 +49,8 @@ class CONTENT_EXPORT TouchHandleClient {
virtual void OnHandleTapped(const TouchHandle& handle) = 0;
virtual void SetNeedsAnimate() = 0;
virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() = 0;
+ virtual base::TimeDelta GetTapTimeout() const = 0;
+ virtual float GetTapSlop() const = 0;
};
// Responsible for displaying a selection or insertion handle for text
@@ -123,6 +125,7 @@ class CONTENT_EXPORT TouchHandle {
bool enabled_;
bool is_visible_;
bool is_dragging_;
+ bool is_drag_within_tap_region_;
DISALLOW_COPY_AND_ASSIGN(TouchHandle);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698