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

Unified Diff: ios/chrome/browser/ui/history/tab_history_view_controller.h

Issue 2693013005: Updated tab history classes to use NavigationItemLists. (Closed)
Patch Set: move TabHistoryPopupController ivar underscore to prefix, pass items by reference to toolbar 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/history/tab_history_view_controller.h
diff --git a/ios/chrome/browser/ui/history/tab_history_view_controller.h b/ios/chrome/browser/ui/history/tab_history_view_controller.h
index cc7877e4e149de9d6e3a7814ca0bcec9ccc14284..5f9fe6167a98b8b2d42ca3b342e2722dde3b4ff1 100644
--- a/ios/chrome/browser/ui/history/tab_history_view_controller.h
+++ b/ios/chrome/browser/ui/history/tab_history_view_controller.h
@@ -7,12 +7,13 @@
#import <UIKit/UIKit.h>
+#include "ios/web/public/navigation_item_list.h"
+
// View controller for displaying a list of CRWSessionEntry objects in a table.
@interface TabHistoryViewController : UICollectionViewController
-// TODO(crbug.com/546355): Convert this class to use an array of
-// NavigationEntries.
-@property(nonatomic, strong) NSArray* sessionEntries;
+// Initializer that takes a NavigationItemList.
+- (instancetype)initWithItems:(const web::NavigationItemList&)items;
Eugene But (OOO till 7-30) 2017/02/14 23:08:08 nit: NS_DESIGNATED_INITIALIZER ?
kkhorimoto 2017/02/14 23:23:51 Done.
// Returns the optimal height needed to display the session entries.
// The height returned is usually less than the |suggestedHeight| unless

Powered by Google App Engine
This is Rietveld 408576698