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 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 // Protocol for an object to assist with menu presentation by providing a | 10 // Protocol for an object to assist with menu presentation by providing |
| 11 // frame for the menu. | 11 // spatial information for the menu. |
| 12 @protocol MenuPresentationDelegate | 12 @protocol MenuPresentationDelegate |
| 13 // Return the rect, in the coordinate space of the presenting view controller's | 13 // Return the CGRect in which the Menu presentation will take place. |
|
lpromero
2017/06/23 15:42:51
Nit: Returns
sczs
2017/06/23 15:52:35
Acknowledged.
| |
| 14 // view, that |presentation| should use for the presenting view controller. | 14 - (CGRect)boundsForMenuPresentation; |
| 15 - (CGRect)frameForMenuPresentation:(UIPresentationController*)presentation; | 15 // Return the origin in the coordinate space of the presenting view controller's |
| 16 // view, in which the Menu presentation will present from. | |
| 17 - (CGRect)originForMenuPresentation; | |
| 16 @end | 18 @end |
| 17 | 19 |
| 18 #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ | 20 #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ |
| OLD | NEW |