Index: ios/chrome/browser/ui/settings/cells/signin_promo_item.h |
diff --git a/ios/chrome/browser/ui/settings/cells/signin_promo_item.h b/ios/chrome/browser/ui/settings/cells/signin_promo_item.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fafe6f966f394acc39e1ce4a1127eca4b9fd4eee |
--- /dev/null |
+++ b/ios/chrome/browser/ui/settings/cells/signin_promo_item.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
lpromero
2017/03/09 10:55:02
2017
Prefer using ./tools/boilerplate.py ios/chro
jlebel
2017/03/09 20:34:07
Acknowledged.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_BROWSER_UI_SETTINGS_CELLS_SIGNIN_PROMO_ITEM_H_ |
+#define IOS_CHROME_BROWSER_UI_SETTINGS_CELLS_SIGNIN_PROMO_ITEM_H_ |
+ |
+#import <UIKit/UIKit.h> |
+ |
+#import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
+#import "ios/third_party/material_components_ios/src/components/Buttons/src/MaterialButtons.h" |
lpromero
2017/03/09 10:55:02
Not needed in the header.
jlebel
2017/03/09 20:34:07
Done.
|
+#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h" |
+ |
+// SigninPromoItem is an Item that displays an Image, a title text label and a |
lpromero
2017/03/09 10:55:02
Remove "is an Item that". Actually, the item never
|
+// detail text label. |
+// This is intended to be used as an sign in Item which contains a default |
lpromero
2017/03/09 10:55:02
a sign-in item
|
+// avatar and information |
lpromero
2017/03/09 10:55:02
Unwrap.
jlebel
2017/03/09 20:34:07
Done.
|
+// letting the user know that they are not signed in, and that tapping on the |
+// Item will allow them |
lpromero
2017/03/09 10:55:02
Unwrap.
lpromero
2017/03/09 10:55:02
They tap on the button, not the cell, no?
jlebel
2017/03/09 20:34:07
Done.
|
+// to authenticate and sign in. |
+ |
+@interface SigninPromoItem : CollectionViewItem |
+ |
+// Item image. |
+@property(nonatomic, copy) UIImage* image; |
+@property(nonatomic, copy) NSString* profileName; |
+@property(nonatomic, copy) NSString* profileEmail; |
+ |
+@end |
+ |
+// Cell representation for SigninPromoItem. |
+@interface SigninPromoCell : MDCCollectionViewCell |
+ |
+// Configures the cell with the profile data. |
+- (void)configureWithProfileName:(NSString*)profileName |
+ profileEmail:(NSString*)profileEmail |
+ profileImage:(UIImage*)profileImage; |
+ |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_UI_SETTINGS_CELLS_SIGNIN_PROMO_ITEM_H_ |