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

Unified Diff: ui/views/widget/widget_hwnd_utils.cc

Issue 191723003: Nukes USE_AURA ifdefs from views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 9 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: ui/views/widget/widget_hwnd_utils.cc
diff --git a/ui/views/widget/widget_hwnd_utils.cc b/ui/views/widget/widget_hwnd_utils.cc
index 3b6f69dd7aa7d3fce7abdcd313db2350ae854689..40ccd29552927dc8837be01c5bfef377a3acbfb5 100644
--- a/ui/views/widget/widget_hwnd_utils.cc
+++ b/ui/views/widget/widget_hwnd_utils.cc
@@ -62,12 +62,8 @@ void CalculateWindowStylesFromInitParams(
// 5- When the window is created but before it is presented, call
// DwmExtendFrameIntoClientArea passing -1 as the margins.
if (params.opacity == Widget::InitParams::TRANSLUCENT_WINDOW) {
-#if defined(USE_AURA)
if (ui::win::IsAeroGlassEnabled())
*ex_style |= WS_EX_COMPOSITED;
-#else
- *ex_style |= WS_EX_LAYERED;
-#endif
}
if (params.has_dropshadow) {
*class_style |= (base::win::GetVersion() < base::win::VERSION_XP) ?

Powered by Google App Engine
This is Rietveld 408576698