| Index: ios/chrome/today_extension/interactive_label.h
|
| diff --git a/ios/chrome/today_extension/interactive_label.h b/ios/chrome/today_extension/interactive_label.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0302c49b997f4dede02fc6af7961ef4457d6f6a2
|
| --- /dev/null
|
| +++ b/ios/chrome/today_extension/interactive_label.h
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_TODAY_EXTENSION_INTERACTIVE_LABEL_H_
|
| +#define IOS_CHROME_TODAY_EXTENSION_INTERACTIVE_LABEL_H_
|
| +
|
| +#import <UIKit/UIKit.h>
|
| +
|
| +#import <base/ios/block_types.h>
|
| +
|
| +// Label view that can contain a link (delimited by BEGIN_LINK and END_LINK in
|
| +// |labelString|) and a button (if |buttonString| and |buttonBlock| are both non
|
| +// nil).
|
| +@interface InteractiveLabel : UIView
|
| +
|
| +- (instancetype)initWithFrame:(CGRect)frame
|
| + labelString:(NSString*)labelString
|
| + fontSize:(CGFloat)fontSize
|
| + labelAlignment:(NSTextAlignment)labelAlignment
|
| + insets:(UIEdgeInsets)insets
|
| + buttonString:(NSString*)buttonString
|
| + linkBlock:(ProceduralBlock)linkBlock
|
| + buttonBlock:(ProceduralBlock)buttonBlock;
|
| +
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_TODAY_EXTENSION_INTERACTIVE_LABEL_H_
|
|
|