| 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_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ | 5 #ifndef UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ |
| 6 #define UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ | 6 #define UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ui/base/models/simple_menu_model.h" | 8 #include "ui/base/models/simple_menu_model.h" |
| 9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 // An interface implemented by widget that has text that can be selected/edited | 14 // An interface implemented by widget that has text that can be selected/edited |
| 15 // using touch. | 15 // using touch. |
| 16 class UI_BASE_EXPORT TouchEditable : public ui::SimpleMenuModel::Delegate { | 16 class UI_BASE_EXPORT TouchEditable : public ui::SimpleMenuModel::Delegate { |
| 17 public: | 17 public: |
| 18 // TODO(mohsen): Consider switching from local coordinates to screen | 18 // TODO(mohsen): Consider switching from local coordinates to screen |
| 19 // coordinates in this interface and see if it will simplify things. | 19 // coordinates in this interface and see if it will simplify things. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 virtual TouchSelectionController* create(TouchEditable* client_view) = 0; | 91 virtual TouchSelectionController* create(TouchEditable* client_view) = 0; |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 virtual ~TouchSelectionControllerFactory() {} | 94 virtual ~TouchSelectionControllerFactory() {} |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace views | 97 } // namespace views |
| 98 | 98 |
| 99 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ | 99 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ |
| OLD | NEW |