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

Unified Diff: ui/base/win/shell.cc

Issue 10827454: Move more methods from NWW to HWNDMessageHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « ui/base/win/shell.h ('k') | ui/views/widget/default_theme_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/shell.cc
===================================================================
--- ui/base/win/shell.cc (revision 152769)
+++ ui/base/win/shell.cc (working copy)
@@ -4,6 +4,7 @@
#include "ui/base/win/shell.h"
+#include <dwmapi.h>
#include <shellapi.h>
#include <shlobj.h> // Must be before propkey.
#include <propkey.h>
@@ -88,5 +89,13 @@
SetAppIdAndIconForWindow(string16(), app_icon, hwnd);
}
+bool IsAeroGlassEnabled() {
+ if (base::win::GetVersion() < base::win::VERSION_VISTA)
+ return false;
+ // If composition is not enabled, we behave like on XP.
+ BOOL enabled = FALSE;
+ return SUCCEEDED(DwmIsCompositionEnabled(&enabled)) && enabled;
+}
+
} // namespace win
} // namespace ui
« no previous file with comments | « ui/base/win/shell.h ('k') | ui/views/widget/default_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698