| 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 9113d79e99a2cc558316d98f9e9f9f8f27762adc..4ad58269d2d0747ea1e151d012ee1caf2fb5338d 100644
|
| --- a/ui/views/widget/native_widget_aura.cc
|
| +++ b/ui/views/widget/native_widget_aura.cc
|
| @@ -567,6 +567,9 @@ void NativeWidgetAura::OnFocus() {
|
| if (widget->is_top_level()) {
|
| InputMethod* input_method = widget->GetInputMethod();
|
| input_method->OnFocus();
|
| + // See description of got_initial_focus_in_ for details on this.
|
| + // TODO(mazda): Investigate this is actually necessary.
|
| + // widget->GetFocusManager()->RestoreFocusedView();
|
| }
|
| delegate_->OnNativeFocus(window_);
|
| }
|
| @@ -576,6 +579,7 @@ void NativeWidgetAura::OnBlur() {
|
| if (widget->is_top_level()) {
|
| InputMethod* input_method = widget->GetInputMethod();
|
| input_method->OnBlur();
|
| + widget->GetFocusManager()->StoreFocusedView();
|
| }
|
| delegate_->OnNativeBlur(NULL);
|
| }
|
| @@ -630,14 +634,12 @@ bool NativeWidgetAura::ShouldActivate(aura::Event* event) {
|
| }
|
|
|
| void NativeWidgetAura::OnActivated() {
|
| - GetWidget()->GetFocusManager()->RestoreFocusedView();
|
| delegate_->OnNativeWidgetActivationChanged(true);
|
| if (IsVisible() && GetWidget()->non_client_view())
|
| GetWidget()->non_client_view()->SchedulePaint();
|
| }
|
|
|
| void NativeWidgetAura::OnLostActive() {
|
| - GetWidget()->GetFocusManager()->StoreFocusedView();
|
| delegate_->OnNativeWidgetActivationChanged(false);
|
| if (IsVisible() && GetWidget()->non_client_view())
|
| GetWidget()->non_client_view()->SchedulePaint();
|
|
|