diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 23:30:47 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 23:30:47 +0000 |
commit | 49fdb5a9291f52ce995a2e16c4f1fe6cfdef3edb (patch) | |
tree | 6cf2ef095ff7af44dd21ca691f9d5f0523095265 /webkit/glue/webthemeengine_impl_win.cc | |
parent | 3362262e25c76beabd31a5e7e3e2cfedfe1f5ac1 (diff) | |
download | chromium_src-49fdb5a9291f52ce995a2e16c4f1fe6cfdef3edb.zip chromium_src-49fdb5a9291f52ce995a2e16c4f1fe6cfdef3edb.tar.gz chromium_src-49fdb5a9291f52ce995a2e16c4f1fe6cfdef3edb.tar.bz2 |
Chromium side of trackbar drawing. This is needed to support <input type="range">.
This code will not be called until I land the upstream hooks to RenderThemeChromiumWin.cpp to use it.
BUG=8931
Review URL: http://codereview.chromium.org/42451
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12231 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webthemeengine_impl_win.cc')
-rw-r--r-- | webkit/glue/webthemeengine_impl_win.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc index 50e7bd7..dd775b0 100644 --- a/webkit/glue/webthemeengine_impl_win.cc +++ b/webkit/glue/webthemeengine_impl_win.cc @@ -102,4 +102,16 @@ void WebThemeEngineImpl::paintTextField( canvas->endPlatformPaint(); } +void WebThemeEngineImpl::paintTrackbar( + WebCanvas* canvas, int part, int state, int classic_state, + const WebRect& rect) { + HDC hdc = canvas->beginPlatformPaint(); + + RECT native_rect = WebRectToRECT(rect); + gfx::NativeTheme::instance()->PaintTrackbar( + hdc, part, state, classic_state, &native_rect, canvas); + + canvas->endPlatformPaint(); +} + } // namespace webkit_glue |