Chromium Code Reviews| Index: chrome/browser/ui/cocoa/menu_controller.h |
| diff --git a/chrome/browser/ui/cocoa/menu_controller.h b/chrome/browser/ui/cocoa/menu_controller.h |
| index 16055236e70798273c0660c2e546590e6c428404..461aed07a1c5334264ebc63d95f152375f4c626c 100644 |
| --- a/chrome/browser/ui/cocoa/menu_controller.h |
| +++ b/chrome/browser/ui/cocoa/menu_controller.h |
| @@ -8,6 +8,7 @@ |
| #import <Cocoa/Cocoa.h> |
| #include "base/memory/scoped_nsobject.h" |
| +#include "base/string16.h" |
| namespace ui { |
| class MenuModel; |
| @@ -32,6 +33,9 @@ class MenuModel; |
| // |-initWithModel:useWithPopUpButtonCell:| or after the first call to |-menu|. |
| @property(nonatomic) BOOL useWithPopUpButtonCell; |
| ++ (string16)elideMenuTitle:(const string16&)title |
| + toWidth:(int)width; |
| + |
| // NIB-based initializer. This does not create a menu. Clients can set the |
| // properties of the object and the menu will be created upon the first call to |
| // |-menu|. Note that the menu will be immutable after creation. |
| @@ -71,6 +75,10 @@ class MenuModel; |
| fromModel:(ui::MenuModel*)model |
| modelIndex:(int)modelIndex; |
| - (NSMenu*)menuFromModel:(ui::MenuModel*)model; |
| +// Returns the maximum width for the menu menu item. Returns -1 to indicate |
|
kuan
2012/11/21 15:52:43
nit: remove one of the "menu" words.
sail
2012/11/21 19:28:30
Done.
|
| +// that there's no maximum width. |
| +- (int)maxWidthForMenuModel:(ui::MenuModel*)model |
| + modelIndex:(int)modelIndex; |
| @end |
| #endif // CHROME_BROWSER_UI_COCOA_MENU_CONTROLLER_H_ |