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

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: Code review changes. 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..3912b08a46017baa47e2cae9e6a305d56b4fe733 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.
+ // TODO(shrikant): Instead of #if, this logic can possibly be moved to
scottmg 2013/12/06 22:00:17 I think just delete this TODO.
sky 2013/12/11 21:17:28 Ah, that's right. In that case isn't the better fi
Shrikant Kelkar 2013/12/11 21:58:37 Please correct me, but as I understand host_deskto
+ // platform specific NativeBrowserFrame by extending interface definition.
+ params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
+#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