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

Side by Side Diff: ios/chrome/browser/ui/tools_menu/tools_menu_view_item.h

Issue 2941043002: [ObjC ARC] Converts ios/chrome/browser/ui/tools_menu:tools_menu to ARC. (Closed)
Patch Set: manual review. Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TOOLS_MENU_TOOLS_MENU_VIEW_ITEM_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_ITEM_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_ITEM_H_ 6 #define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_ITEM_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @class ToolsMenuViewCell; 10 @class ToolsMenuViewCell;
11 11
12 @interface ToolsMenuViewItem : NSObject 12 @interface ToolsMenuViewItem : NSObject
13 @property(nonatomic, copy) NSString* accessibilityIdentifier; 13 @property(nonatomic, copy) NSString* accessibilityIdentifier;
14 @property(nonatomic, copy) NSString* title; 14 @property(nonatomic, copy) NSString* title;
15 @property(nonatomic, assign) NSInteger tag; 15 @property(nonatomic, assign) NSInteger tag;
16 @property(nonatomic, assign) BOOL active; 16 @property(nonatomic, assign) BOOL active;
17 @property(nonatomic, assign) ToolsMenuViewCell* tableViewCell; 17 @property(nonatomic, weak) ToolsMenuViewCell* tableViewCell;
18 18
19 + (NSString*)cellID; 19 + (NSString*)cellID;
20 + (Class)cellClass; 20 + (Class)cellClass;
21 21
22 + (instancetype)menuItemWithTitle:(NSString*)title 22 + (instancetype)menuItemWithTitle:(NSString*)title
23 accessibilityIdentifier:(NSString*)accessibilityIdentifier 23 accessibilityIdentifier:(NSString*)accessibilityIdentifier
24 command:(int)commandID; 24 command:(int)commandID;
25 @end 25 @end
26 26
27 @interface ToolsMenuViewCell : UICollectionViewCell 27 @interface ToolsMenuViewCell : UICollectionViewCell
28 @property(nonatomic, retain) UILabel* title; 28 @property(nonatomic, strong) UILabel* title;
29 @property(nonatomic, readonly) CGFloat horizontalMargin; 29 @property(nonatomic, readonly) CGFloat horizontalMargin;
30 30
31 - (void)configureForMenuItem:(ToolsMenuViewItem*)item; 31 - (void)configureForMenuItem:(ToolsMenuViewItem*)item;
32 - (void)initializeTitleView; 32 - (void)initializeTitleView;
33 - (void)initializeViews; 33 - (void)initializeViews;
34 @end 34 @end
35 35
36 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_ITEM_H_ 36 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698