Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: webkit/glue/webthemeengine_impl_win.cc

Issue 1988012: Added support for HTML5 progress element. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: took the feedback Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698