OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 #import <UIKit/UIKit.h> |
| 10 |
| 11 // Represents an item on the new tab page bar, similar to a UITabBarItem. |
| 12 @interface NewTabPageBarItem : NSObject |
| 13 |
| 14 // Convenience method for creating a tab bar choice. |
| 15 + (NewTabPageBarItem*)newTabPageBarItemWithTitle:(NSString*)title |
| 16 identifier:(NSUInteger)identifier |
| 17 image:(UIImage*)imageName |
| 18 NS_RETURNS_NOT_RETAINED; |
| 19 |
| 20 @property(nonatomic, copy) NSString* title; |
| 21 @property(nonatomic, assign) NSUInteger identifier; |
| 22 @property(nonatomic, retain) UIImage* image; |
| 23 @property(nonatomic, assign) UIView* view; |
| 24 @end |
| 25 |
| 26 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ |
OLD | NEW |