Index: webkit/glue/webthemeengine_impl_win.cc |
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc |
index 78d7cf3614fa3b859fddd8d6505f58609efbd0a5..0d2b563e760c29a8d7ebb95425cb953c09855583 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 |