diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 00:03:25 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 00:03:25 +0000 |
commit | 723c89891d26c497afc8ba9b6316d06819d38a52 (patch) | |
tree | 4a2cc473c05353820e254b50bf55aae47c0d1faa /ui/gfx | |
parent | d19c6c3c2ad3cbadb0ef60236613cbc0cb4ef00a (diff) | |
download | chromium_src-723c89891d26c497afc8ba9b6316d06819d38a52.zip chromium_src-723c89891d26c497afc8ba9b6316d06819d38a52.tar.gz chromium_src-723c89891d26c497afc8ba9b6316d06819d38a52.tar.bz2 |
Fix vertical range slider.
BUG=88017
TEST=Load a web page that should display a vertical slider and make sure it
appears vertical and correctly instead of horizonatally. Note that the
thumb part appears too far to the right; I have confirmed this on all platforms
(win,linux,mac). Since bug was was about a windows specific rendering issue,
I have opened another bug (89616) to keep track of the right offset.
Review URL: http://codereview.chromium.org/7400024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r-- | ui/gfx/native_theme.h | 1 | ||||
-rw-r--r-- | ui/gfx/native_theme_win.cc | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ui/gfx/native_theme.h b/ui/gfx/native_theme.h index 665b78e..2f1ba70 100644 --- a/ui/gfx/native_theme.h +++ b/ui/gfx/native_theme.h @@ -172,6 +172,7 @@ class UI_API NativeTheme { }; struct TrackbarExtraParams { + bool vertical; int classic_state; // Used on Windows when uxtheme is not available. }; diff --git a/ui/gfx/native_theme_win.cc b/ui/gfx/native_theme_win.cc index 29e1faf..1fade35 100644 --- a/ui/gfx/native_theme_win.cc +++ b/ui/gfx/native_theme_win.cc @@ -931,6 +931,9 @@ HRESULT NativeThemeWin::PaintTrackbar( const gfx::Rect& rect, const TrackbarExtraParams& extra) const { int part_id = part == kTrackbarTrack ? TKP_TRACK : TKP_THUMBBOTTOM; + if (extra.vertical) + part_id = part == kTrackbarTrack ? TKP_TRACKVERT : TKP_THUMBVERT; + int state_id = 0; switch(state) { case kDisabled: |