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

Unified Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_cell.mm

Issue 2887433002: Move the ContentSuggestions items to a new target (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_cell.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_cell.mm
similarity index 70%
copy from ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm
copy to ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_cell.mm
index ab0c47fc9aab8c21a1e48df2e2b9bcc218f81401..9e3f93a44662c0869f1c5a8cc05273e335cb887d 100644
--- a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm
+++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_cell.mm
@@ -2,14 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h"
+#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_cell.h"
-#import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion_identifier.h"
-#import "ios/chrome/browser/ui/favicon/favicon_attributes.h"
#import "ios/chrome/browser/ui/favicon/favicon_view.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
-#include "url/gurl.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -25,36 +22,6 @@ const CGFloat kSpaceFaviconTitle = 10;
const CGSize kCellSize = {73, 100};
}
-#pragma mark - ContentSuggestionsMostVisitedItem
-
-@implementation ContentSuggestionsMostVisitedItem
-
-@synthesize suggestionIdentifier = _suggestionIdentifier;
-@synthesize attributes = _attributes;
-@synthesize title = _title;
-@synthesize URL = _URL;
-@synthesize delegate = _delegate;
-@synthesize image = _image;
-
-- (instancetype)initWithType:(NSInteger)type {
- self = [super initWithType:type];
- if (self) {
- self.cellClass = [ContentSuggestionsMostVisitedCell class];
- }
- return self;
-}
-
-- (void)configureCell:(ContentSuggestionsMostVisitedCell*)cell {
- [super configureCell:cell];
- cell.titleLabel.text = self.title;
- cell.accessibilityLabel = self.title;
- [cell.faviconView configureWithAttributes:self.attributes];
-}
-
-@end
-
-#pragma mark - ContentSuggestionsMostVisitedCell
-
@implementation ContentSuggestionsMostVisitedCell : MDCCollectionViewCell
@synthesize faviconView = _faviconView;

Powered by Google App Engine
This is Rietveld 408576698