Chromium Code Reviews| 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..0e5950410a2f6bc1264d798f9d6a29254c6d14c5 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,20 @@ |
| #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 |
| -// the region the menu appears in. Otherwise a default rectangular area is |
| -// used. |
| +// 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 confroms to the MenuPresentationDelegate |
|
lpromero
2017/01/05 14:27:04
s/confroms/conforms
marq (ping after 24h)
2017/01/09 18:05:00
Done.
|
| +// 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 |
| +// controller's view. |
| @interface MenuPresentationController : UIPresentationController |
| +@property(nonatomic, assign) id<ToolbarCommands> toolbarCommandHandler; |
| @end |
| #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ |