Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: ios/showcase/suggestions/sc_suggestions_coordinator.mm

Issue 2640473002: Suggestions UI - favicon item (Closed)
Patch Set: Fix build Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/showcase/common/protocol_alerter.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/suggestions/sc_suggestions_coordinator.mm
diff --git a/ios/showcase/suggestions/sc_suggestions_coordinator.mm b/ios/showcase/suggestions/sc_suggestions_coordinator.mm
index 06c6feb1c4692016878f56078b222c4355f6d4d9..227d6cbe9f3f7a47433342ee79c451b3dfc81d9a 100644
--- a/ios/showcase/suggestions/sc_suggestions_coordinator.mm
+++ b/ios/showcase/suggestions/sc_suggestions_coordinator.mm
@@ -12,7 +12,7 @@
#error "This file requires ARC support."
#endif
-@interface SCSuggestionsCoordinator ()<SuggestionsCommands>
+@interface SCSuggestionsCoordinator ()
@property(nonatomic, strong)
SuggestionsViewController* suggestionViewController;
@@ -36,27 +36,11 @@
_suggestionViewController = [[SuggestionsViewController alloc]
initWithStyle:CollectionViewControllerStyleDefault];
- _suggestionViewController.suggestionCommandHandler = self;
+ _suggestionViewController.suggestionCommandHandler =
+ reinterpret_cast<id<SuggestionsCommands>>(self.alerter);
[self.baseViewController pushViewController:_suggestionViewController
animated:YES];
}
-#pragma mark - SuggestionsCommands
-
-- (void)addEmptyItem {
- [self.suggestionViewController addTextItem:@"Button clicked"
- subtitle:@"Item Added!"
- toSection:5];
-}
-
-- (void)openReadingList {
- [static_cast<id<SuggestionsCommands>>(self.alerter) openReadingList];
-}
-
-- (void)openFirstPageOfReadingList {
- [static_cast<id<SuggestionsCommands>>(self.alerter)
- openFirstPageOfReadingList];
-}
-
@end
« no previous file with comments | « ios/showcase/common/protocol_alerter.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698