OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 @class ToolsMenuViewCell; |
| 11 |
| 12 @interface ToolsMenuViewItem : NSObject |
| 13 @property(nonatomic, copy) NSString* accessibilityIdentifier; |
| 14 @property(nonatomic, copy) NSString* title; |
| 15 @property(nonatomic, assign) NSInteger tag; |
| 16 @property(nonatomic, assign) BOOL active; |
| 17 @property(nonatomic, assign) ToolsMenuViewCell* tableViewCell; |
| 18 |
| 19 + (NSString*)cellID; |
| 20 + (Class)cellClass; |
| 21 |
| 22 + (instancetype)menuItemWithTitle:(NSString*)title |
| 23 accessibilityIdentifier:(NSString*)accessibilityIdentifier |
| 24 command:(int)commandID; |
| 25 @end |
| 26 |
| 27 @interface ToolsMenuViewCell : UICollectionViewCell |
| 28 @property(nonatomic, retain) UILabel* title; |
| 29 @property(nonatomic, readonly) CGFloat horizontalMargin; |
| 30 |
| 31 - (void)configureForMenuItem:(ToolsMenuViewItem*)item; |
| 32 - (void)initializeTitleView; |
| 33 - (void)initializeViews; |
| 34 @end |
| 35 |
| 36 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_ITEM_H_ |
OLD | NEW |