Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(740)

Unified Diff: ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h

Issue 2952213003: [ios clean] Refactors ToolsMenu and Tabs presentation (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h
diff --git a/ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h b/ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h
index da4a3d8b3b31b02b0bcfe5f8996c94d49885799f..65d4ca9689be82add32a8356266727848e1079a6 100644
--- a/ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h
+++ b/ios/clean/chrome/browser/ui/presenters/menu_presentation_delegate.h
@@ -7,12 +7,14 @@
#import <Foundation/Foundation.h>
-// Protocol for an object to assist with menu presentation by providing a
-// frame for the menu.
+// Protocol for an object to assist with menu presentation by providing
+// spatial information for the menu.
@protocol MenuPresentationDelegate
-// Return the rect, in the coordinate space of the presenting view controller's
-// view, that |presentation| should use for the presenting view controller.
-- (CGRect)frameForMenuPresentation:(UIPresentationController*)presentation;
+// 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.
+- (CGRect)boundsForMenuPresentation;
+// Return the origin in the coordinate space of the presenting view controller's
+// view, in which the Menu presentation will present from.
+- (CGRect)originForMenuPresentation;
@end
#endif // IOS_CLEAN_CHROME_BROWSER_UI_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698