| 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_
|
|
|