| 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 #ifndef IOS_CHROME_BROWSER_UI_FAVICON_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_FAVICON_FAVICON_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_FAVICON_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_FAVICON_FAVICON_VIEW_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #import "ios/chrome/browser/favicon/favicon_attributes.h" | 10 #import "ios/chrome/browser/ui/favicon/favicon_attributes.h" |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 // Minimum width and height of favicon. | 13 // Minimum width and height of favicon. |
| 14 const CGFloat kFaviconMinSize = 16.0f; | 14 const CGFloat kFaviconMinSize = 16.0f; |
| 15 // Default width and height of favicon. | 15 // Default width and height of favicon. |
| 16 const CGFloat kFaviconPreferredSize = 24.0f; | 16 const CGFloat kFaviconPreferredSize = 24.0f; |
| 17 } // namespace | 17 } // namespace |
| 18 | 18 |
| 19 @interface FaviconViewNew : UIView | 19 @interface FaviconViewNew : UIView |
| 20 | 20 |
| 21 // Configures this view with given attributes. | 21 // Configures this view with given attributes. |
| 22 - (void)configureWithAttributes:(FaviconAttributes*)attributes; | 22 - (void)configureWithAttributes:(FaviconAttributes*)attributes; |
| 23 // Sets monogram font. | 23 // Sets monogram font. |
| 24 - (void)setFont:(UIFont*)font; | 24 - (void)setFont:(UIFont*)font; |
| 25 | 25 |
| 26 @end | 26 @end |
| 27 | 27 |
| 28 #endif // IOS_CHROME_BROWSER_UI_FAVICON_VIEW_H_ | 28 #endif // IOS_CHROME_BROWSER_UI_FAVICON_FAVICON_VIEW_H_ |
| OLD | NEW |