1 // Copyright 2019 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_TRANSLATE_CELLS_TRANSLATE_POPUP_MENU_ITEM_H_
6 #define IOS_CHROME_BROWSER_UI_TRANSLATE_CELLS_TRANSLATE_POPUP_MENU_ITEM_H_
7 
8 #import <UIKit/UIKit.h>
9 
10 #import "ios/chrome/browser/ui/popup_menu/public/cells/popup_menu_item.h"
11 #import "ios/chrome/browser/ui/table_view/cells/table_view_item.h"
12 
13 // Item used for the translate infobar's popup menus.
14 @interface TranslatePopupMenuItem : TableViewItem <PopupMenuItem>
15 
16 // Title of the item.
17 @property(nonatomic, copy) NSString* title;
18 
19 // Whether the item is selected.
20 @property(nonatomic, getter=isSelected) BOOL selected;
21 
22 @end
23 
24 // Associated cell for a TranslatePopupMenuItem.
25 @interface TranslatePopupMenuCell : TableViewCell
26 
27 - (void)setTitle:(NSString*)title;
28 
29 // Whether the cell will display a trailing checkmark or not.
30 - (void)setCheckmark:(BOOL)checkmark;
31 
32 // After this is called, the cell is listening for the
33 // UIContentSizeCategoryDidChangeNotification notification and updates its font
34 // size to the new category.
35 - (void)registerForContentSizeUpdates;
36 
37 @end
38 
39 #endif  // IOS_CHROME_BROWSER_UI_TRANSLATE_CELLS_TRANSLATE_POPUP_MENU_ITEM_H_
40