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

Side by Side Diff: ios/clean/chrome/browser/ui/tools/tools_menu_transition_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #import "ios/clean/chrome/browser/ui/tools/tools_menu_transition_controller.h"
6
7 #import "ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h"
8
9 @interface ToolsMenuTransitionController ()
10 @property(nonatomic, weak) id<ToolsMenuCommands> dispatcher;
11 @end
12
13 @implementation ToolsMenuTransitionController
14 @synthesize dispatcher = _dispatcher;
15
16 - (instancetype)initWithDispatcher:(id<ToolsMenuCommands>)dispatcher {
17 self = [super init];
18 if (self) {
19 _dispatcher = dispatcher;
20 }
21 return self;
22 }
23
24 - (UIPresentationController*)
25 presentationControllerForPresentedViewController:(UIViewController*)presented
26 presentingViewController:(UIViewController*)presenting
27 sourceViewController:(UIViewController*)source {
28 MenuPresentationController* menuPresentation =
29 [[MenuPresentationController alloc]
30 initWithPresentedViewController:presented
31 presentingViewController:presenting];
32 menuPresentation.dispatcher = static_cast<id>(self.dispatcher);
33 return menuPresentation;
34 }
35
36 @end
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_menu_transition_controller.h ('k') | ios/clean/chrome/browser/ui/transitions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698