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 |