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

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

Issue 2659693004: Add context menu when long press on a reading list entry (Closed)
Patch Set: Address comment 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
Index: ios/chrome/browser/ui/reading_list/reading_list_view_controller_container.h
diff --git a/ios/chrome/browser/ui/reading_list/reading_list_view_controller_container.h b/ios/chrome/browser/ui/reading_list/reading_list_view_controller_container.h
index 4c995307a341b369d086c62f3f1cf911255459c4..8c0a27f190276fc94ccfcd5e8aa09334f4e8e026 100644
--- a/ios/chrome/browser/ui/reading_list/reading_list_view_controller_container.h
+++ b/ios/chrome/browser/ui/reading_list/reading_list_view_controller_container.h
@@ -14,14 +14,17 @@ class LargeIconService;
class ReadingListDownloadService;
class ReadingListModel;
-@class TabModel;
+@class ReadingListViewController;
+@protocol UrlLoader;
-// Container for the Reading List View Controller.
+// Container for the Reading List 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 ReadingListViewControllerContainer
- : UIViewController<ReadingListViewControllerAudience>
+ : UIViewController<ReadingListViewControllerDelegate>
- (instancetype)initWithModel:(ReadingListModel*)model
- tabModel:(TabModel*)tabModel
+ loader:(id<UrlLoader>)loader
largeIconService:(favicon::LargeIconService*)largeIconService
readingListDownloadService:
(ReadingListDownloadService*)readingListDownloadService
@@ -31,6 +34,9 @@ class ReadingListModel;
bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
+@property(nonatomic, strong, readonly)
+ ReadingListViewController* collectionController;
Olivier 2017/02/01 12:22:05 super optional nit: I would have viewController in
gambard 2017/02/01 17:13:37 Done.
+
@end
#endif // IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_VIEW_CONTROLLER_CONTAINER_H_

Powered by Google App Engine
This is Rietveld 408576698