diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 16:19:16 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 16:19:16 +0000 |
commit | 0e76c9c9a560fd966c8f06719331179502a350ce (patch) | |
tree | 3e0a5ffea043d7c3af88468180cef1ebad7af336 /gfx/native_theme_win.h | |
parent | 18e093c1e4b8c875ff3f7332479b21f2eb466b95 (diff) | |
download | chromium_src-0e76c9c9a560fd966c8f06719331179502a350ce.zip chromium_src-0e76c9c9a560fd966c8f06719331179502a350ce.tar.gz chromium_src-0e76c9c9a560fd966c8f06719331179502a350ce.tar.bz2 |
Makes menu draw disabled arrow the correct color for classic windows.
BUG=48099
TEST=see bug
Review URL: http://codereview.chromium.org/2835033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/native_theme_win.h')
-rw-r--r-- | gfx/native_theme_win.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gfx/native_theme_win.h b/gfx/native_theme_win.h index 6df247d..687bb65 100644 --- a/gfx/native_theme_win.h +++ b/gfx/native_theme_win.h @@ -54,6 +54,12 @@ class NativeTheme { RIGHT_POINTING_ARROW }; + enum ControlState { + CONTROL_NORMAL, + CONTROL_HIGHLIGHTED, + CONTROL_DISABLED + }; + typedef HRESULT (WINAPI* DrawThemeBackgroundPtr)(HANDLE theme, HDC hdc, int part_id, @@ -115,7 +121,7 @@ class NativeTheme { int state_id, RECT* rect, MenuArrowDirection arrow_direction, - bool is_highlighted) const; + ControlState state) const; HRESULT PaintMenuBackground(ThemeName theme, HDC hdc, @@ -128,7 +134,7 @@ class NativeTheme { int part_id, int state_id, RECT* rect, - bool is_highlighted) const; + ControlState state) const; HRESULT PaintMenuCheckBackground(ThemeName theme, HDC hdc, @@ -276,7 +282,7 @@ class NativeTheme { RECT* rect, UINT type, UINT state, - bool is_highlighted) const; + ControlState control_state) const; // Returns a handle to the theme data. HANDLE GetThemeHandle(ThemeName theme_name) const; |