summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webthemeengine_impl_win.cc
diff options
context:
space:
mode:
authortkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-14 06:45:57 +0000
committertkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-14 06:45:57 +0000
commit1e21ff4117eb97eec232aeb761cbbc60db8869f5 (patch)
tree50c18292811e389861b894c74f63d4bb7e530225 /webkit/glue/webthemeengine_impl_win.cc
parente3712a768be3688524e6a75e0d29f72dafd320ef (diff)
downloadchromium_src-1e21ff4117eb97eec232aeb761cbbc60db8869f5.zip
chromium_src-1e21ff4117eb97eec232aeb761cbbc60db8869f5.tar.gz
chromium_src-1e21ff4117eb97eec232aeb761cbbc60db8869f5.tar.bz2
Added support for HTML5 progress element.
WebKit side of this change is on http://webkit.org/b/37308 . continued from http://codereview.chromium.org/1596018 Patch by Hajime Morita <morrita@g> Original code review: http://codereview.chromium.org/1988012/show BUG=none TEST=Covered by WebKit LayoutTests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webthemeengine_impl_win.cc')
-rw-r--r--webkit/glue/webthemeengine_impl_win.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc
index 78d7cf3614..0d2b563 100644
--- a/webkit/glue/webthemeengine_impl_win.cc
+++ b/webkit/glue/webthemeengine_impl_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
@@ -114,4 +114,19 @@ void WebThemeEngineImpl::paintTrackbar(
canvas->endPlatformPaint();
}
+void WebThemeEngineImpl::paintProgressBar(
+ WebKit::WebCanvas* canvas,
+ const WebKit::WebRect& barRect,
+ int valuePart, const WebKit::WebRect& valueRect)
+
+{
+ HDC hdc = canvas->beginPlatformPaint();
+ RECT native_bar_rect = WebRectToRECT(barRect);
+ RECT native_value_rect = WebRectToRECT(valueRect);
+ gfx::NativeTheme::instance()->PaintProgressBar(
+ hdc, &native_bar_rect,
+ valuePart, &native_value_rect, canvas);
+ canvas->endPlatformPaint();
+}
+
} // namespace webkit_glue