OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_TODAY_EXTENSION_INTERACTIVE_LABEL_H_ |
| 6 #define IOS_CHROME_TODAY_EXTENSION_INTERACTIVE_LABEL_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import <base/ios/block_types.h> |
| 11 |
| 12 // Label view that can contain a link (delimited by BEGIN_LINK and END_LINK in |
| 13 // |labelString|) and a button (if |buttonString| and |buttonBlock| are both non |
| 14 // nil). |
| 15 @interface InteractiveLabel : UIView |
| 16 |
| 17 - (instancetype)initWithFrame:(CGRect)frame |
| 18 labelString:(NSString*)labelString |
| 19 fontSize:(CGFloat)fontSize |
| 20 labelAlignment:(NSTextAlignment)labelAlignment |
| 21 insets:(UIEdgeInsets)insets |
| 22 buttonString:(NSString*)buttonString |
| 23 linkBlock:(ProceduralBlock)linkBlock |
| 24 buttonBlock:(ProceduralBlock)buttonBlock; |
| 25 |
| 26 @end |
| 27 |
| 28 #endif // IOS_CHROME_TODAY_EXTENSION_INTERACTIVE_LABEL_H_ |
OLD | NEW |