OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TRANSITIONS_PRESENTERS_MENU_PRESENTATION_CON
TROLLER_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_TRANSITIONS_PRESENTERS_MENU_PRESENTATION_CON
TROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 @protocol ToolsMenuCommands; | 10 @protocol ToolsMenuCommands; |
11 | 11 |
12 // A presentation controller for presenting a "menu" interface: a (usually) | 12 // A presentation controller for presenting a "menu" interface: a (usually) |
13 // rectangular presentation that covers part of the window, and which doesn't | 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 | 14 // obscure the presenting view. The presenting view remains in the view |
15 // hierarchy. | 15 // hierarchy. |
16 // The presented view controller (that is, the view controller that runs the | 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. | 17 // menu) should set the size of its view in -loadView or -viewDidLoad. |
18 // If the presenting view controller conforms to the MenuPresentationDelegate | 18 // If the presenting view controller conforms to the MenuPresentationDelegate |
19 // protocol, that protocol will be used to determine the region the menu | 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 | 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 | 21 // the region the menu appears in. Otherwise a default rectangular area is |
22 // controller's view. | 22 // controller's view. |
23 @interface MenuPresentationController : UIPresentationController | 23 @interface MenuPresentationController : UIPresentationController |
24 // The dispatcher for this presentation controller. | 24 // The dispatcher for this presentation controller. |
25 @property(nonatomic, weak) id<ToolsMenuCommands> dispatcher; | 25 @property(nonatomic, weak) id<ToolsMenuCommands> dispatcher; |
26 @end | 26 @end |
27 | 27 |
28 #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H
_ | 28 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TRANSITIONS_PRESENTERS_MENU_PRESENTATION_
CONTROLLER_H_ |
OLD | NEW |