diff options
Diffstat (limited to 'ui/native_theme/native_theme_win.h')
-rw-r--r-- | ui/native_theme/native_theme_win.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/native_theme/native_theme_win.h b/ui/native_theme/native_theme_win.h index 5542f20..408818f 100644 --- a/ui/native_theme/native_theme_win.h +++ b/ui/native_theme/native_theme_win.h @@ -54,6 +54,9 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme, bool IsThemingActive() const; + // Returns true if a high contrast theme is being used. + bool IsUsingHighContrastTheme() const; + HRESULT GetThemeColor(ThemeName theme, int part_id, int state_id, @@ -356,6 +359,12 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme, gfx::ScopedSysColorChangeListener color_change_listener_; mutable std::map<int, SkColor> system_colors_; + // Is a high contrast theme active? + mutable bool is_using_high_contrast_; + + // Is |is_using_high_contrast_| valid? + mutable bool is_using_high_contrast_valid_; + DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); }; |