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

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

Issue 2955033002: [ios clean] Moves animator and presenters under transitions (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/transitions/presenters/menu_presentation_delegate.h
diff --git a/ios/clean/chrome/browser/ui/transitions/presenters/menu_presentation_delegate.h b/ios/clean/chrome/browser/ui/transitions/presenters/menu_presentation_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca854da8f2f79f7f2bce962a347bc8cbcc106fb8
--- /dev/null
+++ b/ios/clean/chrome/browser/ui/transitions/presenters/menu_presentation_delegate.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CLEAN_CHROME_BROWSER_UI_TRANSITIONS_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_
+#define IOS_CLEAN_CHROME_BROWSER_UI_TRANSITIONS_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_
+
+#import <Foundation/Foundation.h>
+
+// Protocol for an object to assist with menu presentation by providing
+// spatial information for the menu.
+@protocol MenuPresentationDelegate
+// Returns the CGRect in which the Menu presentation will take place.
+- (CGRect)boundsForMenuPresentation;
+// Returns 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_TRANSITIONS_PRESENTERS_MENU_PRESENTATION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698