| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/clean/chrome/browser/ui/root/root_coordinator.h" | 5 #import "ios/clean/chrome/browser/ui/root/root_coordinator.h" |
| 6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) | 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." | 8 #error "This file requires ARC support." |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 - (void)childCoordinatorDidStart:(BrowserCoordinator*)childCoordinator { | 51 - (void)childCoordinatorDidStart:(BrowserCoordinator*)childCoordinator { |
| 52 self.viewController.contentViewController = childCoordinator.viewController; | 52 self.viewController.contentViewController = childCoordinator.viewController; |
| 53 } | 53 } |
| 54 | 54 |
| 55 - (void)childCoordinatorWillStop:(BrowserCoordinator*)childCoordinator { | 55 - (void)childCoordinatorWillStop:(BrowserCoordinator*)childCoordinator { |
| 56 self.viewController.contentViewController = nil; | 56 self.viewController.contentViewController = nil; |
| 57 } | 57 } |
| 58 | 58 |
| 59 - (BOOL)canAddOverlayCoordinator:(BrowserCoordinator*)overlayCoordinator { | |
| 60 return YES; | |
| 61 } | |
| 62 | |
| 63 #pragma mark - URLOpening | 59 #pragma mark - URLOpening |
| 64 | 60 |
| 65 - (void)openURL:(NSURL*)URL { | 61 - (void)openURL:(NSURL*)URL { |
| 66 [self.tabGridCoordinator openURL:URL]; | 62 [self.tabGridCoordinator openURL:URL]; |
| 67 } | 63 } |
| 68 | 64 |
| 69 @end | 65 @end |
| OLD | NEW |