Chromium Code Reviews| Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_footer_item.h |
| diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_footer_item.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_footer_item.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f9017ca29c9e3fc8668fc080cc5820bac07e9b62 |
| --- /dev/null |
| +++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_footer_item.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2017 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_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_FOOTER_ITEM_H_ |
| +#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_FOOTER_ITEM_H_ |
| + |
| +#import "base/ios/block_types.h" |
| +#import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
| +#import "ios/chrome/browser/ui/content_suggestions/content_suggestion_identifier.h" |
| +#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h" |
| + |
| +// Item for a footer of a Content Suggestions section. |
| +@interface ContentSuggestionsFooterItem |
| + : CollectionViewItem<ContentSuggestionIdentification> |
| + |
| +// Initialize a footer with a button taking all the space, with a |title| and a |
| +// |block| run when tapped. |
| +- (instancetype)initWithType:(NSInteger)type |
| + title:(NSString*)title |
| + block:(ProceduralBlock)block NS_DESIGNATED_INITIALIZER; |
| + |
| +- (instancetype)initWithType:(NSInteger)type NS_UNAVAILABLE; |
| + |
| +@end |
| + |
| +// Corresponding cell for a Content Suggestions' section footer. |
| +@interface ContentSuggestionsFooterCell : MDCCollectionViewCell |
| + |
| +@property(nonatomic, readonly, strong) UIButton* actionButton; |
|
lpromero
2017/03/14 10:16:18
Maybe just button?
gambard
2017/03/14 11:02:23
Done.
|
| + |
| +@end |
| + |
| +#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_FOOTER_ITEM_H_ |