Chromium Code Reviews| 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
| 6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
| 7 // ============================================================================ | 7 // ============================================================================ |
| 8 | 8 |
| 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ |
| 10 #define IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H_ |
| 11 | 11 |
| 12 #import <UIKit/UIKit.h> | 12 #import <UIKit/UIKit.h> |
| 13 | 13 |
| 14 @protocol ToolbarCommands; | |
| 15 | |
| 14 // A presentation controller for presenting a "menu" interface: a (usually) | 16 // A presentation controller for presenting a "menu" interface: a (usually) |
| 15 // rectangular presentation that covers part of the window, and which doesn't | 17 // rectangular presentation that covers part of the window, and which doesn't |
| 16 // obscure the presenting view. The presenting view remains in the view | 18 // obscure the presenting view. The presenting view remains in the view |
| 17 // hierarchy. If the presenting view controller confroms to the | 19 // hierarchy. |
| 18 // MenuPresentationDelegate protocol, that protocol will be used to determine | 20 // The presented view controller (that is, the view controller that runs the |
| 19 // the region the menu appears in. Otherwise a default rectangular area is | 21 // menu) should set the size of its view in -loadView or -viewDidLoad. |
| 20 // used. | 22 // 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.
| |
| 23 // protocol, that protocol will be used to determine the region the menu | |
| 24 // appears in; otherwise it will appear in the center of the presenting view | |
| 25 // controller's view. | |
| 21 @interface MenuPresentationController : UIPresentationController | 26 @interface MenuPresentationController : UIPresentationController |
| 27 @property(nonatomic, assign) id<ToolbarCommands> toolbarCommandHandler; | |
| 22 @end | 28 @end |
| 23 | 29 |
| 24 #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H _ | 30 #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_CONTROLLER_H _ |
| OLD | NEW |