OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "webkit/glue/webthemeengine_impl_win.h" | 5 #include "webkit/glue/webthemeengine_impl_win.h" |
6 | 6 |
7 #include "gfx/native_theme_win.h" | 7 #include "gfx/native_theme_win.h" |
8 #include "skia/ext/platform_canvas.h" | 8 #include "skia/ext/platform_canvas.h" |
9 #include "skia/ext/skia_utils_win.h" | 9 #include "skia/ext/skia_utils_win.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
11 | 11 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 const WebRect& rect) { | 107 const WebRect& rect) { |
108 HDC hdc = canvas->beginPlatformPaint(); | 108 HDC hdc = canvas->beginPlatformPaint(); |
109 | 109 |
110 RECT native_rect = WebRectToRECT(rect); | 110 RECT native_rect = WebRectToRECT(rect); |
111 gfx::NativeTheme::instance()->PaintTrackbar( | 111 gfx::NativeTheme::instance()->PaintTrackbar( |
112 hdc, part, state, classic_state, &native_rect, canvas); | 112 hdc, part, state, classic_state, &native_rect, canvas); |
113 | 113 |
114 canvas->endPlatformPaint(); | 114 canvas->endPlatformPaint(); |
115 } | 115 } |
116 | 116 |
| 117 void WebThemeEngineImpl::paintProgressBar( |
| 118 WebKit::WebCanvas* canvas, |
| 119 const WebKit::WebRect& barRect, |
| 120 int valuePart, const WebKit::WebRect& valueRect) |
| 121 |
| 122 { |
| 123 HDC hdc = canvas->beginPlatformPaint(); |
| 124 RECT native_bar_rect = WebRectToRECT(barRect); |
| 125 RECT native_value_rect = WebRectToRECT(valueRect); |
| 126 gfx::NativeTheme::instance()->PaintProgressBar( |
| 127 hdc, &native_bar_rect, |
| 128 valuePart, &native_value_rect, canvas); |
| 129 canvas->endPlatformPaint(); |
| 130 } |
| 131 |
117 } // namespace webkit_glue | 132 } // namespace webkit_glue |
OLD | NEW |