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_linux.h" | 5 #include "webkit/glue/webthemeengine_impl_linux.h" |
6 | 6 |
7 #include "skia/ext/platform_canvas.h" | 7 #include "skia/ext/platform_canvas.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
10 #include "ui/gfx/native_theme.h" | 10 #include "ui/gfx/native_theme.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); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 part, state, extra_params, &native_theme_extra_params); | 177 part, state, extra_params, &native_theme_extra_params); |
178 gfx::NativeTheme::instance()->Paint( | 178 gfx::NativeTheme::instance()->Paint( |
179 canvas, | 179 canvas, |
180 NativeThemePart(part), | 180 NativeThemePart(part), |
181 NativeThemeState(state), | 181 NativeThemeState(state), |
182 WebRectToRect(rect), | 182 WebRectToRect(rect), |
183 native_theme_extra_params); | 183 native_theme_extra_params); |
184 } | 184 } |
185 | 185 |
186 } // namespace webkit_glue | 186 } // namespace webkit_glue |
OLD | NEW |