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

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

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 5 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
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
index d13b495c8295d617b2aaf36e6d530d0452c5ccb6..0e91836552ab6cbee983dd657505a034b6604d2f 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
@@ -194,3 +194,7 @@ void ChromeNativeAppWindowViewsWin::UpdateShelfMenu() {
// Note that an empty jumplist must still be committed to clear all items.
jumplist_updater.CommitUpdate();
}
+
+bool ChromeNativeAppWindowViewsWin::CanHaveAlphaEnabled() const {
+ return ui::win::IsAeroGlassEnabled();
tapted 2014/07/14 03:30:24 You could also use widget()->ShouldWindowContentsB
jackhou1 2014/07/14 04:51:03 ShouldWindowContentsBeTransparent is meant for nat
+}

Powered by Google App Engine
This is Rietveld 408576698