| OLD | NEW |
| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "ui/gfx/geometry/point_f.h" | 10 #include "ui/gfx/geometry/point_f.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 gfx::Vector2dF GetEndLineOffset() const; | 175 gfx::Vector2dF GetEndLineOffset() const; |
| 176 bool GetStartVisible() const; | 176 bool GetStartVisible() const; |
| 177 bool GetEndVisible() const; | 177 bool GetEndVisible() const; |
| 178 TouchHandle::AnimationStyle GetAnimationStyle(bool was_active) const; | 178 TouchHandle::AnimationStyle GetAnimationStyle(bool was_active) const; |
| 179 | 179 |
| 180 void LogSelectionEnd(); | 180 void LogSelectionEnd(); |
| 181 | 181 |
| 182 TouchSelectionControllerClient* const client_; | 182 TouchSelectionControllerClient* const client_; |
| 183 const Config config_; | 183 const Config config_; |
| 184 | 184 |
| 185 // TODO(amaralp): This is not necessary. Remove it. | |
| 186 InputEventType response_pending_input_event_; | 185 InputEventType response_pending_input_event_; |
| 187 | 186 |
| 188 gfx::SelectionBound start_; | 187 gfx::SelectionBound start_; |
| 189 gfx::SelectionBound end_; | 188 gfx::SelectionBound end_; |
| 190 TouchHandleOrientation start_orientation_; | 189 TouchHandleOrientation start_orientation_; |
| 191 TouchHandleOrientation end_orientation_; | 190 TouchHandleOrientation end_orientation_; |
| 192 | 191 |
| 193 ActiveStatus active_status_; | 192 ActiveStatus active_status_; |
| 194 | 193 |
| 195 std::unique_ptr<TouchHandle> insertion_handle_; | 194 std::unique_ptr<TouchHandle> insertion_handle_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 219 bool consume_touch_sequence_; | 218 bool consume_touch_sequence_; |
| 220 | 219 |
| 221 bool show_touch_handles_; | 220 bool show_touch_handles_; |
| 222 | 221 |
| 223 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController); | 222 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController); |
| 224 }; | 223 }; |
| 225 | 224 |
| 226 } // namespace ui | 225 } // namespace ui |
| 227 | 226 |
| 228 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ | 227 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ |
| OLD | NEW |