Index: ui/native_theme/native_theme_win.h |
diff --git a/ui/native_theme/native_theme_win.h b/ui/native_theme/native_theme_win.h |
index 1e83d1565bb17a9d0652dc4cd0b0bfb3295271bf..c0481af913cb327c89baec6fe164ddf9637d6008 100644 |
--- a/ui/native_theme/native_theme_win.h |
+++ b/ui/native_theme/native_theme_win.h |
@@ -11,6 +11,7 @@ |
// For more information on visual style parts and states, see: |
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/topics/partsandstates.asp |
+#include <map> |
#include <windows.h> |
#include <uxtheme.h> |
@@ -96,7 +97,7 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme { |
bool fill_content_area, |
bool draw_edges) const; |
- // NativeTheme Implementation: |
+ // NativeTheme implementation: |
virtual gfx::Size GetPartSize(Part part, |
State state, |
const ExtraParams& extra) const OVERRIDE; |
@@ -314,6 +315,9 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme { |
int prop_id, |
int *value); |
+ // gfx::SysColorChangeListener implementation: |
+ virtual void OnSysColorChange() OVERRIDE; |
+ |
// Function pointers into uxtheme.dll. |
DrawThemeBackgroundPtr draw_theme_; |
DrawThemeBackgroundExPtr draw_theme_ex_; |
@@ -332,6 +336,9 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme { |
// A cache of open theme handles. |
mutable HANDLE theme_handles_[LAST]; |
+ // A map of cached and updated system colors. |
+ mutable std::map<int, SkColor> system_colors_; |
+ |
DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); |
}; |