| 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/timer.h" | 8 #include "base/timer/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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 void StartContextMenuTimer(); | 75 void StartContextMenuTimer(); |
| 76 | 76 |
| 77 // Convenience method to update the position/visibility of the context menu. | 77 // Convenience method to update the position/visibility of the context menu. |
| 78 void UpdateContextMenu(); | 78 void UpdateContextMenu(); |
| 79 | 79 |
| 80 // Convenience method for hiding context menu. | 80 // Convenience method for hiding context menu. |
| 81 void HideContextMenu(); | 81 void HideContextMenu(); |
| 82 | 82 |
| 83 // Convenience methods for testing. | 83 // Convenience methods for testing. |
| 84 gfx::NativeView GetCursorHandleNativeView(); |
| 84 gfx::Point GetSelectionHandle1Position(); | 85 gfx::Point GetSelectionHandle1Position(); |
| 85 gfx::Point GetSelectionHandle2Position(); | 86 gfx::Point GetSelectionHandle2Position(); |
| 86 gfx::Point GetCursorHandlePosition(); | 87 gfx::Point GetCursorHandlePosition(); |
| 87 bool IsSelectionHandle1Visible(); | 88 bool IsSelectionHandle1Visible(); |
| 88 bool IsSelectionHandle2Visible(); | 89 bool IsSelectionHandle2Visible(); |
| 89 bool IsCursorHandleVisible(); | 90 bool IsCursorHandleVisible(); |
| 90 | 91 |
| 91 ui::TouchEditable* client_view_; | 92 ui::TouchEditable* client_view_; |
| 92 Widget* client_widget_; | 93 Widget* client_widget_; |
| 93 scoped_ptr<EditingHandleView> selection_handle_1_; | 94 scoped_ptr<EditingHandleView> selection_handle_1_; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 123 ViewsTouchSelectionControllerFactory(); | 124 ViewsTouchSelectionControllerFactory(); |
| 124 | 125 |
| 125 // Overridden from ui::TouchSelectionControllerFactory. | 126 // Overridden from ui::TouchSelectionControllerFactory. |
| 126 virtual ui::TouchSelectionController* create( | 127 virtual ui::TouchSelectionController* create( |
| 127 ui::TouchEditable* client_view) OVERRIDE; | 128 ui::TouchEditable* client_view) OVERRIDE; |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 } // namespace views | 131 } // namespace views |
| 131 | 132 |
| 132 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 133 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| OLD | NEW |