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

Unified Diff: ui/touch_selection/longpress_drag_selector.h

Issue 1537493006: Allow scrolling a page with selection after long-press on whitespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a comment Created 5 years 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: ui/touch_selection/longpress_drag_selector.h
diff --git a/ui/touch_selection/longpress_drag_selector.h b/ui/touch_selection/longpress_drag_selector.h
index f6e84ecf1cd7463786720c79dd3779f383134cb3..35335eb2861c57fd6d78b6bcbd1d4f49d68980cd 100644
--- a/ui/touch_selection/longpress_drag_selector.h
+++ b/ui/touch_selection/longpress_drag_selector.h
@@ -40,6 +40,13 @@ class UI_TOUCH_SELECTION_EXPORT LongPressDragSelector
void OnLongPressEvent(base::TimeTicks event_time,
const gfx::PointF& position);
+ // Called when a scroll is going to happen to cancel longpress-drag gesture.
+ // TODO(mohsen): This is a workaround to avoid starting longpress-drag gesture
mfomitchev 2016/01/04 17:07:55 It seems like the root of the issue is that (witho
mohsen 2016/01/04 18:45:59 Done.
+ // if the longpress is happening on an empty area far from an existing
+ // selection. Get rid of this workaround when we have enough information about
+ // the cause of the selection (see https://crbug.com/571897).
+ void OnScrollBeginEvent();
+
// Called when the active selection changes.
void OnSelectionActivated();
void OnSelectionDeactivated();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/touch_selection/longpress_drag_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698