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

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

Issue 70233003: Merge 232898 "ChromeOS windows are transparent by default. This ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month 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/apps/native_app_window_views.cc
===================================================================
--- chrome/browser/ui/views/apps/native_app_window_views.cc (revision 234668)
+++ chrome/browser/ui/views/apps/native_app_window_views.cc (working copy)
@@ -212,9 +212,8 @@
// TODO(erg): Conceptually, these are toplevel windows, but we theoretically
// could plumb context through to here in some cases.
init_params.top_level = true;
- init_params.opacity = create_params.transparent_background
- ? views::Widget::InitParams::TRANSLUCENT_WINDOW
- : views::Widget::InitParams::INFER_OPACITY;
+ if (create_params.transparent_background)
+ init_params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
init_params.keep_on_top = create_params.always_on_top;
gfx::Rect window_bounds = create_params.bounds;
bool position_specified =
« 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