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..84493b18265485151a7218278781574cd0544517 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 |
+ // 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. |
@@ -117,6 +121,8 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController |
bool GetEndVisible() const; |
TouchHandle::AnimationStyle GetAnimationStyle(bool was_active) const; |
+ void SetInvertedOrientation(); |
+ |
void LogSelectionEnd(); |
TouchSelectionControllerClient* const client_; |
@@ -148,6 +154,9 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController |
bool temporarily_hidden_; |
+ gfx::RectF viewport_rect_; |
+ bool viewport_size_changed_; |
+ |
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. |