OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #import "core/paint/ThemePainterMac.h" | 21 #import "core/paint/ThemePainterMac.h" |
22 | 22 |
| 23 #import <AvailabilityMacros.h> |
| 24 #import <Carbon/Carbon.h> |
| 25 #import <Cocoa/Cocoa.h> |
| 26 #import <math.h> |
23 #import "core/frame/FrameView.h" | 27 #import "core/frame/FrameView.h" |
24 #import "core/layout/LayoutProgress.h" | 28 #import "core/layout/LayoutProgress.h" |
25 #import "core/layout/LayoutThemeMac.h" | 29 #import "core/layout/LayoutThemeMac.h" |
26 #import "core/layout/LayoutView.h" | 30 #import "core/layout/LayoutView.h" |
27 #import "core/paint/PaintInfo.h" | 31 #import "core/paint/PaintInfo.h" |
28 #import "platform/geometry/FloatRoundedRect.h" | 32 #import "platform/geometry/FloatRoundedRect.h" |
29 #import "platform/graphics/BitmapImage.h" | 33 #import "platform/graphics/BitmapImage.h" |
30 #import "platform/graphics/GraphicsContextStateSaver.h" | 34 #import "platform/graphics/GraphicsContextStateSaver.h" |
31 #import "platform/graphics/Image.h" | 35 #import "platform/graphics/Image.h" |
32 #import "platform/graphics/ImageBuffer.h" | 36 #import "platform/graphics/ImageBuffer.h" |
33 #import "platform/graphics/paint/PaintCanvas.h" | 37 #import "platform/graphics/paint/PaintCanvas.h" |
34 #import "platform/mac/BlockExceptions.h" | 38 #import "platform/mac/BlockExceptions.h" |
35 #import "platform/mac/ColorMac.h" | 39 #import "platform/mac/ColorMac.h" |
36 #import "platform/mac/LocalCurrentGraphicsContext.h" | 40 #import "platform/mac/LocalCurrentGraphicsContext.h" |
37 #import "platform/mac/ThemeMac.h" | 41 #import "platform/mac/ThemeMac.h" |
38 #import "platform/mac/WebCoreNSCellExtras.h" | 42 #import "platform/mac/WebCoreNSCellExtras.h" |
39 #import <AvailabilityMacros.h> | |
40 #import <Carbon/Carbon.h> | |
41 #import <Cocoa/Cocoa.h> | |
42 #import <math.h> | |
43 | 43 |
44 // The methods in this file are specific to the Mac OS X platform. | 44 // The methods in this file are specific to the Mac OS X platform. |
45 | 45 |
46 // Forward declare Mac SPIs. | 46 // Forward declare Mac SPIs. |
47 extern "C" { | 47 extern "C" { |
48 void _NSDrawCarbonThemeBezel(NSRect frame, BOOL enabled, BOOL flipped); | 48 void _NSDrawCarbonThemeBezel(NSRect frame, BOOL enabled, BOOL flipped); |
49 // Request for public API: rdar://13787640 | 49 // Request for public API: rdar://13787640 |
50 void _NSDrawCarbonThemeListBox(NSRect frame, | 50 void _NSDrawCarbonThemeListBox(NSRect frame, |
51 BOOL enabled, | 51 BOOL enabled, |
52 BOOL flipped, | 52 BOOL flipped, |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 backgroundBounds.origin.y = bounds.origin.y + (heightDiff / 2) + 1; | 803 backgroundBounds.origin.y = bounds.origin.y + (heightDiff / 2) + 1; |
804 } | 804 } |
805 | 805 |
806 LocalCurrentGraphicsContext localContext(paintInfo.context, rect); | 806 LocalCurrentGraphicsContext localContext(paintInfo.context, rect); |
807 HIThemeDrawButton(&backgroundBounds, &drawInfo, localContext.cgContext(), | 807 HIThemeDrawButton(&backgroundBounds, &drawInfo, localContext.cgContext(), |
808 kHIThemeOrientationNormal, 0); | 808 kHIThemeOrientationNormal, 0); |
809 return false; | 809 return false; |
810 } | 810 } |
811 | 811 |
812 } // namespace blink | 812 } // namespace blink |
OLD | NEW |