Commit 7eb02c28 authored by jackhou's avatar jackhou Committed by Commit bot

Allow all app windows to minimize.

On CrOS, app windows can already be minimized by clicking their icon in the
taskbar. This just makes them show a minimize button as well.

On Windows, we prevent minimize if the window can't maximize, which
doesn't really make sense. They will now be able to minimize and show a
minimize button.

On Mac and Linux they could always minimize.

BUG=351179

Review URL: https://codereview.chromium.org/603523002

Cr-Commit-Position: refs/heads/master@{#296437}
parent 96b54569
...@@ -219,8 +219,7 @@ bool NativeAppWindowViews::CanMaximize() const { ...@@ -219,8 +219,7 @@ bool NativeAppWindowViews::CanMaximize() const {
} }
bool NativeAppWindowViews::CanMinimize() const { bool NativeAppWindowViews::CanMinimize() const {
// TODO(jackhou): Change this to always be true. return true;
return CanMaximize();
} }
base::string16 NativeAppWindowViews::GetWindowTitle() const { base::string16 NativeAppWindowViews::GetWindowTitle() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment