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

Unified Diff: ui/touch_selection/touch_selection_controller.h

Issue 481683003: Support for Adaptive Handle Orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 8 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/touch_selection_controller.h
diff --git a/ui/touch_selection/touch_selection_controller.h b/ui/touch_selection/touch_selection_controller.h
index abc75b59ce7f588b603d2148bcba957cfc304eec..f0b60f91a455e82b8042e70ddf8c34653bb44bfd 100644
--- a/ui/touch_selection/touch_selection_controller.h
+++ b/ui/touch_selection/touch_selection_controller.h
@@ -49,6 +49,10 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
void OnSelectionBoundsChanged(const SelectionBound& start,
const SelectionBound& end);
+ // To be called when the viewport size has been changed. This is used for
mfomitchev 2015/05/13 22:19:14 size -> rect
AviD 2015/05/19 16:26:28 Done.
+ // setting the state of the handles.
+ void OnViewportChanged(const gfx::RectF viewport_rect);
+
// Allows touch-dragging of the handle.
// Returns true iff the event was consumed, in which case the caller should
// cease further handling of the event.
@@ -148,6 +152,9 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
bool temporarily_hidden_;
+ gfx::RectF viewport_rect_;
+ bool viewport_size_changed_;
mfomitchev 2015/05/13 22:19:14 size -> rect
AviD 2015/05/19 16:26:28 Done.
+
base::TimeTicks selection_start_time_;
// Whether a selection handle was dragged during the current 'selection
// session' - i.e. since the current selection has been activated.

Powered by Google App Engine
This is Rietveld 408576698