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

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

Issue 8044004: Clean up of SelectionModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: add comment about 'next' in ReplaceTextInternal 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
« no previous file with comments | « views/controls/textfield/native_textfield_wrapper.h ('k') | views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/textfield.h
===================================================================
--- views/controls/textfield/textfield.h (revision 103984)
+++ views/controls/textfield/textfield.h (working copy)
@@ -178,6 +178,14 @@
// Returns whether or not an IME is composing text.
bool IsIMEComposing() const;
+ // Gets the selected range. This is views-implementation only and
+ // has to be called after the wrapper is created.
+ void GetSelectedRange(ui::Range* range) const;
+
+ // Selects the text given by |range|. This is views-implementation only and
+ // has to be called after the wrapper is created.
+ void SelectRange(const ui::Range& range);
+
// Gets the selection model. This is views-implementation only and
// has to be called after the wrapper is created.
void GetSelectionModel(gfx::SelectionModel* sel) const;
« no previous file with comments | « views/controls/textfield/native_textfield_wrapper.h ('k') | views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698