diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/webthemeengine_impl_win.cc | 12 | ||||
-rw-r--r-- | webkit/glue/webthemeengine_impl_win.h | 3 |
2 files changed, 15 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 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 |