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

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

Issue 13817012: Add method to TouchSelectionController to check if a handle is currently being (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged with upstream Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/views/touchui/touch_selection_controller_impl.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class UI_EXPORT TouchSelectionController { 60 class UI_EXPORT TouchSelectionController {
61 public: 61 public:
62 virtual ~TouchSelectionController() {} 62 virtual ~TouchSelectionController() {}
63 63
64 // Creates a TouchSelectionController. Caller owns the returned object. 64 // Creates a TouchSelectionController. Caller owns the returned object.
65 static TouchSelectionController* create( 65 static TouchSelectionController* create(
66 TouchEditable* client_view); 66 TouchEditable* client_view);
67 67
68 // Notifies the controller that the selection has changed. 68 // Notifies the controller that the selection has changed.
69 virtual void SelectionChanged() = 0; 69 virtual void SelectionChanged() = 0;
70
71 // Returns true if the user is currently dragging one of the handles.
72 virtual bool IsHandleDragInProgress() = 0;
70 }; 73 };
71 74
72 class UI_EXPORT TouchSelectionControllerFactory { 75 class UI_EXPORT TouchSelectionControllerFactory {
73 public: 76 public:
74 static void SetInstance(TouchSelectionControllerFactory* instance); 77 static void SetInstance(TouchSelectionControllerFactory* instance);
75 78
76 virtual TouchSelectionController* create(TouchEditable* client_view) = 0; 79 virtual TouchSelectionController* create(TouchEditable* client_view) = 0;
77 80
78 protected: 81 protected:
79 virtual ~TouchSelectionControllerFactory() {} 82 virtual ~TouchSelectionControllerFactory() {}
80 }; 83 };
81 84
82 } // namespace views 85 } // namespace views
83 86
84 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ 87 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698