| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_ | 6 #define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 @class SigninPromoView; | 10 @class SigninPromoView; |
| 11 | 11 |
| 12 typedef void (^CloseButtonCallback)(void); | 12 typedef void (^CloseButtonCallback)(void); |
| 13 | 13 |
| 14 // Sign-in promo cell based on SigninPromoView. This cell invites the user to | 14 // Sign-in promo cell based on SigninPromoView. This cell invites the user to |
| 15 // login without typing their password. | 15 // login without typing their password. |
| 16 @interface BookmarkSigninPromoCell : UICollectionViewCell | 16 @interface BookmarkSigninPromoCell : UICollectionViewCell |
| 17 | 17 |
| 18 // Identifier for -[UICollectionView registerClass:forCellWithReuseIdentifier:]. | 18 // Identifier for -[UICollectionView registerClass:forCellWithReuseIdentifier:]. |
| 19 + (NSString*)reuseIdentifier; | 19 + (NSString*)reuseIdentifier; |
| 20 | 20 |
| 21 @property(nonatomic, readonly) SigninPromoView* signinPromoView; | 21 @property(nonatomic, readonly) SigninPromoView* signinPromoView; |
| 22 // Called when the user taps on the close button. If not set, the close button |
| 23 // is hidden. |
| 22 @property(nonatomic, copy) CloseButtonCallback closeButtonAction; | 24 @property(nonatomic, copy) CloseButtonCallback closeButtonAction; |
| 23 | 25 |
| 24 @end | 26 @end |
| 25 | 27 |
| 26 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_ | 28 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_ |
| OLD | NEW |