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

Side by Side Diff: ios/chrome/today_extension/interactive_label.h

Issue 2586713002: Upstream code and resources for Chrome on iOS extensions. (Closed)
Patch Set: Created 4 years 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
(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_
OLDNEW
« no previous file with comments | « ios/chrome/today_extension/footer_label.mm ('k') | ios/chrome/today_extension/interactive_label.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698