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

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_view_cont roller.h" 5 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_view_cont roller.h"
6 6
7 #include "base/mac/foundation_util.h" 7 #include "base/mac/foundation_util.h"
8 #import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrom e.h" 8 #import "ios/chrome/browser/ui/collection_view/cells/MDCCollectionViewCell+Chrom e.h"
9 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" 9 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
10 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" 10 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h"
11 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_art icle_item.h"
12 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_but ton_item_actions.h"
13 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_sta ck_item.h"
14 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_sta ck_item_actions.h"
15 #import "ios/chrome/browser/ui/content_suggestions/cells/expandable_item.h"
11 #import "ios/chrome/browser/ui/content_suggestions/content_suggestion.h" 16 #import "ios/chrome/browser/ui/content_suggestions/content_suggestion.h"
12 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_article_i tem.h"
13 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_collectio n_updater.h" 17 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_collectio n_updater.h"
14 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_commands. h" 18 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_commands. h"
15 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_stack_ite m.h"
16 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_stack_ite m_actions.h"
17 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item _actions.h"
18 #import "ios/chrome/browser/ui/content_suggestions/expandable_item.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 #if !defined(__has_feature) || !__has_feature(objc_arc) 21 #if !defined(__has_feature) || !__has_feature(objc_arc)
22 #error "This file requires ARC support." 22 #error "This file requires ARC support."
23 #endif 23 #endif
24 24
25 namespace { 25 namespace {
26 const NSTimeInterval kAnimationDuration = 0.35; 26 const NSTimeInterval kAnimationDuration = 0.35;
27 } // namespace 27 } // namespace
28 28
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 ContentSuggestionsArticleItem* articleItem = 261 ContentSuggestionsArticleItem* articleItem =
262 base::mac::ObjCCastStrict<ContentSuggestionsArticleItem>(touchedItem); 262 base::mac::ObjCCastStrict<ContentSuggestionsArticleItem>(touchedItem);
263 263
264 [self.suggestionCommandHandler 264 [self.suggestionCommandHandler
265 displayContextMenuForArticle:articleItem 265 displayContextMenuForArticle:articleItem
266 atPoint:touchLocation 266 atPoint:touchLocation
267 atIndexPath:touchedItemIndexPath]; 267 atIndexPath:touchedItemIndexPath];
268 } 268 }
269 269
270 @end 270 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698