OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 UI_GFX_NATIVE_THEME_WIN_H_ | 11 #ifndef UI_GFX_NATIVE_THEME_WIN_H_ |
12 #define UI_GFX_NATIVE_THEME_WIN_H_ | 12 #define UI_GFX_NATIVE_THEME_WIN_H_ |
13 #pragma once | 13 #pragma once |
14 | 14 |
| 15 #include "ui/gfx/size.h" |
15 #include <windows.h> | 16 #include <windows.h> |
16 #include <uxtheme.h> | 17 #include <uxtheme.h> |
17 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
18 #include "gfx/size.h" | |
19 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
20 | 20 |
21 namespace skia { | 21 namespace skia { |
22 class PlatformCanvas; | 22 class PlatformCanvas; |
23 } // namespace skia | 23 } // namespace skia |
24 | 24 |
25 namespace gfx { | 25 namespace gfx { |
26 | 26 |
27 // TODO: Define class member enums to replace part_id and state_id parameters | 27 // TODO: Define class member enums to replace part_id and state_id parameters |
28 // that are currently defined in <vssym32.h>. Afterward, classic_state should | 28 // that are currently defined in <vssym32.h>. Afterward, classic_state should |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 // A cache of open theme handles. | 313 // A cache of open theme handles. |
314 mutable HANDLE theme_handles_[LAST]; | 314 mutable HANDLE theme_handles_[LAST]; |
315 | 315 |
316 DISALLOW_COPY_AND_ASSIGN(NativeTheme); | 316 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
317 }; | 317 }; |
318 | 318 |
319 } // namespace gfx | 319 } // namespace gfx |
320 | 320 |
321 #endif // UI_GFX_NATIVE_THEME_WIN_H_ | 321 #endif // UI_GFX_NATIVE_THEME_WIN_H_ |
OLD | NEW |