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

Unified Diff: ios/showcase/tab_grid/sc_tab_grid_coordinator.mm

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
« no previous file with comments | « ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/tab_grid/sc_tab_grid_coordinator.mm
diff --git a/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm b/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm
index e47bd47bd143886f99dfe3e3853363aad5d3cc85..d9d2e141f4bdaba90221585f6d26d7e8905b59b4 100644
--- a/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm
+++ b/ios/showcase/tab_grid/sc_tab_grid_coordinator.mm
@@ -40,16 +40,16 @@
#pragma mark - TabGridDataSource
-- (NSUInteger)numberOfTabsInTabGrid {
+- (int)numberOfTabsInTabGrid {
return 3;
}
-- (NSString*)titleAtIndex:(NSInteger)index {
- return [NSString stringWithFormat:@"Tab %" PRIdNS, index];
+- (NSString*)titleAtIndex:(int)index {
+ return [NSString stringWithFormat:@"Tab %d", index];
}
-- (NSInteger)indexOfActiveTab {
- return NSNotFound;
+- (int)indexOfActiveTab {
+ return kTabGridDataSourceInvalidIndex;
}
@end
« no previous file with comments | « ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698