summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield/textfield_views_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/textfield/textfield_views_model.h')
-rw-r--r--views/controls/textfield/textfield_views_model.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/controls/textfield/textfield_views_model.h b/views/controls/textfield/textfield_views_model.h
index 1e580b7..c7e7e9a 100644
--- a/views/controls/textfield/textfield_views_model.h
+++ b/views/controls/textfield/textfield_views_model.h
@@ -16,9 +16,11 @@ namespace gfx {
class Font;
} // namespace gfx
-namespace views {
+namespace ui {
+class Range;
+} // namespace ui
-class TextRange;
+namespace views {
// A model that represents a text content for TextfieldViews.
// It supports editing, selection and cursor manipulation.
@@ -116,9 +118,9 @@ class TextfieldViewsModel {
// Returns the selected text.
string16 GetSelectedText() const;
- void GetSelectedRange(TextRange* range) const;
+ void GetSelectedRange(ui::Range* range) const;
- void SelectRange(const TextRange& range);
+ void SelectRange(const ui::Range& range);
// Selects all text.
void SelectAll();