OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST
_VISITED_ITEM_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST
_VISITED_ITEM_H_ |
| 7 |
| 8 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
| 9 #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion
_identifier.h" |
| 10 #import "ios/third_party/material_components_ios/src/components/CollectionCells/
src/MaterialCollectionCells.h" |
| 11 |
| 12 @class ContentSuggestionsMostVisited; |
| 13 @class FaviconAttributes; |
| 14 |
| 15 // Item containing the Most Visited suggestions. |
| 16 @interface ContentSuggestionsMostVisitedItem |
| 17 : CollectionViewItem<ContentSuggestionIdentification> |
| 18 |
| 19 // Most Visited suggestions for this item. |
| 20 @property(nonatomic, copy, nonnull) |
| 21 NSArray<ContentSuggestionsMostVisited*>* suggestions; |
| 22 |
| 23 @end |
| 24 |
| 25 // Associated cell to display the Most Visited suggestions. |
| 26 // This cell displays the most visited suggestions on two rows, vertically |
| 27 // stacked. Each row is a horizontal stack of ContentSuggestionsTiles. The |
| 28 // number of tiles per row depends of the available width. |
| 29 @interface ContentSuggestionsMostVisitedCell : MDCCollectionViewCell |
| 30 |
| 31 // Sets the Most Visited suggestions of this cell. |
| 32 - (void)setSuggestions: |
| 33 (nonnull NSArray<ContentSuggestionsMostVisited*>*)suggestions; |
| 34 |
| 35 // Returns the maximum number of tiles per line, limited to 4. |
| 36 - (NSUInteger)numberOfTilesPerLine; |
| 37 |
| 38 @end |
| 39 |
| 40 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_M
OST_VISITED_ITEM_H_ |
OLD | NEW |