| Index: ash/shell/content_client/shell_browser_main_parts.cc
|
| diff --git a/ash/shell/content_client/shell_browser_main_parts.cc b/ash/shell/content_client/shell_browser_main_parts.cc
|
| index 478453de02044d110ae4dad749384ba38268744f..2798e7f06d16b8e64d0482ed71ea3fa296351f7b 100644
|
| --- a/ash/shell/content_client/shell_browser_main_parts.cc
|
| +++ b/ash/shell/content_client/shell_browser_main_parts.cc
|
| @@ -57,13 +57,16 @@ class ShellViewsDelegate : public views::TestViewsDelegate {
|
| views::Widget* widget) OVERRIDE {
|
| return ash::Shell::GetInstance()->CreateDefaultNonClientFrameView(widget);
|
| }
|
| - virtual bool UseTransparentWindows() const OVERRIDE {
|
| - // Ash uses transparent window frames.
|
| - return true;
|
| - }
|
| virtual void OnBeforeWidgetInit(
|
| views::Widget::InitParams* params,
|
| views::internal::NativeWidgetDelegate* delegate) OVERRIDE {
|
| + if (params->opacity == InitParams::INFER_OPACITY) {
|
| + if (use_transparent_windows_)
|
| + params->opacity = InitParams::TRANSLUCENT_WINDOW;
|
| + else
|
| + params->opacity = InitParams::OPAQUE_WINDOW;
|
| + }
|
| +
|
| if (params->native_widget)
|
| return;
|
|
|
|
|