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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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