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 92ff22acd056b10bd25a97fa152b9a1083fdce0b..1f107d07286737cf46c4464091b9781cba42512f 100644 |
| --- a/ui/views/widget/native_widget_aura.cc |
| +++ b/ui/views/widget/native_widget_aura.cc |
| @@ -484,8 +484,7 @@ void NativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) { |
| if (!window_) |
| return; |
| - if (state == ui::SHOW_STATE_MAXIMIZED || state == ui::SHOW_STATE_FULLSCREEN) |
| - window_->SetProperty(aura::client::kShowStateKey, state); |
| + window_->SetProperty(aura::client::kShowStateKey, state); |
| window_->Show(); |
| if (delegate_->CanActivate()) { |
| if (state != ui::SHOW_STATE_INACTIVE) |
| @@ -495,6 +494,9 @@ void NativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) { |
| // do the right thing. |
| SetInitialFocus(state); |
| } |
| + |
| + if (state == ui::SHOW_STATE_MINIMIZED) |
| + Minimize(); |
|
oshima
2015/06/08 17:20:12
Can you add comment something like?
// On desktop
|
| } |
| bool NativeWidgetAura::IsVisible() const { |