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

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_favicon_item.mm

Issue 2761753002: Cleanup ContentSuggestions cells (Closed)
Patch Set: Fix tests Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_favicon_i tem.h" 5 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_fav icon_item.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_favicon_i nternal_cell.h" 10 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_fav icon_internal_cell.h"
11 #import "ios/chrome/browser/ui/uikit_ui_util.h" 11 #import "ios/chrome/browser/ui/uikit_ui_util.h"
12 12
13 #if !defined(__has_feature) || !__has_feature(objc_arc) 13 #if !defined(__has_feature) || !__has_feature(objc_arc)
14 #error "This file requires ARC support." 14 #error "This file requires ARC support."
15 #endif 15 #endif
16 16
17 namespace { 17 namespace {
18 // Space between two cells in the internal collection view. 18 // Space between two cells in the internal collection view.
19 const CGFloat kInternalCellSpacing = 40; 19 const CGFloat kInternalCellSpacing = 40;
20 // Width of the cells in the internal collection view. 20 // Width of the cells in the internal collection view.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 #pragma mark - UICollectionViewDelegate 135 #pragma mark - UICollectionViewDelegate
136 136
137 - (void)collectionView:(UICollectionView*)collectionView 137 - (void)collectionView:(UICollectionView*)collectionView
138 didSelectItemAtIndexPath:(NSIndexPath*)indexPath { 138 didSelectItemAtIndexPath:(NSIndexPath*)indexPath {
139 [self.delegate openFaviconAtIndexPath:indexPath]; 139 [self.delegate openFaviconAtIndexPath:indexPath];
140 } 140 }
141 141
142 @end 142 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698