OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vsstyle.h> // To convert to gfx::NativeTheme::State | 7 #include <vsstyle.h> // To convert to gfx::NativeTheme::State |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
11 #include "skia/ext/skia_utils_win.h" | 11 #include "skia/ext/skia_utils_win.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
13 #include "ui/gfx/native_theme.h" | 13 #include "ui/gfx/native_theme.h" |
14 | 14 |
15 using WebKit::WebCanvas; | 15 using WebKit::WebCanvas; |
16 using WebKit::WebColor; | 16 using WebKit::WebColor; |
17 using WebKit::WebRect; | 17 using WebKit::WebRect; |
18 | 18 |
19 namespace webkit_glue { | 19 namespace webkit_glue { |
20 | 20 |
21 static RECT WebRectToRECT(const WebRect& rect) { | 21 static RECT WebRectToRECT(const WebRect& rect) { |
22 RECT result; | 22 RECT result; |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 extra.progress_bar.value_rect_x = valueRect.x; | 973 extra.progress_bar.value_rect_x = valueRect.x; |
974 extra.progress_bar.value_rect_y = valueRect.y; | 974 extra.progress_bar.value_rect_y = valueRect.y; |
975 extra.progress_bar.value_rect_width = valueRect.width; | 975 extra.progress_bar.value_rect_width = valueRect.width; |
976 extra.progress_bar.value_rect_height = valueRect.height; | 976 extra.progress_bar.value_rect_height = valueRect.height; |
977 gfx::NativeTheme::instance()->Paint(canvas, gfx::NativeTheme::kProgressBar, | 977 gfx::NativeTheme::instance()->Paint(canvas, gfx::NativeTheme::kProgressBar, |
978 gfx::NativeTheme::kNormal, gfx_rect, | 978 gfx::NativeTheme::kNormal, gfx_rect, |
979 extra); | 979 extra); |
980 } | 980 } |
981 | 981 |
982 } // namespace webkit_glue | 982 } // namespace webkit_glue |
OLD | NEW |