Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h

Issue 2590473002: Upstream Chrome on iOS source code [5/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « ios/chrome/browser/ui/ntp/new_tab_page_bar_button.mm ('k') | ios/chrome/browser/ui/ntp/new_tab_page_bar_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698