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

Unified Diff: ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h

Issue 2741883002: [ios] Use WebStateList to back the tab grid. (Closed)
Patch Set: Add constant for invalid index Created 3 years, 9 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/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h
diff --git a/ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h b/ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h
index 2bc70ab44c6154212c57e4140d580440e8383b0d..07cf13267583d0304133f61dd2be17b9b70655f7 100644
--- a/ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h
+++ b/ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h
@@ -13,6 +13,8 @@
#import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h"
+const int kTabGridDataSourceInvalidIndex = -1;
+
@protocol SettingsCommands;
@protocol TabCommands;
@protocol TabGridCommands;
@@ -24,13 +26,14 @@
@protocol TabGridDataSource<NSObject>
// The number of tabs to be displayed in the grid.
-- (NSUInteger)numberOfTabsInTabGrid;
+- (int)numberOfTabsInTabGrid;
// Title for the tab at |index| in the grid.
-- (NSString*)titleAtIndex:(NSInteger)index;
+- (NSString*)titleAtIndex:(int)index;
-// Index for the active tab.
-- (NSInteger)indexOfActiveTab;
+// Index for the active tab or kTabGridDataSourceInvalidIndex if there is no
+// active tab.
+- (int)indexOfActiveTab;
@end

Powered by Google App Engine
This is Rietveld 408576698