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

Unified Diff: chrome/browser/ui/cocoa/menu_button.h

Issue 7061001: Mac: Make ProfileMenuButton a MenuButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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: chrome/browser/ui/cocoa/menu_button.h
diff --git a/chrome/browser/ui/cocoa/menu_button.h b/chrome/browser/ui/cocoa/menu_button.h
index 9b51648761c0fae3a647b9878c3fd851cde1da39..cca74abc274233f20836d192dc6c8f3cf159c9b4 100644
--- a/chrome/browser/ui/cocoa/menu_button.h
+++ b/chrome/browser/ui/cocoa/menu_button.h
@@ -43,6 +43,10 @@
// menu will only be opened when clicked and held.
@property(assign, nonatomic) BOOL openMenuOnClick;
+// Returns the rectangle that menus are anchored at. Can be overridden by
+// subclasses, returns -bounds by default.
+- (NSRect)menuRect;
+
@end // @interface MenuButton
// Available for subclasses.

Powered by Google App Engine
This is Rietveld 408576698