Index: ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h |
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h b/ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dd349144e87865094c2a4fd03a343a3e0582ccc9 |
--- /dev/null |
+++ b/ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h |
@@ -0,0 +1,26 @@ |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ |
+#define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ |
+ |
+#import <Foundation/Foundation.h> |
+#import <UIKit/UIKit.h> |
+ |
+// Represents an item on the new tab page bar, similar to a UITabBarItem. |
+@interface NewTabPageBarItem : NSObject |
+ |
+// Convenience method for creating a tab bar choice. |
++ (NewTabPageBarItem*)newTabPageBarItemWithTitle:(NSString*)title |
+ identifier:(NSUInteger)identifier |
+ image:(UIImage*)imageName |
+ NS_RETURNS_NOT_RETAINED; |
+ |
+@property(nonatomic, copy) NSString* title; |
+@property(nonatomic, assign) NSUInteger identifier; |
+@property(nonatomic, retain) UIImage* image; |
+@property(nonatomic, assign) UIView* view; |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_ITEM_H_ |