OLD | NEW |
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/content_suggestions/content_suggestions_coordinator.
h" | 5 #import "ios/chrome/browser/content_suggestions/content_suggestions_coordinator.
h" |
6 | 6 |
7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "components/ntp_snippets/content_suggestions_service.h" | 9 #include "components/ntp_snippets/content_suggestions_service.h" |
10 #include "components/ntp_snippets/remote/remote_suggestions_scheduler.h" | 10 #include "components/ntp_snippets/remote/remote_suggestions_scheduler.h" |
11 #import "ios/chrome/browser/content_suggestions/content_suggestions_mediator.h" | 11 #import "ios/chrome/browser/content_suggestions/content_suggestions_mediator.h" |
12 #include "ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service
_factory.h" | 12 #include "ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service
_factory.h" |
13 #import "ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h" | 13 #import "ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h" |
14 #import "ios/chrome/browser/ui/content_suggestions/content_suggestion_identifier
.h" | |
15 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_article_i
tem.h" | 14 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_article_i
tem.h" |
16 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_commands.
h" | 15 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_commands.
h" |
17 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_view_cont
roller.h" | 16 #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_view_cont
roller.h" |
| 17 #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion
_identifier.h" |
18 #import "ios/chrome/browser/ui/url_loader.h" | 18 #import "ios/chrome/browser/ui/url_loader.h" |
19 #include "ios/chrome/grit/ios_strings.h" | 19 #include "ios/chrome/grit/ios_strings.h" |
20 #include "ios/web/public/referrer.h" | 20 #include "ios/web/public/referrer.h" |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 #include "ui/strings/grit/ui_strings.h" | 22 #include "ui/strings/grit/ui_strings.h" |
23 | 23 |
24 #if !defined(__has_feature) || !__has_feature(objc_arc) | 24 #if !defined(__has_feature) || !__has_feature(objc_arc) |
25 #error "This file requires ARC support." | 25 #error "This file requires ARC support." |
26 #endif | 26 #endif |
27 | 27 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 if (!article) | 201 if (!article) |
202 return; | 202 return; |
203 | 203 |
204 // TODO(crbug.com/691979): Add metrics. | 204 // TODO(crbug.com/691979): Add metrics. |
205 [self.contentSuggestionsMediator | 205 [self.contentSuggestionsMediator |
206 dismissSuggestion:article.suggestionIdentifier]; | 206 dismissSuggestion:article.suggestionIdentifier]; |
207 [self.suggestionsViewController dismissEntryAtIndexPath:indexPath]; | 207 [self.suggestionsViewController dismissEntryAtIndexPath:indexPath]; |
208 } | 208 } |
209 | 209 |
210 @end | 210 @end |
OLD | NEW |