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

Side by Side Diff: ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.h

Issue 2707963002: [ObjC ARC] Converts ios/chrome/browser/ui/omnibox:omnibox_internal to ARC. (Closed)
Patch Set: ARC in new code Created 3 years, 9 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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_
6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_ 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @class OmniboxPopupTruncatingLabel; 10 @class OmniboxPopupTruncatingLabel;
11 11
12 // View used to display an omnibox autocomplete match in the omnibox popup. 12 // View used to display an omnibox autocomplete match in the omnibox popup.
13 @interface OmniboxPopupMaterialRow : UITableViewCell 13 @interface OmniboxPopupMaterialRow : UITableViewCell
14 14
15 // A truncate-by-fading version of the textLabel of a UITableViewCell. 15 // A truncate-by-fading version of the textLabel of a UITableViewCell.
16 @property(nonatomic, readonly, retain) 16 @property(nonatomic, readonly, strong)
17 OmniboxPopupTruncatingLabel* textTruncatingLabel; 17 OmniboxPopupTruncatingLabel* textTruncatingLabel;
18 // A truncate-by-fading version of the detailTextLabel of a UITableViewCell. 18 // A truncate-by-fading version of the detailTextLabel of a UITableViewCell.
19 @property(nonatomic, readonly, retain) 19 @property(nonatomic, readonly, strong)
20 OmniboxPopupTruncatingLabel* detailTruncatingLabel; 20 OmniboxPopupTruncatingLabel* detailTruncatingLabel;
21 // A standard UILabel for answers, which truncates with ellipses to support 21 // A standard UILabel for answers, which truncates with ellipses to support
22 // multi-line text. 22 // multi-line text.
23 @property(nonatomic, readonly, retain) UILabel* detailAnswerLabel; 23 @property(nonatomic, readonly, strong) UILabel* detailAnswerLabel;
24 24
25 @property(nonatomic, readonly, retain) UIImageView* imageView; 25 @property(nonatomic, readonly, strong) UIImageView* imageView;
26 @property(nonatomic, readonly, retain) UIImageView* answerImageView; 26 @property(nonatomic, readonly, strong) UIImageView* answerImageView;
27 @property(nonatomic, readonly, retain) UIButton* appendButton; 27 @property(nonatomic, readonly, strong) UIButton* appendButton;
28 @property(nonatomic, assign) CGFloat rowHeight; 28 @property(nonatomic, assign) CGFloat rowHeight;
29 29
30 // Initialize the row with the given incognito state. The colors and styling are 30 // Initialize the row with the given incognito state. The colors and styling are
31 // dependent on whether or not the row is displayed in incognito mode. 31 // dependent on whether or not the row is displayed in incognito mode.
32 - (instancetype)initWithIncognito:(BOOL)incognito; 32 - (instancetype)initWithIncognito:(BOOL)incognito;
33 33
34 // Update the match type icon with the supplied image ID and adjust its position 34 // Update the match type icon with the supplied image ID and adjust its position
35 // based on the current size of the row. 35 // based on the current size of the row.
36 - (void)updateLeadingImage:(int)imageID; 36 - (void)updateLeadingImage:(int)imageID;
37 37
38 @end 38 @end
39 39
40 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_ 40 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_POPUP_MATERIAL_ROW_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/omnibox/location_bar_view_ios.mm ('k') | ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698