OLD | NEW |
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 | 19 |
20 #if !defined(__has_feature) || !__has_feature(objc_arc) | 20 #if !defined(__has_feature) || !__has_feature(objc_arc) |
21 #error "This file requires ARC support." | 21 #error "This file requires ARC support." |
22 #endif | 22 #endif |
23 | 23 |
24 namespace { | 24 namespace { |
25 const NSTimeInterval kAnimationDuration = 0.35; | 25 const NSTimeInterval kAnimationDuration = 0.35; |
26 } // namespace | 26 } // namespace |
27 | 27 |
28 @interface ContentSuggestionsViewController ()<SuggestionsStackItemActions> | 28 @interface ContentSuggestionsViewController ()<SuggestionsStackItemActions> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 ContentSuggestionsArticleItem* articleItem = | 260 ContentSuggestionsArticleItem* articleItem = |
261 base::mac::ObjCCastStrict<ContentSuggestionsArticleItem>(touchedItem); | 261 base::mac::ObjCCastStrict<ContentSuggestionsArticleItem>(touchedItem); |
262 | 262 |
263 [self.suggestionCommandHandler | 263 [self.suggestionCommandHandler |
264 displayContextMenuForArticle:articleItem | 264 displayContextMenuForArticle:articleItem |
265 atPoint:touchLocation | 265 atPoint:touchLocation |
266 atIndexPath:touchedItemIndexPath]; | 266 atIndexPath:touchedItemIndexPath]; |
267 } | 267 } |
268 | 268 |
269 @end | 269 @end |
OLD | NEW |