| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/showcase/tab_grid/sc_tab_grid_coordinator.h" | 5 #import "ios/showcase/tab_grid/sc_tab_grid_coordinator.h" |
| 6 | 6 |
| 7 #import "base/format_macros.h" | 7 #import "base/format_macros.h" |
| 8 #import "ios/chrome/browser/ui/commands/tab_commands.h" | 8 #import "ios/clean/chrome/browser/ui/commands/tab_commands.h" |
| 9 #import "ios/chrome/browser/ui/tab_grid/tab_grid_view_controller.h" | 9 #import "ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h" |
| 10 #import "ios/showcase/common/protocol_alerter.h" | 10 #import "ios/showcase/common/protocol_alerter.h" |
| 11 | 11 |
| 12 #if !defined(__has_feature) || !__has_feature(objc_arc) | 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 13 #error "This file requires ARC support." | 13 #error "This file requires ARC support." |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 @interface SCTabGridCoordinator ()<TabGridDataSource> | 16 @interface SCTabGridCoordinator ()<TabGridDataSource> |
| 17 @property(nonatomic, strong) TabGridViewController* viewController; | 17 @property(nonatomic, strong) TabGridViewController* viewController; |
| 18 @property(nonatomic, strong) ProtocolAlerter* alerter; | 18 @property(nonatomic, strong) ProtocolAlerter* alerter; |
| 19 @end | 19 @end |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 - (NSUInteger)numberOfTabsInTabGrid { | 43 - (NSUInteger)numberOfTabsInTabGrid { |
| 44 return 3; | 44 return 3; |
| 45 } | 45 } |
| 46 | 46 |
| 47 - (NSString*)titleAtIndex:(NSInteger)index { | 47 - (NSString*)titleAtIndex:(NSInteger)index { |
| 48 return [NSString stringWithFormat:@"Tab %" PRIdNS, index]; | 48 return [NSString stringWithFormat:@"Tab %" PRIdNS, index]; |
| 49 } | 49 } |
| 50 | 50 |
| 51 @end | 51 @end |
| OLD | NEW |