[Win] Disable minimize and maximize on translucent app windows that have shape.
commit667b7faa1600bec98a44aa5e9842d7d947f9ced0
authorjackhou <jackhou@chromium.org>
Fri, 20 Feb 2015 05:24:59 +0000 (19 21:24 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 20 Feb 2015 05:25:28 +0000 (20 05:25 +0000)
tree7cb6144dac496867d08fb346fd51bdb8f7209a16
parentda6251399179bd88f1641e402bb77d9dfadc51c4
[Win] Disable minimize and maximize on translucent app windows that have shape.

If a window has both alpha and shape, and its bounds change,
translucency is lost. This includes minimizing. This CL tries to prevent
this to some extent by disabling minimize and maximize on these windows.

Note: this bug occurs even if the bounds change first, then the shape is
applied, so the logic should be whether the window ever intends to set a
shape, but the API does not express this at the moment.

BUG=459922, 417947

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

Cr-Commit-Position: refs/heads/master@{#317250}
chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
chrome/browser/ui/views/apps/chrome_native_app_window_views.h
chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
chrome/browser/ui/views/apps/chrome_native_app_window_views_win.h