| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #import <UIKit/UIKit.h> | 9 #import <UIKit/UIKit.h> |
| 10 | 10 |
| 11 // Represents an item on the new tab page bar, similar to a UITabBarItem. | 11 // Represents an item on the new tab page bar, similar to a UITabBarItem. |
| 12 @interface NewTabPageBarItem : NSObject | 12 @interface NewTabPageBarItem : NSObject |
| 13 | 13 |
| 14 // Convenience method for creating a tab bar choice. | 14 // Convenience method for creating a tab bar choice. |
| 15 + (NewTabPageBarItem*)newTabPageBarItemWithTitle:(NSString*)title | 15 + (NewTabPageBarItem*)newTabPageBarItemWithTitle:(NSString*)title |
| 16 identifier:(NSUInteger)identifier | 16 identifier:(NSUInteger)identifier |
| 17 image:(UIImage*)imageName | 17 image:(UIImage*)imageName |
| 18 NS_RETURNS_NOT_RETAINED; | 18 NS_RETURNS_NOT_RETAINED; |
| 19 | 19 |
| 20 @property(nonatomic, copy) NSString* title; | 20 @property(nonatomic, copy) NSString* title; |
| 21 @property(nonatomic, assign) NSUInteger identifier; | 21 @property(nonatomic, assign) NSUInteger identifier; |
| 22 @property(nonatomic, retain) UIImage* image; | 22 @property(nonatomic, strong) UIImage* image; |
| 23 @property(nonatomic, assign) UIView* view; | 23 @property(nonatomic, weak) UIView* view; |
| 24 @end | 24 @end |
| 25 | 25 |
| 26 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ | 26 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ |
| OLD | NEW |