summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield/textfield_views_model.h
diff options
context:
space:
mode:
authorxji@google.com <xji@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 21:50:09 +0000
committerxji@google.com <xji@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 21:50:09 +0000
commited9f8fbabf171ad48ef3fd64039f6541d619d3fc (patch)
tree8b3983534cac1a12c971eb6667fb28625680d672 /views/controls/textfield/textfield_views_model.h
parente5636a52b930626d4bfae1883cad76f4f1445a04 (diff)
downloadchromium_src-ed9f8fbabf171ad48ef3fd64039f6541d619d3fc.zip
chromium_src-ed9f8fbabf171ad48ef3fd64039f6541d619d3fc.tar.gz
chromium_src-ed9f8fbabf171ad48ef3fd64039f6541d619d3fc.tar.bz2
Fix omnibox state for each tab.
ui::Range only saves cursor's logical positions. In order to restore cursor's visual position, need to save and restore gfx::SelectionModel. BUG=90426 TEST=start chromeos --use-pure-views, type in "abcABC" in omnibox, where "ABC" stands for Hebrew characters. Mouse click on right half of 'c' so that cursor is placed at "abc|CBA". Create a new tab. Click to restore the previous tab page, cursor should be displayed the same as before "abc|CBA", not "abcCBA|". Review URL: http://codereview.chromium.org/7973007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/textfield/textfield_views_model.h')
-rw-r--r--views/controls/textfield/textfield_views_model.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/views/controls/textfield/textfield_views_model.h b/views/controls/textfield/textfield_views_model.h
index abd1e13..e178c23 100644
--- a/views/controls/textfield/textfield_views_model.h
+++ b/views/controls/textfield/textfield_views_model.h
@@ -148,13 +148,7 @@ class VIEWS_EXPORT TextfieldViewsModel {
// Returns the selected text.
string16 GetSelectedText() const;
- void GetSelectedRange(ui::Range* range) const;
-
- // The current composition text will be confirmed. The
- // 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.
// render_text_'s selection model is set to |sel|.