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

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

Issue 2672823003: Rename ReadingListViewController to ReadingListCollectionViewController (Closed)
Patch Set: Rebase 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
deleted file mode 100644
index 4ff7fa1cdc6363c52fb887d712b1c1aabf06e407..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ui/reading_list/reading_list_view_controller.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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/collection_view/collection_view_controller.h"
-
-#include <string>
-
-#import "ios/chrome/browser/ui/reading_list/reading_list_toolbar.h"
-
-namespace favicon {
-class LargeIconService;
-}
-
-@class ReadingListCollectionViewItem;
-class ReadingListDownloadService;
-class ReadingListModel;
-@class ReadingListViewController;
-@class TabModel;
-
-// Delegate for the ReadingListViewController, managing the visibility of the
-// toolbar, dismissing the Reading List View and opening elements.
-@protocol ReadingListViewControllerDelegate<NSObject>
-
-// Whether the collection has items.
-- (void)readingListViewController:
- (ReadingListViewController*)readingListViewController
- hasItems:(BOOL)hasItems;
-
-// Dismisses the Reading List View.
-- (void)dismissReadingListViewController:
- (ReadingListViewController*)readingListViewController;
-
-// Displays the context menu for the |readingListItem|. The |menuLocation| is
-// the anchor of the context menu in the
-// readingListViewController.collectionView coordinates.
-- (void)
-readingListViewController:(ReadingListViewController*)readingListViewController
-displayContextMenuForItem:(ReadingListCollectionViewItem*)readingListItem
- atPoint:(CGPoint)menuLocation;
-
-// Opens the entry corresponding to the |readingListItem|.
-- (void)
-readingListViewController:(ReadingListViewController*)readingListViewController
- openItem:(ReadingListCollectionViewItem*)readingListItem;
-
-@end
-
-@interface ReadingListViewController
- : CollectionViewController<ReadingListToolbarActions>
-
-- (instancetype)initWithModel:(ReadingListModel*)model
- largeIconService:(favicon::LargeIconService*)largeIconService
- readingListDownloadService:
- (ReadingListDownloadService*)readingListDownloadService
- toolbar:(ReadingListToolbar*)toolbar
- NS_DESIGNATED_INITIALIZER;
-- (instancetype)initWithStyle:(CollectionViewControllerStyle)style
- NS_UNAVAILABLE;
-
-@property(nonatomic, weak) id<ReadingListViewControllerDelegate> delegate;
-@property(nonatomic, readonly) ReadingListModel* readingListModel;
-@property(nonatomic, readonly) favicon::LargeIconService* largeIconService;
-@property(nonatomic, readonly)
- ReadingListDownloadService* readingListDownloadService;
-
-// Prepares this view controller to be dismissed.
-- (void)willBeDismissed;
-
-// Reloads all the data from the ReadingListModel.
-- (void)reloadData;
-
-@end
-
-#endif // IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698