diff options
author | kevers@chromium.org <kevers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-15 16:16:39 +0000 |
---|---|---|
committer | kevers@chromium.org <kevers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-15 16:16:39 +0000 |
commit | 1b49561b1d80f5417f14b55160a1fbf1facb757d (patch) | |
tree | 55f565c5b6b4c0fa186857b2f68ed0da697b9f4c /ui/native_theme | |
parent | d2952fcd7b2f2c131528d07133a7853f55a3a7de (diff) | |
download | chromium_src-1b49561b1d80f5417f14b55160a1fbf1facb757d.zip chromium_src-1b49561b1d80f5417f14b55160a1fbf1facb757d.tar.gz chromium_src-1b49561b1d80f5417f14b55160a1fbf1facb757d.tar.bz2 |
Fix retrieval of unthemed scrollbar size.
BUG=175335
Review URL: https://codereview.chromium.org/12256011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182726 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/native_theme')
-rw-r--r-- | ui/native_theme/native_theme_win.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc index b3d09a4..3c26c97 100644 --- a/ui/native_theme/native_theme_win.cc +++ b/ui/native_theme/native_theme_win.cc @@ -254,6 +254,15 @@ gfx::Size NativeThemeWin::GetPartSize(Part part, size.cx = 13; size.cy = 13; break; + case kScrollbarDownArrow: + case kScrollbarLeftArrow: + case kScrollbarRightArrow: + case kScrollbarUpArrow: + case kScrollbarHorizontalThumb: + case kScrollbarVerticalThumb: + size.cx = size.cy = static_cast<int>(GetSystemMetrics(SM_CXVSCROLL) / + ui::win::GetDeviceScaleFactor()); + break; default: size.cx = 0; size.cy = 0; |