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

Side by Side Diff: ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h

Issue 2955363002: [ObjC ARC] Converts ios/chrome/browser/ui/ntp:ntp_internal to ARC. (Closed)
Patch Set: rebase Created 3 years, 5 months 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« 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