| 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..a5e3b5eb3e48d9d6cccab398735011b4b5f4a6f5
|
| --- /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* button;
|
| +
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_FOOTER_ITEM_H_
|
|
|