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

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

Issue 142543002: Revert 245610 "Consistent fading behavior for touch editing handles" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1794/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;
36 35
37 private: 36 private:
38 friend class TouchSelectionControllerImplTest; 37 friend class TouchSelectionControllerImplTest;
39 38
40 void SetDraggingHandle(EditingHandleView* handle); 39 void SetDraggingHandle(EditingHandleView* handle);
41 40
42 // Callback to inform the client view that the selection handle has been 41 // Callback to inform the client view that the selection handle has been
43 // dragged, hence selection may need to be updated. 42 // dragged, hence selection may need to be updated.
44 void SelectionHandleDragged(const gfx::Point& drag_pos); 43 void SelectionHandleDragged(const gfx::Point& drag_pos);
45 44
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ViewsTouchSelectionControllerFactory(); 115 ViewsTouchSelectionControllerFactory();
117 116
118 // Overridden from ui::TouchSelectionControllerFactory. 117 // Overridden from ui::TouchSelectionControllerFactory.
119 virtual ui::TouchSelectionController* create( 118 virtual ui::TouchSelectionController* create(
120 ui::TouchEditable* client_view) OVERRIDE; 119 ui::TouchEditable* client_view) OVERRIDE;
121 }; 120 };
122 121
123 } // namespace views 122 } // namespace views
124 123
125 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ 124 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/base/touch/touch_editing_controller.h ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698