OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the 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" | |
8 #include "skia/ext/platform_canvas.h" | 7 #include "skia/ext/platform_canvas.h" |
9 #include "skia/ext/skia_utils_win.h" | 8 #include "skia/ext/skia_utils_win.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" |
| 10 #include "ui/gfx/native_theme_win.h" |
11 | 11 |
12 using WebKit::WebCanvas; | 12 using WebKit::WebCanvas; |
13 using WebKit::WebColor; | 13 using WebKit::WebColor; |
14 using WebKit::WebRect; | 14 using WebKit::WebRect; |
15 | 15 |
16 namespace webkit_glue { | 16 namespace webkit_glue { |
17 | 17 |
18 static RECT WebRectToRECT(const WebRect& rect) { | 18 static RECT WebRectToRECT(const WebRect& rect) { |
19 RECT result; | 19 RECT result; |
20 result.left = rect.x; | 20 result.left = rect.x; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 HDC hdc = canvas->beginPlatformPaint(); | 133 HDC hdc = canvas->beginPlatformPaint(); |
134 RECT native_bar_rect = WebRectToRECT(barRect); | 134 RECT native_bar_rect = WebRectToRECT(barRect); |
135 RECT native_value_rect = WebRectToRECT(valueRect); | 135 RECT native_value_rect = WebRectToRECT(valueRect); |
136 gfx::NativeTheme::instance()->PaintProgressBar( | 136 gfx::NativeTheme::instance()->PaintProgressBar( |
137 hdc, &native_bar_rect, | 137 hdc, &native_bar_rect, |
138 &native_value_rect, determinate, animatedSeconds, canvas); | 138 &native_value_rect, determinate, animatedSeconds, canvas); |
139 canvas->endPlatformPaint(); | 139 canvas->endPlatformPaint(); |
140 } | 140 } |
141 | 141 |
142 } // namespace webkit_glue | 142 } // namespace webkit_glue |
OLD | NEW |