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

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: Updated comments Created 4 years, 12 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: 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..4ebdd675a875d489b13a66569f0b04804586b29d 100644
--- a/ui/touch_selection/longpress_drag_selector.h
+++ b/ui/touch_selection/longpress_drag_selector.h
@@ -40,6 +40,9 @@ 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.
+ void OnScrollBeginEvent();
+
// Called when the active selection changes.
void OnSelectionActivated();
void OnSelectionDeactivated();

Powered by Google App Engine
This is Rietveld 408576698