| 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
|
|
|