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/metrics/user_metrics.h" | 8 #include "base/metrics/user_metrics.h" |
9 #include "base/metrics/user_metrics_action.h" | 9 #include "base/metrics/user_metrics_action.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 self.contentSuggestionsMediator = nil; | 105 self.contentSuggestionsMediator = nil; |
106 self.alertCoordinator = nil; | 106 self.alertCoordinator = nil; |
107 _visible = NO; | 107 _visible = NO; |
108 } | 108 } |
109 | 109 |
110 #pragma mark - ContentSuggestionsCommands | 110 #pragma mark - ContentSuggestionsCommands |
111 | 111 |
112 - (void)openReadingList { | 112 - (void)openReadingList { |
113 } | 113 } |
114 | 114 |
115 - (void)openFirstPageOfReadingList { | |
116 } | |
117 | |
118 - (void)openFaviconAtIndex:(NSInteger)index { | |
119 } | |
120 | |
121 - (void)openURL:(const GURL&)URL { | 115 - (void)openURL:(const GURL&)URL { |
122 // TODO(crbug.com/691979): Add metrics. | 116 // TODO(crbug.com/691979): Add metrics. |
123 | 117 |
124 [self.URLLoader loadURL:URL | 118 [self.URLLoader loadURL:URL |
125 referrer:web::Referrer() | 119 referrer:web::Referrer() |
126 transition:ui::PAGE_TRANSITION_AUTO_BOOKMARK | 120 transition:ui::PAGE_TRANSITION_AUTO_BOOKMARK |
127 rendererInitiated:NO]; | 121 rendererInitiated:NO]; |
128 | 122 |
129 [self stop]; | 123 [self stop]; |
130 } | 124 } |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 if (!article) | 224 if (!article) |
231 return; | 225 return; |
232 | 226 |
233 // TODO(crbug.com/691979): Add metrics. | 227 // TODO(crbug.com/691979): Add metrics. |
234 [self.contentSuggestionsMediator | 228 [self.contentSuggestionsMediator |
235 dismissSuggestion:article.suggestionIdentifier]; | 229 dismissSuggestion:article.suggestionIdentifier]; |
236 [self.suggestionsViewController dismissEntryAtIndexPath:indexPath]; | 230 [self.suggestionsViewController dismissEntryAtIndexPath:indexPath]; |
237 } | 231 } |
238 | 232 |
239 @end | 233 @end |
OLD | NEW |