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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmark_signin_promo_cell.h

Issue 2844253003: Adding close button in SigninPromoView (Closed)
Patch Set: Changing dismiss to close, and moving the button to the cell Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
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);
13
12 // 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
13 // login without typing their password. 15 // login without typing their password.
14 @interface BookmarkSigninPromoCell : UICollectionViewCell 16 @interface BookmarkSigninPromoCell : UICollectionViewCell
15 17
16 // Identifier for -[UICollectionView registerClass:forCellWithReuseIdentifier:]. 18 // Identifier for -[UICollectionView registerClass:forCellWithReuseIdentifier:].
17 + (NSString*)reuseIdentifier; 19 + (NSString*)reuseIdentifier;
18 20
19 @property(nonatomic, readonly) SigninPromoView* signinPromoView; 21 @property(nonatomic, readonly) SigninPromoView* signinPromoView;
22 @property(nonatomic, copy) CloseButtonCallback closeButtonAction;
20 23
21 @end 24 @end
22 25
23 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_ 26 #endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_SIGNIN_PROMO_CELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698