OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // A wrapper class for working with custom XP/Vista themes provided in | 5 // A wrapper class for working with custom XP/Vista themes provided in |
6 // uxtheme.dll. This is a singleton class that can be grabbed using | 6 // uxtheme.dll. This is a singleton class that can be grabbed using |
7 // NativeTheme::instance(). | 7 // NativeTheme::instance(). |
8 // For more information on visual style parts and states, see: | 8 // For more information on visual style parts and states, see: |
9 // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/plat
form/commctls/userex/topics/partsandstates.asp | 9 // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/plat
form/commctls/userex/topics/partsandstates.asp |
10 | 10 |
11 #ifndef BASE_GFX_NATIVE_THEME_H__ | 11 #ifndef APP_GFX_NATIVE_THEME_WIN_H_ |
12 #define BASE_GFX_NATIVE_THEME_H__ | 12 #define APP_GFX_NATIVE_THEME_WIN_H_ |
13 | 13 |
14 #include <windows.h> | 14 #include <windows.h> |
15 #include <uxtheme.h> | 15 #include <uxtheme.h> |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/gfx/size.h" | 17 #include "base/gfx/size.h" |
18 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
19 | 19 |
20 namespace skia { | 20 namespace skia { |
21 class PlatformCanvas; | 21 class PlatformCanvas; |
22 } // namespace skia | 22 } // namespace skia |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 SetThemeAppPropertiesPtr set_theme_properties_; | 281 SetThemeAppPropertiesPtr set_theme_properties_; |
282 IsThemeActivePtr is_theme_active_; | 282 IsThemeActivePtr is_theme_active_; |
283 GetThemeIntPtr get_theme_int_; | 283 GetThemeIntPtr get_theme_int_; |
284 | 284 |
285 // Handle to uxtheme.dll. | 285 // Handle to uxtheme.dll. |
286 HMODULE theme_dll_; | 286 HMODULE theme_dll_; |
287 | 287 |
288 // A cache of open theme handles. | 288 // A cache of open theme handles. |
289 mutable HANDLE theme_handles_[LAST]; | 289 mutable HANDLE theme_handles_[LAST]; |
290 | 290 |
291 DISALLOW_EVIL_CONSTRUCTORS(NativeTheme); | 291 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
292 }; | 292 }; |
293 | 293 |
294 } // namespace gfx | 294 } // namespace gfx |
295 | 295 |
296 #endif // BASE_GFX_NATIVE_THEME_H__ | 296 #endif // APP_GFX_NATIVE_THEME_WIN_H_ |
OLD | NEW |