OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/win/shell.h" | 5 #include "ui/base/win/shell.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shlobj.h> // Must be before propkey. | 8 #include <shlobj.h> // Must be before propkey. |
9 #include <propkey.h> | 9 #include <propkey.h> |
10 #include <shellapi.h> | 10 #include <shellapi.h> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/native_library.h" | 13 #include "base/native_library.h" |
14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/win/metro.h" | 15 #include "base/win/metro.h" |
16 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
17 #include "base/win/win_util.h" | 17 #include "base/win/win_util.h" |
18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 namespace win { | 21 namespace win { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool IsAeroGlassEnabled() { | 117 bool IsAeroGlassEnabled() { |
118 if (base::win::GetVersion() < base::win::VERSION_VISTA) | 118 if (base::win::GetVersion() < base::win::VERSION_VISTA) |
119 return false; | 119 return false; |
120 // If composition is not enabled, we behave like on XP. | 120 // If composition is not enabled, we behave like on XP. |
121 BOOL enabled = FALSE; | 121 BOOL enabled = FALSE; |
122 return SUCCEEDED(DwmIsCompositionEnabled(&enabled)) && enabled; | 122 return SUCCEEDED(DwmIsCompositionEnabled(&enabled)) && enabled; |
123 } | 123 } |
124 | 124 |
125 } // namespace win | 125 } // namespace win |
126 } // namespace ui | 126 } // namespace ui |
OLD | NEW |