Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7661)

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc

Issue 935193003: [Mac] Use chrome_native_app_window_views when mac_views_browser is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put behind mac_views_browser GYP flag instead. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/chrome_browser_ui.gypi » ('j') | chrome/chrome_browser_ui.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) !=
« no previous file with comments | « no previous file | chrome/chrome_browser_ui.gypi » ('j') | chrome/chrome_browser_ui.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698