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