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

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

Issue 2408623002: Views: Extract text selection code from Textfield. (Closed)
Patch Set: Check for |handles_selection_clipboard_| 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..b82f369743ee6073ad0f743a7a70aedc88d69922 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.
+ // Calls the corresponding function on the associated RenderText instance. Any
+ // composition text will be confirmed.
bool MoveCursorTo(const gfx::Point& point, bool select);
// Selection related methods.

Powered by Google App Engine
This is Rietveld 408576698