diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-30 19:02:16 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-30 19:02:16 +0000 |
commit | c6d9422188208e9034891c3cb46d37171e33208c (patch) | |
tree | 82dd7b79d7b1ff2b67f7bf55eedc360e87084a37 /views/controls/menu/menu_separator_win.cc | |
parent | b00bbb39365d95b4e8d95302d1e18507997fd1ec (diff) | |
download | chromium_src-c6d9422188208e9034891c3cb46d37171e33208c.zip chromium_src-c6d9422188208e9034891c3cb46d37171e33208c.tar.gz chromium_src-c6d9422188208e9034891c3cb46d37171e33208c.tar.bz2 |
In preparation for NativeTheme refactoring, renaming the class NativeTheme
to NativeThemeWin, since it is windows specific anyway.
BUG=None
TEST=None
R=xiyuan@chromium.org
Review URL: http://codereview.chromium.org/6778009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/menu/menu_separator_win.cc')
-rw-r--r-- | views/controls/menu/menu_separator_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/menu/menu_separator_win.cc b/views/controls/menu/menu_separator_win.cc index b2f8a3e..d997dbd 100644 --- a/views/controls/menu/menu_separator_win.cc +++ b/views/controls/menu/menu_separator_win.cc @@ -21,9 +21,9 @@ void MenuSeparator::OnPaint(gfx::Canvas* canvas) { int start_x = 0; int start_y = height() / 3 + 1; // +1 makes separator centered. HDC dc = canvas->BeginPlatformPaint(); - const gfx::NativeTheme* theme = gfx::NativeTheme::instance(); + const gfx::NativeThemeWin* theme = gfx::NativeThemeWin::instance(); // Delta is needed for non-classic to move separator up slightly. - int delta = theme->IsClassicTheme(gfx::NativeTheme::MENU) ? 0 : 1; + int delta = theme->IsClassicTheme(gfx::NativeThemeWin::MENU) ? 0 : 1; if (config.render_gutter) { // If render_gutter is true, we're on Vista and need to render the // gutter, then indent the separator from the gutter. |