Chromium Code Reviews| Index: ui/views/widget/native_widget_aura.cc |
| diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc |
| index 1163f4af1371bb447b217dbe6162c5c3d5f58c27..7edbbde7384daa333414dfbc700e2a3431eb8f48 100644 |
| --- a/ui/views/widget/native_widget_aura.cc |
| +++ b/ui/views/widget/native_widget_aura.cc |
| @@ -782,6 +782,9 @@ void NativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) { |
| return; |
| } |
| + if (event->type() == ui::ET_MOUSE_RELEASED) |
| + GetWidget()->GetInputMethod()->OnPossibleRefocus(); |
|
SteveT
2013/07/31 03:19:18
Handling "refocus" here and below.
|
| + |
| if (tooltip_manager_.get()) |
| tooltip_manager_->UpdateTooltip(); |
| delegate_->OnMouseEvent(event); |
| @@ -793,6 +796,10 @@ void NativeWidgetAura::OnScrollEvent(ui::ScrollEvent* event) { |
| void NativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
| DCHECK(window_->IsVisible()); |
| + |
| + if (event->type() == ui::ET_TOUCH_RELEASED) |
| + GetWidget()->GetInputMethod()->OnPossibleRefocus(); |
| + |
| delegate_->OnTouchEvent(event); |
| } |