diff options
author | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 19:20:38 +0000 |
---|---|---|
committer | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 19:20:38 +0000 |
commit | dec2390b946fb730eef13196eca52148ae50a87f (patch) | |
tree | 619d8dc43f4494868872575f7becfe7a6a11e70a /views | |
parent | 06a5eee1392736878842de33f2e1842f5a19b8cc (diff) | |
download | chromium_src-dec2390b946fb730eef13196eca52148ae50a87f.zip chromium_src-dec2390b946fb730eef13196eca52148ae50a87f.tar.gz chromium_src-dec2390b946fb730eef13196eca52148ae50a87f.tar.bz2 |
Add missing OnCaretBoundsChanged() hooks to NativeTextfieldViews.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7465091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/textfield/native_textfield_views.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc index 479c1eaba..9fe2c7f 100644 --- a/views/controls/textfield/native_textfield_views.cc +++ b/views/controls/textfield/native_textfield_views.cc @@ -113,9 +113,11 @@ bool NativeTextfieldViews::OnMousePressed(const MouseEvent& event) { break; case 1: model_->SelectWord(); + OnCaretBoundsChanged(); break; case 2: model_->SelectAll(); + OnCaretBoundsChanged(); break; default: NOTREACHED(); @@ -335,6 +337,7 @@ string16 NativeTextfieldViews::GetSelectedText() const { void NativeTextfieldViews::SelectAll() { OnBeforeUserAction(); model_->SelectAll(); + OnCaretBoundsChanged(); SchedulePaint(); OnAfterUserAction(); } @@ -342,6 +345,7 @@ void NativeTextfieldViews::SelectAll() { void NativeTextfieldViews::ClearSelection() { OnBeforeUserAction(); model_->ClearSelection(); + OnCaretBoundsChanged(); SchedulePaint(); OnAfterUserAction(); } |