Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: ui/base/touch/touch_editing_controller.h

Issue 798683003: Rename old Aura TouchSelectionController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fixes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/touch/touch_editing_controller.h
diff --git a/ui/base/touch/touch_editing_controller.h b/ui/base/touch/touch_editing_controller.h
index e4f5205b4f6c9c8c9a94c2653cd1efcc538296d9..96eecc1c2a40f51c8884b5527303172e97269b8c 100644
--- a/ui/base/touch/touch_editing_controller.h
+++ b/ui/base/touch/touch_editing_controller.h
@@ -54,7 +54,7 @@ class UI_BASE_EXPORT TouchEditable : public ui::SimpleMenuModel::Delegate {
virtual void ConvertPointFromScreen(gfx::Point* point) = 0;
// Returns true if the editable draws its own handles (hence, the
- // TouchSelectionController need not draw handles).
+ // TouchEditingControllerDeprecated need not draw handles).
virtual bool DrawsHandles() = 0;
// Tells the editable to open context menu.
@@ -70,12 +70,13 @@ class UI_BASE_EXPORT TouchEditable : public ui::SimpleMenuModel::Delegate {
// This defines the callback interface for other code to be notified of changes
// in the state of a TouchEditable.
-class UI_BASE_EXPORT TouchSelectionController {
+class UI_BASE_EXPORT TouchEditingControllerDeprecated {
public:
- virtual ~TouchSelectionController() {}
+ virtual ~TouchEditingControllerDeprecated() {}
- // Creates a TouchSelectionController. Caller owns the returned object.
- static TouchSelectionController* create(
+ // Creates a TouchEditingControllerDeprecated. Caller owns the returned
+ // object.
+ static TouchEditingControllerDeprecated* Create(
TouchEditable* client_view);
// Notifies the controller that the selection has changed.
@@ -89,14 +90,15 @@ class UI_BASE_EXPORT TouchSelectionController {
virtual void HideHandles(bool quick) = 0;
};
-class UI_BASE_EXPORT TouchSelectionControllerFactory {
+class UI_BASE_EXPORT TouchEditingControllerFactory {
public:
- static void SetInstance(TouchSelectionControllerFactory* instance);
+ static void SetInstance(TouchEditingControllerFactory* instance);
- virtual TouchSelectionController* create(TouchEditable* client_view) = 0;
+ virtual TouchEditingControllerDeprecated* Create(TouchEditable* client_view)
+ = 0;
protected:
- virtual ~TouchSelectionControllerFactory() {}
+ virtual ~TouchEditingControllerFactory() {}
};
} // namespace ui
« no previous file with comments | « content/browser/web_contents/touch_editable_impl_aura_browsertest.cc ('k') | ui/base/touch/touch_editing_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698