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

Side by Side Diff: ios/clean/chrome/browser/ui/tools/tools_coordinator.mm

Issue 2737563006: [ios] Adds support for Find in Page to the new architecture. (Closed)
Patch Set: Fix GN. Created 3 years, 8 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/tools/tools_coordinator.h" 5 #import "ios/clean/chrome/browser/ui/tools/tools_coordinator.h"
6 6
7 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_animator.h" 7 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_animator.h"
8 #import "ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h" 8 #import "ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h"
9 #import "ios/clean/chrome/browser/ui/tools/menu_view_controller.h" 9 #import "ios/clean/chrome/browser/ui/tools/menu_view_controller.h"
10 #import "ios/clean/chrome/browser/ui/tools/tools_mediator.h" 10 #import "ios/clean/chrome/browser/ui/tools/tools_mediator.h"
(...skipping 13 matching lines...) Expand all
24 @synthesize mediator = _mediator; 24 @synthesize mediator = _mediator;
25 25
26 #pragma mark - BrowserCoordinator 26 #pragma mark - BrowserCoordinator
27 27
28 - (void)start { 28 - (void)start {
29 self.viewController = [[MenuViewController alloc] init]; 29 self.viewController = [[MenuViewController alloc] init];
30 self.viewController.modalPresentationStyle = UIModalPresentationCustom; 30 self.viewController.modalPresentationStyle = UIModalPresentationCustom;
31 self.viewController.transitioningDelegate = self; 31 self.viewController.transitioningDelegate = self;
32 self.viewController.dispatcher = static_cast<id>(self.browser->dispatcher()); 32 self.viewController.dispatcher = static_cast<id>(self.browser->dispatcher());
33 self.mediator = [[ToolsMediator alloc] initWithConsumer:self.viewController]; 33 self.mediator = [[ToolsMediator alloc] initWithConsumer:self.viewController];
34
35 [super start]; 34 [super start];
36 } 35 }
37 36
38 #pragma mark - UIViewControllerTransitioningDelegate 37 #pragma mark - UIViewControllerTransitioningDelegate
39 38
40 - (id<UIViewControllerAnimatedTransitioning>) 39 - (id<UIViewControllerAnimatedTransitioning>)
41 animationControllerForPresentedController:(UIViewController*)presented 40 animationControllerForPresentedController:(UIViewController*)presented
42 presentingController:(UIViewController*)presenting 41 presentingController:(UIViewController*)presenting
43 sourceController:(UIViewController*)source { 42 sourceController:(UIViewController*)source {
44 ZoomTransitionAnimator* animator = [[ZoomTransitionAnimator alloc] init]; 43 ZoomTransitionAnimator* animator = [[ZoomTransitionAnimator alloc] init];
(...skipping 16 matching lines...) Expand all
61 sourceViewController:(UIViewController*)source { 60 sourceViewController:(UIViewController*)source {
62 MenuPresentationController* menuPresentation = 61 MenuPresentationController* menuPresentation =
63 [[MenuPresentationController alloc] 62 [[MenuPresentationController alloc]
64 initWithPresentedViewController:presented 63 initWithPresentedViewController:presented
65 presentingViewController:presenting]; 64 presentingViewController:presenting];
66 menuPresentation.dispatcher = static_cast<id>(self.browser->dispatcher()); 65 menuPresentation.dispatcher = static_cast<id>(self.browser->dispatcher());
67 return menuPresentation; 66 return menuPresentation;
68 } 67 }
69 68
70 @end 69 @end
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_actions.h ('k') | ios/clean/chrome/browser/ui/tools/tools_mediator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698