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

Unified Diff: ios/chrome/browser/ui/reading_list/reading_list_view_controller.h

Issue 2693863005: Create ReadingListCoordinator (Closed)
Patch Set: Address comments Created 3 years, 10 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
Index: ios/chrome/browser/ui/reading_list/reading_list_view_controller.h
diff --git a/ios/chrome/browser/ui/reading_list/reading_list_view_controller.h b/ios/chrome/browser/ui/reading_list/reading_list_view_controller.h
index 1904d975669270466ef04caee6e2b96f601d891c..75843044247c92bf64d530af011a98084ff859f8 100644
--- a/ios/chrome/browser/ui/reading_list/reading_list_view_controller.h
+++ b/ios/chrome/browser/ui/reading_list/reading_list_view_controller.h
@@ -5,34 +5,28 @@
#ifndef IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_VIEW_CONTROLLER_H_
#define IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_VIEW_CONTROLLER_H_
-#import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_controller.h"
#import "ios/chrome/browser/ui/reading_list/reading_list_toolbar.h"
-namespace favicon {
-class LargeIconService;
-}
-
@class ReadingListCollectionViewController;
-class ReadingListDownloadService;
-class ReadingListModel;
-@protocol UrlLoader;
+@protocol ReadingListCollectionViewControllerDelegate;
// Container for the ReadingList Collection View Controller and the toolbar. It
-// handles the interactions between the two. It also acts as a ReadingList
-// delegate, opening entries and displaying context menu.
-@interface ReadingListViewController
- : UIViewController<ReadingListCollectionViewControllerDelegate>
-
-- (instancetype)initWithModel:(ReadingListModel*)model
- loader:(id<UrlLoader>)loader
- largeIconService:(favicon::LargeIconService*)largeIconService
- readingListDownloadService:
- (ReadingListDownloadService*)readingListDownloadService
+// handles the interactions between the two.
+@interface ReadingListViewController : UIViewController
+
+- (instancetype)initWithCollectionViewController:
+ (ReadingListCollectionViewController*)
+ collectionViewController
+ toolbar:(ReadingListToolbar*)toolbar
NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithNibName:(NSString*)nibNameOrNil
bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@property(nonatomic, weak) id<ReadingListCollectionViewControllerDelegate>
+ delegate;
@end

Powered by Google App Engine
This is Rietveld 408576698