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

Unified Diff: ios/chrome/today_extension/physical_web_optin_footer.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/physical_web_optin_footer.h
diff --git a/ios/chrome/today_extension/physical_web_optin_footer.h b/ios/chrome/today_extension/physical_web_optin_footer.h
new file mode 100644
index 0000000000000000000000000000000000000000..e043769a8d65bdde1c609ffb44c881c04e7fe262
--- /dev/null
+++ b/ios/chrome/today_extension/physical_web_optin_footer.h
@@ -0,0 +1,25 @@
+// 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_PHYSICAL_WEB_OPTIN_FOOTER_H_
+#define IOS_CHROME_TODAY_EXTENSION_PHYSICAL_WEB_OPTIN_FOOTER_H_
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+
+#import "ios/chrome/common/physical_web/physical_web_types.h"
+#import "ios/chrome/today_extension/footer_label.h"
+
+// Opt-in dialog shown the first time a physical web beacon is discovered.
+// Contains a learn more link, a button to opt in and a button to opt out.
+@interface PhysicalWebOptInFooter : NSObject<FooterLabel>
+
+- (id)initWithLeftInset:(CGFloat)leftInset
+ learnMoreBlock:(LearnMoreBlock)learnMoreBlock
+ optinAction:(EnableDisableBlock)optinAction
+ dismissAction:(EnableDisableBlock)dismissAction;
+
+@end
+
+#endif // IOS_CHROME_TODAY_EXTENSION_PHYSICAL_WEB_OPTIN_FOOTER_H_
« no previous file with comments | « ios/chrome/today_extension/notification_center_url_button.mm ('k') | ios/chrome/today_extension/physical_web_optin_footer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698