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

Side by Side Diff: ui/views/touchui/touch_selection_controller_impl.h

Issue 138033014: Consistent fading behavior for touch editing handles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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_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 14 matching lines...) Expand all
25 25
26 // Use TextSelectionController::create(). 26 // Use TextSelectionController::create().
27 explicit TouchSelectionControllerImpl( 27 explicit TouchSelectionControllerImpl(
28 ui::TouchEditable* client_view); 28 ui::TouchEditable* client_view);
29 29
30 virtual ~TouchSelectionControllerImpl(); 30 virtual ~TouchSelectionControllerImpl();
31 31
32 // TextSelectionController. 32 // TextSelectionController.
33 virtual void SelectionChanged() OVERRIDE; 33 virtual void SelectionChanged() OVERRIDE;
34 virtual bool IsHandleDragInProgress() OVERRIDE; 34 virtual bool IsHandleDragInProgress() OVERRIDE;
35 virtual void HideHandles(bool quick) OVERRIDE;
35 36
36 private: 37 private:
37 friend class TouchSelectionControllerImplTest; 38 friend class TouchSelectionControllerImplTest;
38 39
39 void SetDraggingHandle(EditingHandleView* handle); 40 void SetDraggingHandle(EditingHandleView* handle);
40 41
41 // Callback to inform the client view that the selection handle has been 42 // Callback to inform the client view that the selection handle has been
42 // dragged, hence selection may need to be updated. 43 // dragged, hence selection may need to be updated.
43 void SelectionHandleDragged(const gfx::Point& drag_pos); 44 void SelectionHandleDragged(const gfx::Point& drag_pos);
44 45
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 ViewsTouchSelectionControllerFactory(); 116 ViewsTouchSelectionControllerFactory();
116 117
117 // Overridden from ui::TouchSelectionControllerFactory. 118 // Overridden from ui::TouchSelectionControllerFactory.
118 virtual ui::TouchSelectionController* create( 119 virtual ui::TouchSelectionController* create(
119 ui::TouchEditable* client_view) OVERRIDE; 120 ui::TouchEditable* client_view) OVERRIDE;
120 }; 121 };
121 122
122 } // namespace views 123 } // namespace views
123 124
124 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ 125 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698