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_linux.h" | 5 #include "webkit/glue/webthemeengine_impl_linux.h" |
6 | 6 |
7 #include "gfx/native_theme_linux.h" | |
8 #include "skia/ext/platform_canvas.h" | 7 #include "skia/ext/platform_canvas.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" |
| 10 #include "ui/gfx/native_theme_linux.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 gfx::Rect WebRectToRect(const WebRect& rect) { | 18 static gfx::Rect WebRectToRect(const WebRect& rect) { |
19 return gfx::Rect(rect.x, rect.y, rect.width, rect.height); | 19 return gfx::Rect(rect.x, rect.y, rect.width, rect.height); |
20 } | 20 } |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 GetNativeThemeExtraParams( | 167 GetNativeThemeExtraParams( |
168 part, state, extra_params, &native_theme_extra_params); | 168 part, state, extra_params, &native_theme_extra_params); |
169 gfx::NativeThemeLinux::instance()->Paint( | 169 gfx::NativeThemeLinux::instance()->Paint( |
170 canvas, | 170 canvas, |
171 NativeThemePart(part), | 171 NativeThemePart(part), |
172 NativeThemeState(state), | 172 NativeThemeState(state), |
173 WebRectToRect(rect), | 173 WebRectToRect(rect), |
174 native_theme_extra_params); | 174 native_theme_extra_params); |
175 } | 175 } |
176 } // namespace webkit_glue | 176 } // namespace webkit_glue |
OLD | NEW |