Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: ios/clean/chrome/browser/ui/tab/tab_container_view_controller.mm

Issue 2955033002: [ios clean] Moves animator and presenters under transitions (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/clean/chrome/browser/ui/tab/tab_container_view_controller.h" 5 #import "ios/clean/chrome/browser/ui/tab/tab_container_view_controller.h"
6 6
7 #import "ios/clean/chrome/browser/ui/ui_types.h" 7 #import "ios/clean/chrome/browser/ui/ui_types.h"
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc) 9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support." 10 #error "This file requires ARC support."
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 [viewController.view removeFromSuperview]; 177 [viewController.view removeFromSuperview];
178 [viewController removeFromParentViewController]; 178 [viewController removeFromParentViewController];
179 } 179 }
180 180
181 #pragma mark - MenuPresentationDelegate 181 #pragma mark - MenuPresentationDelegate
182 182
183 - (CGRect)boundsForMenuPresentation { 183 - (CGRect)boundsForMenuPresentation {
184 return self.view.bounds; 184 return self.view.bounds;
185 } 185 }
186 - (CGRect)originForMenuPresentation { 186 - (CGRect)originForMenuPresentation {
187 return [self rectForZoomWithKey:@"" inView:self.view]; 187 return [self rectForZoomWithKey:nil inView:self.view];
188 } 188 }
189 189
190 #pragma mark - ZoomTransitionDelegate 190 #pragma mark - ZoomTransitionDelegate
191 191
192 - (CGRect)rectForZoomWithKey:(NSObject*)key inView:(UIView*)view { 192 - (CGRect)rectForZoomWithKey:(NSObject*)key inView:(UIView*)view {
193 if ([self.toolbarViewController 193 if ([self.toolbarViewController
194 conformsToProtocol:@protocol(ZoomTransitionDelegate)]) { 194 conformsToProtocol:@protocol(ZoomTransitionDelegate)]) {
195 return [reinterpret_cast<id<ZoomTransitionDelegate>>( 195 return [reinterpret_cast<id<ZoomTransitionDelegate>>(
196 self.toolbarViewController) rectForZoomWithKey:key 196 self.toolbarViewController) rectForZoomWithKey:key
197 inView:view]; 197 inView:view];
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 constraintEqualToAnchor:self.view.leadingAnchor], 308 constraintEqualToAnchor:self.view.leadingAnchor],
309 [self.toolbarView.trailingAnchor 309 [self.toolbarView.trailingAnchor
310 constraintEqualToAnchor:self.view.trailingAnchor], 310 constraintEqualToAnchor:self.view.trailingAnchor],
311 self.toolbarHeightConstraint, 311 self.toolbarHeightConstraint,
312 [self.toolbarView.bottomAnchor 312 [self.toolbarView.bottomAnchor
313 constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor], 313 constraintEqualToAnchor:self.bottomLayoutGuide.topAnchor],
314 ]; 314 ];
315 } 315 }
316 316
317 @end 317 @end
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tab/tab_container_view_controller.h ('k') | ios/clean/chrome/browser/ui/tab/tab_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698