| 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
| 6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
| 7 // ============================================================================ | 7 // ============================================================================ |
| 8 | 8 |
| 9 #import "ios/chrome/browser/ui/tab/tab_coordinator.h" | 9 #import "ios/clean/chrome/browser/ui/tab/tab_coordinator.h" |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/mac/foundation_util.h" | 13 #include "base/mac/foundation_util.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #import "ios/chrome/browser/browser_coordinator+internal.h" | 15 #import "ios/clean/chrome/browser/browser_coordinator+internal.h" |
| 16 #import "ios/chrome/browser/ui/animators/zoom_transition_animator.h" | 16 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_animator.h" |
| 17 #import "ios/chrome/browser/ui/tab/tab_container_view_controller.h" | 17 #import "ios/clean/chrome/browser/ui/tab/tab_container_view_controller.h" |
| 18 #import "ios/chrome/browser/ui/toolbar/toolbar_coordinator.h" | 18 #import "ios/clean/chrome/browser/ui/toolbar/toolbar_coordinator.h" |
| 19 #import "ios/chrome/browser/ui/web_contents/web_coordinator.h" | 19 #import "ios/clean/chrome/browser/ui/web_contents/web_coordinator.h" |
| 20 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 20 #import "ios/web/public/web_state/web_state_observer_bridge.h" |
| 21 | 21 |
| 22 #if !defined(__has_feature) || !__has_feature(objc_arc) | 22 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 23 #error "This file requires ARC support." | 23 #error "This file requires ARC support." |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 // Placeholder "experiment" flag. Change this to YES to have the toolbar at the | 27 // Placeholder "experiment" flag. Change this to YES to have the toolbar at the |
| 28 // bottom. | 28 // bottom. |
| 29 const BOOL kUseBottomToolbar = NO; | 29 const BOOL kUseBottomToolbar = NO; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 - (id<UIViewControllerAnimatedTransitioning>) | 111 - (id<UIViewControllerAnimatedTransitioning>) |
| 112 animationControllerForDismissedController:(UIViewController*)dismissed { | 112 animationControllerForDismissedController:(UIViewController*)dismissed { |
| 113 ZoomTransitionAnimator* animator = [[ZoomTransitionAnimator alloc] init]; | 113 ZoomTransitionAnimator* animator = [[ZoomTransitionAnimator alloc] init]; |
| 114 animator.presenting = NO; | 114 animator.presenting = NO; |
| 115 animator.presentationKey = self.presentationKey; | 115 animator.presentationKey = self.presentationKey; |
| 116 [animator selectDelegate:@[ dismissed.presentingViewController ]]; | 116 [animator selectDelegate:@[ dismissed.presentingViewController ]]; |
| 117 return animator; | 117 return animator; |
| 118 } | 118 } |
| 119 | 119 |
| 120 @end | 120 @end |
| OLD | NEW |