| 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, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 - (id)initWithTheme:(blink::LayoutTheme*)theme { | 58 - (id)initWithTheme:(blink::LayoutTheme*)theme { |
| 59 if (!(self = [super init])) | 59 if (!(self = [super init])) |
| 60 return nil; | 60 return nil; |
| 61 | 61 |
| 62 _theme = theme; | 62 _theme = theme; |
| 63 return self; | 63 return self; |
| 64 } | 64 } |
| 65 | 65 |
| 66 - (void)systemColorsDidChange:(NSNotification*)unusedNotification { | 66 - (void)systemColorsDidChange:(NSNotification*)unusedNotification { |
| 67 ASSERT_UNUSED(unusedNotification, | 67 DCHECK([[unusedNotification name] |
| 68 [[unusedNotification name] | 68 isEqualToString:NSSystemColorsDidChangeNotification]); |
| 69 isEqualToString:NSSystemColorsDidChangeNotification]); | |
| 70 _theme->platformColorsDidChange(); | 69 _theme->platformColorsDidChange(); |
| 71 } | 70 } |
| 72 | 71 |
| 73 @end | 72 @end |
| 74 | 73 |
| 75 @interface NSTextFieldCell (WKDetails) | 74 @interface NSTextFieldCell (WKDetails) |
| 76 - (CFDictionaryRef)_coreUIDrawOptionsWithFrame:(NSRect)cellFrame | 75 - (CFDictionaryRef)_coreUIDrawOptionsWithFrame:(NSRect)cellFrame |
| 77 inView:(NSView*)controlView | 76 inView:(NSView*)controlView |
| 78 includeFocus:(BOOL)includeFocus; | 77 includeFocus:(BOOL)includeFocus; |
| 79 @end | 78 @end |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 } | 1104 } |
| 1106 | 1105 |
| 1107 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const { | 1106 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const { |
| 1108 ControlPart part = style.appearance(); | 1107 ControlPart part = style.appearance(); |
| 1109 if (part == CheckboxPart || part == RadioPart) | 1108 if (part == CheckboxPart || part == RadioPart) |
| 1110 return style.effectiveZoom() != 1; | 1109 return style.effectiveZoom() != 1; |
| 1111 return false; | 1110 return false; |
| 1112 } | 1111 } |
| 1113 | 1112 |
| 1114 } // namespace blink | 1113 } // namespace blink |
| OLD | NEW |