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

Unified Diff: ios/clean/chrome/browser/ui/tools/tools_menu_transition_controller.h

Issue 2952213003: [ios clean] Refactors ToolsMenu and Tabs presentation (Closed)
Patch Set: Created 3 years, 6 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
Index: ios/clean/chrome/browser/ui/tools/tools_menu_transition_controller.h
diff --git a/ios/clean/chrome/browser/ui/tools/tools_menu_transition_controller.h b/ios/clean/chrome/browser/ui/tools/tools_menu_transition_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..c1da071a0c7b796fd2c17de426c2110ba6ee2488
--- /dev/null
+++ b/ios/clean/chrome/browser/ui/tools/tools_menu_transition_controller.h
@@ -0,0 +1,25 @@
+// Copyright 2017 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.
+
+#ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_MENU_TRANSITION_CONTROLLER_H_
+#define IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_MENU_TRANSITION_CONTROLLER_H_
+
+#import "ios/clean/chrome/browser/ui/animators/zoom_transition_controller.h"
+
+@protocol ToolsMenuCommands;
+
+// Transition delegate object for the ToolsMenuVC which inherits from
marq (ping after 24h) 2017/06/23 09:18:49 I'd avoid mention of the specific view controller
sczs 2017/06/23 14:50:20 Acknowledged.
+// ZoomTransitionController. It conforms to the
+// UIViewControllerTransitioningDelegate protocol and provides the ToolsMenuVC
+// with MenuPresentationController as a UIPresentationController. This object
+// drives the animation and frame of the presented ToolsMenuVC.
+@interface ToolsMenuTransitionController : ZoomTransitionController
+
+// A dispatcher is needed in order to close the presented ToolsMenuVC.
+- (instancetype)initWithDispatcher:(id<ToolsMenuCommands>)dispatcher;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+#endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_MENU_TRANSITION_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698