| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import "ios/chrome/browser/favicon/favicon_attributes.h" | 5 #import "ios/chrome/browser/ui/favicon/favicon_attributes.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 #if !defined(__has_feature) || !__has_feature(objc_arc) | 9 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 10 #error "This file requires ARC support." | 10 #error "This file requires ARC support." |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 @implementation FaviconAttributes | 13 @implementation FaviconAttributes |
| 14 @synthesize faviconImage = _faviconImage; | 14 @synthesize faviconImage = _faviconImage; |
| 15 @synthesize monogramString = _monogramString; | 15 @synthesize monogramString = _monogramString; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 + (instancetype)attributesWithMonogram:(NSString*)monogram | 55 + (instancetype)attributesWithMonogram:(NSString*)monogram |
| 56 textColor:(UIColor*)textColor | 56 textColor:(UIColor*)textColor |
| 57 backgroundColor:(UIColor*)backgroundColor { | 57 backgroundColor:(UIColor*)backgroundColor { |
| 58 return [[self alloc] initWithMonogram:monogram | 58 return [[self alloc] initWithMonogram:monogram |
| 59 textColor:textColor | 59 textColor:textColor |
| 60 backgroundColor:backgroundColor]; | 60 backgroundColor:backgroundColor]; |
| 61 } | 61 } |
| 62 | 62 |
| 63 @end | 63 @end |
| OLD | NEW |