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

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

Issue 2588733002: Upstream Chrome on iOS source code [9/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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698