From 49fdb5a9291f52ce995a2e16c4f1fe6cfdef3edb Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Fri, 20 Mar 2009 23:30:47 +0000 Subject: Chromium side of trackbar drawing. This is needed to support . 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 --- webkit/glue/webthemeengine_impl_win.cc | 12 ++++++++++++ webkit/glue/webthemeengine_impl_win.h | 3 +++ 2 files changed, 15 insertions(+) (limited to 'webkit') 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 diff --git a/webkit/glue/webthemeengine_impl_win.h b/webkit/glue/webthemeengine_impl_win.h index c284527..866e7b8 100644 --- a/webkit/glue/webthemeengine_impl_win.h +++ b/webkit/glue/webthemeengine_impl_win.h @@ -31,6 +31,9 @@ class WebThemeEngineImpl : public WebKit::WebThemeEngine { WebKit::WebCanvas*, int part, int state, int classic_state, const WebKit::WebRect&, WebKit::WebColor, bool fill_content_area, bool draw_edges); + virtual void paintTrackbar( + WebKit::WebCanvas*, int part, int state, int classic_state, + const WebKit::WebRect&); }; } // namespace webkit_glue -- cgit v1.1