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

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

Issue 1865063004: views: support vertical-drag-to-end on textfields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 9bdb48c834f4786cbcd4c90713b6782a217a1567..32cfd85f423b9ab4115842129120e63ae9486ca2 100644
--- a/ui/views/controls/textfield/textfield_model.h
+++ b/ui/views/controls/textfield/textfield_model.h
@@ -123,6 +123,10 @@ class VIEWS_EXPORT TextfieldModel {
// Helper function to call MoveCursorTo on the TextfieldModel.
bool MoveCursorTo(const gfx::Point& point, bool select);
+ // Helper functions to move the cursor to the start and end.
+ void MoveCursorToStart(bool select);
tapted 2016/04/06 23:29:38 nit `select` is always in this code, so in Chrome'
Elly Fong-Jones 2016/04/07 17:43:47 Removed these methods.
+ void MoveCursorToEnd(bool select);
+
// Selection related methods.
// Returns the selected text.

Powered by Google App Engine
This is Rietveld 408576698