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

Unified Diff: chrome/browser/ui/views/frame/browser_frame.cc

Issue 108193005: Fixing opacity for browser frame window on ASH/Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame.cc b/chrome/browser/ui/views/frame/browser_frame.cc
index 595266846421ea24fd7b896aff6dd27351ebfa00..d6794f98e85111d1960b22ddfe0153cc5b09ab4c 100644
--- a/chrome/browser/ui/views/frame/browser_frame.cc
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
@@ -96,6 +96,13 @@ void BrowserFrame::InitBrowserFrame() {
if (browser_view_->browser()->host_desktop_type() ==
chrome::HOST_DESKTOP_TYPE_ASH || chrome::ShouldOpenAshOnStartup()) {
params.context = ash::Shell::GetPrimaryRootWindow();
+
+#if defined(OS_WIN)
+ // If this window is under ASH on Windows. We need it to be Translucent.
scottmg 2013/12/06 20:52:00 nit; "If this window is under ASH on Windows. We n
Shrikant Kelkar 2013/12/06 21:46:50 Done.
+ // TODO(shrikant): Instead of #if, this logic can possibly be moved to
+ // platform specific NativeBrowserFrame by extending interface definition.
+ params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
scottmg 2013/12/06 20:52:00 It should ask ChromeViewsDelegate::UseTransparentW
Shrikant Kelkar 2013/12/06 21:46:50 It doesn't do the right thing as of now for ASH wi
+#endif
}
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698