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

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

Issue 6245003: Views-implementation of AutocompleteEditView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 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 side-by-side diff with in-line comments
Download patch
Index: views/controls/textfield/textfield.h
diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h
index e468423e8bb49329c1d352cddf633f4880efdc04..a041d1cc1b336a3cbcf336a13d608517cfcf932c 100644
--- a/views/controls/textfield/textfield.h
+++ b/views/controls/textfield/textfield.h
@@ -36,9 +36,11 @@ class NativeTextfieldWrapper;
// TextRange specifies the range of text in the Textfield. This is
// used to specify selected text and will be used to change the
-// attributes of characters in the textfield. The range preserves the
-// direction, and selecting from the end to the begining is considered
-// "reverse" order.
+// attributes of characters in the textfield. When this is used for
+// selection, the start is caret position, and the end is where
+// selection started. The range preserves the direction, and
Peter Kasting 2011/01/20 19:44:37 As we discussed, this change turns out to not be w
oshima 2011/01/20 21:35:48 Yes, this is fixed in the original CL.
+// selecting from the begining to the end is considered "reverse"
+// order. (that is, start > end is reverse)
class TextRange {
public:
TextRange() : start_(0), end_(0) {}

Powered by Google App Engine
This is Rietveld 408576698