Chromium Code Reviews| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 | 70 |
| 71 void StartContextMenuTimer(); | 71 void StartContextMenuTimer(); |
| 72 | 72 |
| 73 // Convenience method to update the position/visibility of the context menu. | 73 // Convenience method to update the position/visibility of the context menu. |
| 74 void UpdateContextMenu(const gfx::Point& p1, const gfx::Point& p2); | 74 void UpdateContextMenu(const gfx::Point& p1, const gfx::Point& p2); |
| 75 | 75 |
| 76 // Convenience method for hiding context menu. | 76 // Convenience method for hiding context menu. |
| 77 void HideContextMenu(); | 77 void HideContextMenu(); |
| 78 | 78 |
| 79 // Convenience methods for testing. | 79 // Convenience methods for testing. |
| 80 gfx::NativeView GetCursorHandleNativeView(); | |
|
sadrul
2014/03/14 18:30:07
Hm. These are used in TouchSelectionControllerImpl
mohsen
2014/03/14 19:15:25
Since EditingHandleView class is forward-declared
| |
| 80 gfx::Point GetSelectionHandle1Position(); | 81 gfx::Point GetSelectionHandle1Position(); |
| 81 gfx::Point GetSelectionHandle2Position(); | 82 gfx::Point GetSelectionHandle2Position(); |
| 82 gfx::Point GetCursorHandlePosition(); | 83 gfx::Point GetCursorHandlePosition(); |
| 83 bool IsSelectionHandle1Visible(); | 84 bool IsSelectionHandle1Visible(); |
| 84 bool IsSelectionHandle2Visible(); | 85 bool IsSelectionHandle2Visible(); |
| 85 bool IsCursorHandleVisible(); | 86 bool IsCursorHandleVisible(); |
| 86 | 87 |
| 87 ui::TouchEditable* client_view_; | 88 ui::TouchEditable* client_view_; |
| 88 Widget* client_widget_; | 89 Widget* client_widget_; |
| 89 scoped_ptr<EditingHandleView> selection_handle_1_; | 90 scoped_ptr<EditingHandleView> selection_handle_1_; |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 116 ViewsTouchSelectionControllerFactory(); | 117 ViewsTouchSelectionControllerFactory(); |
| 117 | 118 |
| 118 // Overridden from ui::TouchSelectionControllerFactory. | 119 // Overridden from ui::TouchSelectionControllerFactory. |
| 119 virtual ui::TouchSelectionController* create( | 120 virtual ui::TouchSelectionController* create( |
| 120 ui::TouchEditable* client_view) OVERRIDE; | 121 ui::TouchEditable* client_view) OVERRIDE; |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace views | 124 } // namespace views |
| 124 | 125 |
| 125 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 126 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| OLD | NEW |