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

Side by Side Diff: ui/touch_selection/touch_selection_controller.h

Issue 1404163004: Swap touch selection handles when they are interchanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ 5 #ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_
6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ 6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "ui/base/touch/selection_bound.h" 9 #include "ui/base/touch/selection_bound.h"
10 #include "ui/gfx/geometry/point_f.h" 10 #include "ui/gfx/geometry/point_f.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void UpdateHandleLayoutIfNecessary(); 180 void UpdateHandleLayoutIfNecessary();
181 181
182 bool WillHandleTouchEventForLongPressDrag(const MotionEvent& event); 182 bool WillHandleTouchEventForLongPressDrag(const MotionEvent& event);
183 void SetTemporarilyHiddenForLongPressDrag(bool hidden); 183 void SetTemporarilyHiddenForLongPressDrag(bool hidden);
184 void RefreshHandleVisibility(); 184 void RefreshHandleVisibility();
185 185
186 gfx::Vector2dF GetStartLineOffset() const; 186 gfx::Vector2dF GetStartLineOffset() const;
187 gfx::Vector2dF GetEndLineOffset() const; 187 gfx::Vector2dF GetEndLineOffset() const;
188 bool GetStartVisible() const; 188 bool GetStartVisible() const;
189 bool GetEndVisible() const; 189 bool GetEndVisible() const;
190 TouchHandleOrientation GetStartHandleOrientation() const;
191 TouchHandleOrientation GetEndHandleOrientation() const;
190 TouchHandle::AnimationStyle GetAnimationStyle(bool was_active) const; 192 TouchHandle::AnimationStyle GetAnimationStyle(bool was_active) const;
191 193
192 void LogSelectionEnd(); 194 void LogSelectionEnd();
193 195
194 TouchSelectionControllerClient* const client_; 196 TouchSelectionControllerClient* const client_;
195 const Config config_; 197 const Config config_;
196 198
197 // Whether to force an update on the next selection event even if the 199 // Whether to force an update on the next selection event even if the
198 // cached selection matches the new selection. 200 // cached selection matches the new selection.
199 bool force_next_update_; 201 bool force_next_update_;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // Whether a selection handle was dragged during the current 'selection 236 // Whether a selection handle was dragged during the current 'selection
235 // session' - i.e. since the current selection has been activated. 237 // session' - i.e. since the current selection has been activated.
236 bool selection_handle_dragged_; 238 bool selection_handle_dragged_;
237 239
238 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController); 240 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController);
239 }; 241 };
240 242
241 } // namespace ui 243 } // namespace ui
242 244
243 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ 245 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/touch_selection/touch_selection_controller.cc » ('j') | ui/touch_selection/touch_selection_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698