Index: ios/showcase/tab_strip/sc_tab_strip_coordinator.mm |
diff --git a/ios/showcase/tab_strip/sc_tab_strip_coordinator.mm b/ios/showcase/tab_strip/sc_tab_strip_coordinator.mm |
deleted file mode 100644 |
index ab8740409658f858413d0675fc8a8b861f242b5d..0000000000000000000000000000000000000000 |
--- a/ios/showcase/tab_strip/sc_tab_strip_coordinator.mm |
+++ /dev/null |
@@ -1,52 +0,0 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#import "ios/showcase/tab_strip/sc_tab_strip_coordinator.h" |
- |
-#import "ios/clean/chrome/browser/ui/actions/tab_strip_actions.h" |
-#import "ios/clean/chrome/browser/ui/tab_strip/tab_strip_container_view_controller.h" |
- |
-#if !defined(__has_feature) || !__has_feature(objc_arc) |
-#error "This file requires ARC support." |
-#endif |
- |
-@interface SCTabStripCoordinator () |
-@property(nonatomic, strong) TabStripContainerViewController* viewController; |
-@end |
- |
-@implementation SCTabStripCoordinator |
-@synthesize baseViewController = _baseViewController; |
-@synthesize viewController = _viewController; |
- |
-- (void)start { |
- UIViewController* blackViewController = [[UIViewController alloc] init]; |
- blackViewController.view.backgroundColor = [UIColor blackColor]; |
- |
- UIViewController* greenViewController = |
- [self viewControllerWithButtonTitle:@"toggleStrip" |
- action:@selector(hideTabStrip:)]; |
- greenViewController.view.backgroundColor = [UIColor greenColor]; |
- |
- self.viewController = [[TabStripContainerViewController alloc] init]; |
- self.viewController.title = @"Tab strip container"; |
- self.viewController.tabStripViewController = blackViewController; |
- self.viewController.contentViewController = greenViewController; |
- self.baseViewController.navigationBar.translucent = NO; |
- [self.baseViewController pushViewController:self.viewController animated:YES]; |
-} |
- |
-- (UIViewController*)viewControllerWithButtonTitle:(NSString*)title |
- action:(SEL)action { |
- UIViewController* viewController = [[UIViewController alloc] init]; |
- UIButton* button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; |
- [button setFrame:CGRectMake(10, 10, 80, 50)]; |
- [button setTitle:title forState:UIControlStateNormal]; |
- [viewController.view addSubview:button]; |
- [button addTarget:nil |
- action:action |
- forControlEvents:UIControlEventTouchUpInside]; |
- return viewController; |
-} |
- |
-@end |