summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 23:30:47 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 23:30:47 +0000
commit49fdb5a9291f52ce995a2e16c4f1fe6cfdef3edb (patch)
tree6cf2ef095ff7af44dd21ca691f9d5f0523095265 /webkit
parent3362262e25c76beabd31a5e7e3e2cfedfe1f5ac1 (diff)
downloadchromium_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')
-rw-r--r--webkit/glue/webthemeengine_impl_win.cc12
-rw-r--r--webkit/glue/webthemeengine_impl_win.h3
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