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/child/webthemeengine_impl_win.h" | 5 #include "webkit/child/webthemeengine_impl_win.h" |
6 | 6 |
7 #include <vsstyle.h> // To convert to ui::NativeTheme::State | 7 #include <vsstyle.h> // To convert to ui::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/public/platform/WebRect.h" | 12 #include "third_party/WebKit/public/platform/WebRect.h" |
13 #include "ui/gfx/dpi_win.h" | 13 #include "ui/gfx/win/dpi.h" |
14 #include "ui/native_theme/native_theme.h" | 14 #include "ui/native_theme/native_theme.h" |
15 | 15 |
16 using WebKit::WebCanvas; | 16 using WebKit::WebCanvas; |
17 using WebKit::WebColor; | 17 using WebKit::WebColor; |
18 using WebKit::WebRect; | 18 using WebKit::WebRect; |
19 using WebKit::WebSize; | 19 using WebKit::WebSize; |
20 | 20 |
21 namespace webkit_glue { | 21 namespace webkit_glue { |
22 | 22 |
23 static RECT WebRectToRECT(const WebRect& rect) { | 23 static RECT WebRectToRECT(const WebRect& rect) { |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 } | 1005 } |
1006 return WebSize(size.width(), size.height()); | 1006 return WebSize(size.width(), size.height()); |
1007 } | 1007 } |
1008 default: | 1008 default: |
1009 NOTREACHED() << "Unhandled part: " << part; | 1009 NOTREACHED() << "Unhandled part: " << part; |
1010 } | 1010 } |
1011 return WebSize(); | 1011 return WebSize(); |
1012 } | 1012 } |
1013 | 1013 |
1014 } // namespace webkit_glue | 1014 } // namespace webkit_glue |
OLD | NEW |