diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 04:46:36 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 04:46:36 +0000 |
commit | e94ece093bbc9cb8e3020c9b623a29c9e66b0ea9 (patch) | |
tree | 4c179b657b9c01eed97777cb7c27ec7901b2e65f /webkit/glue/webthemeengine_impl_win.cc | |
parent | 8cf33ba363a6bc4977808f641d34b6a4a6754fb0 (diff) | |
download | chromium_src-e94ece093bbc9cb8e3020c9b623a29c9e66b0ea9.zip chromium_src-e94ece093bbc9cb8e3020c9b623a29c9e66b0ea9.tar.gz chromium_src-e94ece093bbc9cb8e3020c9b623a29c9e66b0ea9.tar.bz2 |
Implement spin buttons for <input type=number>
BUG=42179
TEST=None; will covered by layout tests.
Review URL: http://codereview.chromium.org/2813050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52611 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 71913ef..85dc113 100644 --- a/webkit/glue/webthemeengine_impl_win.cc +++ b/webkit/glue/webthemeengine_impl_win.cc @@ -86,6 +86,18 @@ void WebThemeEngineImpl::paintScrollbarTrack( canvas->endPlatformPaint(); } +void WebThemeEngineImpl::paintSpinButton( + WebCanvas* canvas, int part, int state, int classic_state, + const WebRect& rect) { + HDC hdc = canvas->beginPlatformPaint(); + + RECT native_rect = WebRectToRECT(rect); + gfx::NativeTheme::instance()->PaintSpinButton( + hdc, part, state, classic_state, &native_rect); + + canvas->endPlatformPaint(); +} + void WebThemeEngineImpl::paintTextField( WebCanvas* canvas, int part, int state, int classic_state, const WebRect& rect, WebColor color, bool fill_content_area, |