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*>* mostVisiteds; | |
stkhapugin
2017/04/07 12:17:58
mostVisitedItems or mostVisitedSuggestions
lpromero
2017/04/07 12:46:56
Or |suggestions|?
gambard
2017/04/10 11:49:16
Done.
| |
22 | |
23 @end | |
24 | |
25 // Associated cell to display the Most Visited suggestions. | |
26 @interface ContentSuggestionsMostVisitedCell : MDCCollectionViewCell | |
stkhapugin
2017/04/07 12:17:58
nit: If you plan to add more logic into this class
gambard
2017/04/10 11:49:16
The only logic I am planing to add to this cell is
| |
27 | |
28 // Sets the Most Visited suggestions of this cell. | |
29 - (void)setMostVisiteds: | |
lpromero
2017/04/07 12:46:56
Idem.
gambard
2017/04/10 11:49:16
Done.
| |
30 (nonnull NSArray<ContentSuggestionsMostVisited*>*)mostVisiteds; | |
31 | |
32 @end | |
33 | |
34 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_M OST_VISITED_ITEM_H_ | |
OLD | NEW |