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 #import "ios/chrome/browser/content_suggestions/content_suggestions_mediator.h" | 9 #import "ios/chrome/browser/content_suggestions/content_suggestions_mediator.h" |
10 #include "ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service
_factory.h" | 10 #include "ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service
_factory.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 | 87 |
88 #pragma mark - ContentSuggestionsCommands | 88 #pragma mark - ContentSuggestionsCommands |
89 | 89 |
90 - (void)openReadingList { | 90 - (void)openReadingList { |
91 } | 91 } |
92 | 92 |
93 - (void)openFirstPageOfReadingList { | 93 - (void)openFirstPageOfReadingList { |
94 } | 94 } |
95 | 95 |
96 - (void)addEmptyItem { | |
97 } | |
98 | |
99 - (void)openFaviconAtIndex:(NSInteger)index { | 96 - (void)openFaviconAtIndex:(NSInteger)index { |
100 } | 97 } |
101 | 98 |
102 - (void)openURL:(const GURL&)URL { | 99 - (void)openURL:(const GURL&)URL { |
103 // TODO(crbug.com/691979): Add metrics. | 100 // TODO(crbug.com/691979): Add metrics. |
104 | 101 |
105 [self.URLLoader loadURL:URL | 102 [self.URLLoader loadURL:URL |
106 referrer:web::Referrer() | 103 referrer:web::Referrer() |
107 transition:ui::PAGE_TRANSITION_AUTO_BOOKMARK | 104 transition:ui::PAGE_TRANSITION_AUTO_BOOKMARK |
108 rendererInitiated:NO]; | 105 rendererInitiated:NO]; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 appendTo:kLastTab]; | 172 appendTo:kLastTab]; |
176 | 173 |
177 [self stop]; | 174 [self stop]; |
178 } | 175 } |
179 | 176 |
180 - (void)removeEntry { | 177 - (void)removeEntry { |
181 // TODO(crbug.com/691979): Add metrics. | 178 // TODO(crbug.com/691979): Add metrics. |
182 } | 179 } |
183 | 180 |
184 @end | 181 @end |
OLD | NEW |