| 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/strip/sc_strip_coordinator.h" | 5 #import "ios/showcase/strip/sc_strip_coordinator.h" |
| 6 | 6 |
| 7 #import "ios/chrome/browser/ui/actions/tab_strip_actions.h" | 7 #import "ios/clean/chrome/browser/ui/actions/tab_strip_actions.h" |
| 8 #import "ios/chrome/browser/ui/strip/strip_container_view_controller.h" | 8 #import "ios/clean/chrome/browser/ui/strip/strip_container_view_controller.h" |
| 9 | 9 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) | 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." | 11 #error "This file requires ARC support." |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 @interface SCStripCoordinator () | 14 @interface SCStripCoordinator () |
| 15 @property(nonatomic, strong) StripContainerViewController* viewController; | 15 @property(nonatomic, strong) StripContainerViewController* viewController; |
| 16 @end | 16 @end |
| 17 | 17 |
| 18 @implementation SCStripCoordinator | 18 @implementation SCStripCoordinator |
| (...skipping 24 matching lines...) Expand all Loading... |
| 43 [button setFrame:CGRectMake(10, 10, 80, 50)]; | 43 [button setFrame:CGRectMake(10, 10, 80, 50)]; |
| 44 [button setTitle:title forState:UIControlStateNormal]; | 44 [button setTitle:title forState:UIControlStateNormal]; |
| 45 [viewController.view addSubview:button]; | 45 [viewController.view addSubview:button]; |
| 46 [button addTarget:nil | 46 [button addTarget:nil |
| 47 action:action | 47 action:action |
| 48 forControlEvents:UIControlEventTouchUpInside]; | 48 forControlEvents:UIControlEventTouchUpInside]; |
| 49 return viewController; | 49 return viewController; |
| 50 } | 50 } |
| 51 | 51 |
| 52 @end | 52 @end |
| OLD | NEW |