Chromium Code Reviews| Index: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| index cf3624ec8db86604ad71f67e390a75edb7fd5f35..57431f11754c11194c970d23e0f270c67788f39d 100644 |
| --- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| +++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc |
| @@ -266,7 +266,9 @@ void ChromeNativeAppWindowViews::InitializeDefaultWindow( |
| // transparency and has no standard frame, don't show a shadow for it. |
| // TODO(skuhne): If we run into an application which should have a shadow |
| // but does not have, a new attribute has to be added. |
| +#if defined(USE_AURA) |
| wm::SetShadowType(widget()->GetNativeWindow(), wm::SHADOW_TYPE_NONE); |
|
tapted
2015/02/20 07:50:29
I think we need a general fix for this.
Mac autom
jackhou1
2015/02/26 04:35:16
Done.
|
| +#endif |
| } |
| #if defined(OS_CHROMEOS) |
| @@ -615,9 +617,12 @@ void ChromeNativeAppWindowViews::UpdateBadgeIcon() { |
| } |
| void ChromeNativeAppWindowViews::UpdateShape(scoped_ptr<SkRegion> region) { |
| +#if defined(USE_AURA) |
|
tapted
2015/02/20 07:50:30
It's annoying... but I think we need to try to mak
jackhou1
2015/02/26 04:35:16
Done.
|
| bool had_shape = shape_; |
| +#endif |
| shape_ = region.Pass(); |
| +#if defined(USE_AURA) |
| aura::Window* native_window = widget()->GetNativeWindow(); |
| if (shape_) { |
| widget()->SetShape(new SkRegion(*shape_)); |
| @@ -630,6 +635,7 @@ void ChromeNativeAppWindowViews::UpdateShape(scoped_ptr<SkRegion> region) { |
| if (had_shape) |
| native_window->SetEventTargeter(scoped_ptr<ui::EventTargeter>()); |
| } |
| +#endif |
| widget()->OnSizeConstraintsChanged(); |
| } |
| @@ -694,7 +700,7 @@ ChromeNativeAppWindowViews::CreateNonStandardAppFrame() { |
| } |
| #endif |
| -#if !defined(OS_CHROMEOS) |
| +#if !defined(OS_CHROMEOS) && defined(USE_AURA) |
|
tapted
2015/02/20 07:50:30
If this moves to ChromeNativeAppWindowAura the #if
jackhou1
2015/02/26 04:35:16
Done.
|
| // For non-Ash windows, install an easy resize window targeter, which ensures |
| // that the root window (not the app) receives mouse events on the edges. |
| if (chrome::GetHostDesktopTypeForNativeWindow(widget()->GetNativeWindow()) != |