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

Unified Diff: ios/chrome/today_extension/notification_center_url_button.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
Index: ios/chrome/today_extension/notification_center_url_button.h
diff --git a/ios/chrome/today_extension/notification_center_url_button.h b/ios/chrome/today_extension/notification_center_url_button.h
new file mode 100644
index 0000000000000000000000000000000000000000..0147fb94e8283571c02d186f0e609b034a65739d
--- /dev/null
+++ b/ios/chrome/today_extension/notification_center_url_button.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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_NOTIFICATION_CENTER_URL_BUTTON_H_
+#define IOS_CHROME_TODAY_EXTENSION_NOTIFICATION_CENTER_URL_BUTTON_H_
+
+#import <UIKit/UIKit.h>
+
+#import "ios/chrome/today_extension/notification_center_button.h"
+
+typedef void (^URLActionBlock)(NSString*);
+
+@interface NotificationCenterURLButton : NotificationCenterButton
+
+// Create a button with contextual URL layout.
+- (instancetype)initWithTitle:(NSString*)title
+ url:(NSString*)url
+ icon:(NSString*)icon
+ leftInset:(CGFloat)leftInset
+ block:(URLActionBlock)block;
+
+// Show (or hide) a bottom separator below the button.
+- (void)setSeparatorVisible:(BOOL)visible;
+
+// Sets the title and the URL displayed in the button.
+- (void)setTitle:(NSString*)title url:(NSString*)url;
+
+@end
+
+#endif // IOS_CHROME_TODAY_EXTENSION_NOTIFICATION_CENTER_URL_BUTTON_H_
« no previous file with comments | « ios/chrome/today_extension/notification_center_button.mm ('k') | ios/chrome/today_extension/notification_center_url_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698