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

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

Issue 177173007: Change type of touch selection handles to POPUP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after r263384 Created 6 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.cc » ('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_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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 void StartContextMenuTimer(); 75 void StartContextMenuTimer();
76 76
77 // Convenience method to update the position/visibility of the context menu. 77 // Convenience method to update the position/visibility of the context menu.
78 void UpdateContextMenu(); 78 void UpdateContextMenu();
79 79
80 // Convenience method for hiding context menu. 80 // Convenience method for hiding context menu.
81 void HideContextMenu(); 81 void HideContextMenu();
82 82
83 // Convenience methods for testing. 83 // Convenience methods for testing.
84 gfx::NativeView GetCursorHandleNativeView();
84 gfx::Point GetSelectionHandle1Position(); 85 gfx::Point GetSelectionHandle1Position();
85 gfx::Point GetSelectionHandle2Position(); 86 gfx::Point GetSelectionHandle2Position();
86 gfx::Point GetCursorHandlePosition(); 87 gfx::Point GetCursorHandlePosition();
87 bool IsSelectionHandle1Visible(); 88 bool IsSelectionHandle1Visible();
88 bool IsSelectionHandle2Visible(); 89 bool IsSelectionHandle2Visible();
89 bool IsCursorHandleVisible(); 90 bool IsCursorHandleVisible();
90 91
91 ui::TouchEditable* client_view_; 92 ui::TouchEditable* client_view_;
92 Widget* client_widget_; 93 Widget* client_widget_;
93 scoped_ptr<EditingHandleView> selection_handle_1_; 94 scoped_ptr<EditingHandleView> selection_handle_1_;
(...skipping 29 matching lines...) Expand all
123 ViewsTouchSelectionControllerFactory(); 124 ViewsTouchSelectionControllerFactory();
124 125
125 // Overridden from ui::TouchSelectionControllerFactory. 126 // Overridden from ui::TouchSelectionControllerFactory.
126 virtual ui::TouchSelectionController* create( 127 virtual ui::TouchSelectionController* create(
127 ui::TouchEditable* client_view) OVERRIDE; 128 ui::TouchEditable* client_view) OVERRIDE;
128 }; 129 };
129 130
130 } // namespace views 131 } // namespace views
131 132
132 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ 133 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698