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/layout/LayoutThemeMac.h" | 21 #import "core/layout/LayoutThemeMac.h" |
22 | 22 |
| 23 #import <AvailabilityMacros.h> |
| 24 #import <Carbon/Carbon.h> |
| 25 #import <Cocoa/Cocoa.h> |
| 26 #import <math.h> |
23 #import "core/CSSValueKeywords.h" | 27 #import "core/CSSValueKeywords.h" |
24 #import "core/HTMLNames.h" | 28 #import "core/HTMLNames.h" |
25 #import "core/fileapi/FileList.h" | 29 #import "core/fileapi/FileList.h" |
26 #import "core/layout/LayoutProgress.h" | 30 #import "core/layout/LayoutProgress.h" |
27 #import "core/layout/LayoutView.h" | 31 #import "core/layout/LayoutView.h" |
28 #import "core/paint/MediaControlsPainter.h" | 32 #import "core/paint/MediaControlsPainter.h" |
29 #import "core/style/ShadowList.h" | 33 #import "core/style/ShadowList.h" |
30 #import "platform/LayoutTestSupport.h" | 34 #import "platform/LayoutTestSupport.h" |
31 #import "platform/PlatformResourceLoader.h" | 35 #import "platform/PlatformResourceLoader.h" |
32 #import "platform/Theme.h" | 36 #import "platform/Theme.h" |
33 #import "platform/graphics/BitmapImage.h" | 37 #import "platform/graphics/BitmapImage.h" |
34 #import "platform/mac/ColorMac.h" | 38 #import "platform/mac/ColorMac.h" |
35 #import "platform/mac/ThemeMac.h" | 39 #import "platform/mac/ThemeMac.h" |
36 #import "platform/mac/VersionUtilMac.h" | 40 #import "platform/mac/VersionUtilMac.h" |
37 #import "platform/mac/WebCoreNSCellExtras.h" | 41 #import "platform/mac/WebCoreNSCellExtras.h" |
38 #import "platform/text/PlatformLocale.h" | 42 #import "platform/text/PlatformLocale.h" |
39 #import "platform/text/StringTruncator.h" | 43 #import "platform/text/StringTruncator.h" |
40 #import <AvailabilityMacros.h> | |
41 #import <Carbon/Carbon.h> | |
42 #import <Cocoa/Cocoa.h> | |
43 #import <math.h> | |
44 | 44 |
45 // The methods in this file are specific to the Mac OS X platform. | 45 // The methods in this file are specific to the Mac OS X platform. |
46 | 46 |
47 @interface BlinkLayoutThemeNotificationObserver : NSObject { | 47 @interface BlinkLayoutThemeNotificationObserver : NSObject { |
48 blink::LayoutTheme* _theme; | 48 blink::LayoutTheme* _theme; |
49 } | 49 } |
50 | 50 |
51 - (id)initWithTheme:(blink::LayoutTheme*)theme; | 51 - (id)initWithTheme:(blink::LayoutTheme*)theme; |
52 - (void)systemColorsDidChange:(NSNotification*)notification; | 52 - (void)systemColorsDidChange:(NSNotification*)notification; |
53 | 53 |
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 } | 1103 } |
1104 | 1104 |
1105 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const { | 1105 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const { |
1106 ControlPart part = style.appearance(); | 1106 ControlPart part = style.appearance(); |
1107 if (part == CheckboxPart || part == RadioPart) | 1107 if (part == CheckboxPart || part == RadioPart) |
1108 return style.effectiveZoom() != 1; | 1108 return style.effectiveZoom() != 1; |
1109 return false; | 1109 return false; |
1110 } | 1110 } |
1111 | 1111 |
1112 } // namespace blink | 1112 } // namespace blink |
OLD | NEW |