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_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ |
10 #define IOS_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ |
11 | 11 |
12 #import <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
13 | 13 |
14 // Protocol for an object to assist with menu presentation by providing a | 14 // Protocol for an object to assist with menu presentation by providing a |
15 // frame for the menu. | 15 // frame for the menu. |
16 @protocol MenuPresentationDelegate | 16 @protocol MenuPresentationDelegate |
17 // Return the rect, in the coordinate space of the presenting view controller's | 17 // Return the rect, in the coordinate space of the presenting view controller's |
18 // view, that |presentation| should use for the presenting view controller. | 18 // view, that |presentation| should use for the presenting view controller. |
19 - (CGRect)frameForMenuPresentation:(UIPresentationController*)presentation; | 19 - (CGRect)frameForMenuPresentation:(UIPresentationController*)presentation; |
20 @end | 20 @end |
21 | 21 |
22 #endif // IOS_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ | 22 #endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_ |
OLD | NEW |