| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 5 #ifndef UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| 6 #define UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 6 #define UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/timer.h" | 8 #include "base/timer.h" |
| 9 #include "ui/base/touch/touch_editing_controller.h" | 9 #include "ui/base/touch/touch_editing_controller.h" |
| 10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 public WidgetObserver { | 22 public WidgetObserver { |
| 23 public: | 23 public: |
| 24 // Use TextSelectionController::create(). | 24 // Use TextSelectionController::create(). |
| 25 explicit TouchSelectionControllerImpl( | 25 explicit TouchSelectionControllerImpl( |
| 26 ui::TouchEditable* client_view); | 26 ui::TouchEditable* client_view); |
| 27 | 27 |
| 28 virtual ~TouchSelectionControllerImpl(); | 28 virtual ~TouchSelectionControllerImpl(); |
| 29 | 29 |
| 30 // TextSelectionController. | 30 // TextSelectionController. |
| 31 virtual void SelectionChanged() OVERRIDE; | 31 virtual void SelectionChanged() OVERRIDE; |
| 32 virtual bool IsHandleDragInProgress() OVERRIDE; |
| 32 | 33 |
| 33 private: | 34 private: |
| 34 friend class TouchSelectionControllerImplTest; | 35 friend class TouchSelectionControllerImplTest; |
| 35 class EditingHandleView; | 36 class EditingHandleView; |
| 36 | 37 |
| 37 void SetDraggingHandle(EditingHandleView* handle); | 38 void SetDraggingHandle(EditingHandleView* handle); |
| 38 | 39 |
| 39 // Callback to inform the client view that the selection handle has been | 40 // Callback to inform the client view that the selection handle has been |
| 40 // dragged, hence selection may need to be updated. | 41 // dragged, hence selection may need to be updated. |
| 41 void SelectionHandleDragged(const gfx::Point& drag_pos); | 42 void SelectionHandleDragged(const gfx::Point& drag_pos); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 ViewsTouchSelectionControllerFactory(); | 101 ViewsTouchSelectionControllerFactory(); |
| 101 | 102 |
| 102 // Overridden from ui::TouchSelectionControllerFactory. | 103 // Overridden from ui::TouchSelectionControllerFactory. |
| 103 virtual ui::TouchSelectionController* create( | 104 virtual ui::TouchSelectionController* create( |
| 104 ui::TouchEditable* client_view) OVERRIDE; | 105 ui::TouchEditable* client_view) OVERRIDE; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace views | 108 } // namespace views |
| 108 | 109 |
| 109 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 110 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| OLD | NEW |