| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 | |
| 10 @protocol ToolsMenuCommands; | |
| 11 | |
| 12 // A presentation controller for presenting a "menu" interface: a (usually) | |
| 13 // rectangular presentation that covers part of the window, and which doesn't | |
| 14 // obscure the presenting view. The presenting view remains in the view | |
| 15 // hierarchy. | |
| 16 // The presented view controller (that is, the view controller that runs the | |
| 17 // menu) should set the size of its view in -loadView or -viewDidLoad. | |
| 18 // If the presenting view controller conforms to the MenuPresentationDelegate | |
| 19 // protocol, that protocol will be used to determine the region the menu | |
| 20 // appears in; otherwise it will appear in the center of the presenting view | |
| 21 // the region the menu appears in. Otherwise a default rectangular area is | |
| 22 // controller's view. | |
| 23 @interface MenuPresentationController : UIPresentationController | |
| 24 // The dispatcher for this presentation controller. | |
| 25 @property(nonatomic, weak) id<ToolsMenuCommands> dispatcher; | |
| 26 @end | |
| 27 | |
| 28 #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H
_ | |
| OLD | NEW |