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

Unified Diff: ios/chrome/browser/ui/tools/tools_coordinator.mm

Issue 2592983003: [Clean Skeleton] Migrate code to clean/ (Closed)
Patch Set: Rebased Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/tools/tools_coordinator.h ('k') | ios/chrome/browser/ui/ui_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/tools/tools_coordinator.mm
diff --git a/ios/chrome/browser/ui/tools/tools_coordinator.mm b/ios/chrome/browser/ui/tools/tools_coordinator.mm
deleted file mode 100644
index 864229eb4f12c9621ba210bef136e0ada7a3f446..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ui/tools/tools_coordinator.mm
+++ /dev/null
@@ -1,73 +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.
-
-// ====== New Architecture =====
-// = This code is only used in the new iOS Chrome architecture. =
-// ============================================================================
-
-#import "ios/chrome/browser/ui/tools/tools_coordinator.h"
-
-#import "ios/chrome/browser/ui/animators/zoom_transition_animator.h"
-#import "ios/chrome/browser/ui/presenters/menu_presentation_controller.h"
-#import "ios/chrome/browser/ui/tools/menu_view_controller.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-@interface ToolsCoordinator ()<UIViewControllerTransitioningDelegate>
-@property(nonatomic, strong) MenuViewController* menuViewController;
-@end
-
-@implementation ToolsCoordinator
-@synthesize menuViewController = _menuViewController;
-
-#pragma mark - BrowserCoordinator
-
-- (void)start {
- self.menuViewController = [[MenuViewController alloc] init];
- self.menuViewController.modalPresentationStyle = UIModalPresentationCustom;
- self.menuViewController.transitioningDelegate = self;
-
- [self.rootViewController presentViewController:self.menuViewController
- animated:YES
- completion:nil];
-}
-
-- (void)stop {
- [self.menuViewController dismissViewControllerAnimated:YES completion:nil];
-}
-
-#pragma mark - UIViewControllerTransitioningDelegate
-
-- (id<UIViewControllerAnimatedTransitioning>)
-animationControllerForPresentedController:(UIViewController*)presented
- presentingController:(UIViewController*)presenting
- sourceController:(UIViewController*)source {
- ZoomTransitionAnimator* animator = [[ZoomTransitionAnimator alloc] init];
- animator.presenting = YES;
- [animator selectDelegate:@[ source, presenting ]];
- return animator;
-}
-
-- (id<UIViewControllerAnimatedTransitioning>)
-animationControllerForDismissedController:(UIViewController*)dismissed {
- ZoomTransitionAnimator* animator = [[ZoomTransitionAnimator alloc] init];
- animator.presenting = NO;
- [animator selectDelegate:@[ dismissed.presentingViewController ]];
- return animator;
-}
-
-- (UIPresentationController*)
-presentationControllerForPresentedViewController:(UIViewController*)presented
- presentingViewController:(UIViewController*)presenting
- sourceViewController:(UIViewController*)source {
- MenuPresentationController* menuPresentation =
- [[MenuPresentationController alloc]
- initWithPresentedViewController:presented
- presentingViewController:presenting];
- return menuPresentation;
-}
-
-@end
« no previous file with comments | « ios/chrome/browser/ui/tools/tools_coordinator.h ('k') | ios/chrome/browser/ui/ui_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698