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

Unified Diff: ui/views/controls/textfield/textfield_model.h

Issue 2408623002: Views: Extract text selection code from Textfield. (Closed)
Patch Set: Rename [Starting/Ending]MouseAction. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/textfield/textfield_model.h
diff --git a/ui/views/controls/textfield/textfield_model.h b/ui/views/controls/textfield/textfield_model.h
index c66fe6d068083ee7047790207da919042160e663..8b3957b9e0be42ae3354cddbc577b53d69a2efcf 100644
--- a/ui/views/controls/textfield/textfield_model.h
+++ b/ui/views/controls/textfield/textfield_model.h
@@ -126,7 +126,8 @@ class VIEWS_EXPORT TextfieldModel {
// will be confirmed, which may alter the specified selection range start.
bool MoveCursorTo(const gfx::SelectionModel& cursor);
- // Helper function to call MoveCursorTo on the TextfieldModel.
+ // Moves the cursor to the text index corresponding to |point|. If |select| is
+ // true, a selection is made with the current selection start index.
bool MoveCursorTo(const gfx::Point& point, bool select);
// Selection related methods.

Powered by Google App Engine
This is Rietveld 408576698