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

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

Issue 8044004: Clean up of SelectionModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: views/controls/textfield/textfield_views_model.h
===================================================================
--- views/controls/textfield/textfield_views_model.h (revision 103758)
+++ views/controls/textfield/textfield_views_model.h (working copy)
@@ -148,6 +148,14 @@
// Returns the selected text.
string16 GetSelectedText() const;
+ void GetSelectedRange(ui::Range* range) const;
msw 2011/10/04 07:25:41 Please add a simple one line comment, like you hav
xji 2011/10/05 01:23:42 Done.
+
+ // The current composition text will be confirmed. The
msw 2011/10/04 07:25:41 This is 3 lines if you wrap closer to 80 chars:
xji 2011/10/05 01:23:42 Done.
+ // selection starts with the range's start position,
+ // and ends with the range's end position, therefore
+ // the cursor position becomes the end position.
+ void SelectRange(const ui::Range& range);
+
void GetSelectionModel(gfx::SelectionModel* sel) const;
// The current composition text will be confirmed.

Powered by Google App Engine
This is Rietveld 408576698