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_mac.h" | 5 #include "webkit/glue/webthemeengine_impl_mac.h" |
6 | 6 |
7 #include <Carbon/Carbon.h> | 7 #include <Carbon/Carbon.h> |
8 | 8 |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
11 | 11 |
12 #if WEBKIT_USING_SKIA | 12 #if WEBKIT_USING_SKIA |
13 #include "skia/ext/skia_utils_mac.h" | 13 #include "skia/ext/skia_utils_mac.h" |
14 #endif | 14 #endif |
15 | 15 |
16 using WebKit::WebCanvas; | 16 using WebKit::WebCanvas; |
17 using WebKit::WebRect; | 17 using WebKit::WebRect; |
18 using WebKit::WebThemeEngine; | 18 using WebKit::WebThemeEngine; |
19 | 19 |
20 namespace webkit_glue { | 20 namespace webkit_glue { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #if WEBKIT_USING_SKIA | 59 #if WEBKIT_USING_SKIA |
60 gfx::SkiaBitLocker bitLocker(canvas); | 60 gfx::SkiaBitLocker bitLocker(canvas); |
61 CGContextRef cgContext = bitLocker.cgContext(); | 61 CGContextRef cgContext = bitLocker.cgContext(); |
62 #else | 62 #else |
63 CGContextRef cgContext = canvas; | 63 CGContextRef cgContext = canvas; |
64 #endif | 64 #endif |
65 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal); | 65 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal); |
66 } | 66 } |
67 | 67 |
68 } // namespace webkit_glue | 68 } // namespace webkit_glue |
OLD | NEW |