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

Side by Side Diff: ui/base/touch/touch_editing_controller.h

Issue 667923002: Standardize usage of virtual/override/final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « ui/base/test/run_all_unittests.cc ('k') | ui/compositor/closure_animation_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/point.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual bool DrawsHandles() = 0; 53 virtual bool DrawsHandles() = 0;
54 54
55 // Tells the editable to open context menu. 55 // Tells the editable to open context menu.
56 virtual void OpenContextMenu(const gfx::Point& anchor) = 0; 56 virtual void OpenContextMenu(const gfx::Point& anchor) = 0;
57 57
58 // Tells the editable to end touch editing and destroy touch selection 58 // Tells the editable to end touch editing and destroy touch selection
59 // controller it owns. 59 // controller it owns.
60 virtual void DestroyTouchSelection() = 0; 60 virtual void DestroyTouchSelection() = 0;
61 61
62 protected: 62 protected:
63 virtual ~TouchEditable() {} 63 ~TouchEditable() override {}
64 }; 64 };
65 65
66 // This defines the callback interface for other code to be notified of changes 66 // This defines the callback interface for other code to be notified of changes
67 // in the state of a TouchEditable. 67 // in the state of a TouchEditable.
68 class UI_BASE_EXPORT TouchSelectionController { 68 class UI_BASE_EXPORT TouchSelectionController {
69 public: 69 public:
70 virtual ~TouchSelectionController() {} 70 virtual ~TouchSelectionController() {}
71 71
72 // Creates a TouchSelectionController. Caller owns the returned object. 72 // Creates a TouchSelectionController. Caller owns the returned object.
73 static TouchSelectionController* create( 73 static TouchSelectionController* create(
(...skipping 16 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « ui/base/test/run_all_unittests.cc ('k') | ui/compositor/closure_animation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698