OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_android.h" | 5 #include "webkit/glue/webthemeengine_impl_android.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "skia/ext/platform_canvas.h" | 8 #include "skia/ext/platform_canvas.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 9 #include "third_party/WebKit/public/platform/WebRect.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 10 #include "third_party/WebKit/public/platform/WebSize.h" |
11 #include "ui/native_theme/native_theme.h" | 11 #include "ui/native_theme/native_theme.h" |
12 | 12 |
13 using WebKit::WebCanvas; | 13 using WebKit::WebCanvas; |
14 using WebKit::WebColor; | 14 using WebKit::WebColor; |
15 using WebKit::WebRect; | 15 using WebKit::WebRect; |
16 using WebKit::WebThemeEngine; | 16 using WebKit::WebThemeEngine; |
17 | 17 |
18 namespace webkit_glue { | 18 namespace webkit_glue { |
19 | 19 |
20 static ui::NativeTheme::Part NativeThemePart( | 20 static ui::NativeTheme::Part NativeThemePart( |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 GetNativeThemeExtraParams( | 177 GetNativeThemeExtraParams( |
178 part, state, extra_params, &native_theme_extra_params); | 178 part, state, extra_params, &native_theme_extra_params); |
179 ui::NativeTheme::instance()->Paint( | 179 ui::NativeTheme::instance()->Paint( |
180 canvas, | 180 canvas, |
181 NativeThemePart(part), | 181 NativeThemePart(part), |
182 NativeThemeState(state), | 182 NativeThemeState(state), |
183 gfx::Rect(rect), | 183 gfx::Rect(rect), |
184 native_theme_extra_params); | 184 native_theme_extra_params); |
185 } | 185 } |
186 } // namespace webkit_glue | 186 } // namespace webkit_glue |
OLD | NEW |