From dec2390b946fb730eef13196eca52148ae50a87f Mon Sep 17 00:00:00 2001 From: "varunjain@chromium.org" Date: Wed, 3 Aug 2011 19:20:38 +0000 Subject: 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 --- views/controls/textfield/native_textfield_views.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'views') 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(); } -- cgit v1.1