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

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

Issue 2707963002: [ObjC ARC] Converts ios/chrome/browser/ui/omnibox:omnibox_internal to ARC. (Closed)
Patch Set: weaks Created 3 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TRUNCATING_ATTRIBUTED_LABEL_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_TRUNCATING_ATTRIBUTED_LABEL_H_
6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_TRUNCATING_ATTRIBUTED_LABEL_H_ 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_TRUNCATING_ATTRIBUTED_LABEL_H_
7 7
8 #import <CoreText/CoreText.h> 8 #import <CoreText/CoreText.h>
9 #import <QuartzCore/QuartzCore.h> 9 #import <QuartzCore/QuartzCore.h>
10 #import <UIKit/UIKit.h> 10 #import <UIKit/UIKit.h>
(...skipping 14 matching lines...) Expand all
25 // highlighted, minimumFontSize, and numberOfLines. 25 // highlighted, minimumFontSize, and numberOfLines.
26 @interface OmniboxPopupTruncatingLabel : UIView 26 @interface OmniboxPopupTruncatingLabel : UIView
27 27
28 // Which side(s) to truncate. 28 // Which side(s) to truncate.
29 @property(nonatomic, assign) OmniboxPopupTruncatingMode truncateMode; 29 @property(nonatomic, assign) OmniboxPopupTruncatingMode truncateMode;
30 30
31 // Text alignment. 31 // Text alignment.
32 @property(nonatomic, assign) NSTextAlignment textAlignment; 32 @property(nonatomic, assign) NSTextAlignment textAlignment;
33 33
34 // For display of an attributed string. 34 // For display of an attributed string.
35 @property(nonatomic, retain) NSMutableAttributedString* attributedText; 35 @property(nonatomic, strong) NSMutableAttributedString* attributedText;
36 36
37 // Set the label highlight state. 37 // Set the label highlight state.
38 @property(nonatomic, assign) BOOL highlighted; 38 @property(nonatomic, assign) BOOL highlighted;
39 39
40 // Set the label highlight color. 40 // Set the label highlight color.
41 @property(nonatomic, retain) NSMutableAttributedString* highlightedText; 41 @property(nonatomic, strong) NSMutableAttributedString* highlightedText;
42 42
43 @end 43 @end
44 44
45 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_TRUNCATING_ATTRIBUTED_LABEL_H_ 45 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_TRUNCATING_ATTRIBUTED_LABEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698