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

Unified Diff: ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h

Issue 2603783002: [Clean Skeleton] Fix menu dismiss and positions. (Closed)
Patch Set: Fix strip include. 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
Index: ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h
diff --git a/ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h b/ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h
index 402c92a7b8355240c025477b5f15a69f5082e83a..d4d134726b0212c739606c94ddbbc17b1d956100 100644
--- a/ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h
+++ b/ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h
@@ -11,14 +11,21 @@
#import <UIKit/UIKit.h>
+@protocol ToolbarCommands;
+
// A presentation controller for presenting a "menu" interface: a (usually)
// rectangular presentation that covers part of the window, and which doesn't
// obscure the presenting view. The presenting view remains in the view
-// hierarchy. If the presenting view controller confroms to the
-// MenuPresentationDelegate protocol, that protocol will be used to determine
+// hierarchy.
+// The presented view controller (that is, the view controller that runs the
+// menu) should set the size of its view in -loadView or -viewDidLoad.
+// If the presenting view controller conforms to the MenuPresentationDelegate
+// protocol, that protocol will be used to determine the region the menu
+// appears in; otherwise it will appear in the center of the presenting view
// the region the menu appears in. Otherwise a default rectangular area is
-// used.
+// controller's view.
@interface MenuPresentationController : UIPresentationController
+@property(nonatomic, assign) id<ToolbarCommands> toolbarCommandHandler;
@end
#endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698