#ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MENU_COCOA_CONTROLLER_H_
#import <Cocoa/Cocoa.h>
#include "ui/base/window_open_disposition.h"
class BookmarkNode;
class BookmarkMenuBridge;
@interface BookmarkMenuCocoaController : NSObject<NSMenuDelegate> {
@private
BookmarkMenuBridge* bridge_;
NSMenu *menu_;
}
@property(nonatomic, readonly) NSMenu* menu;
+ (NSString*)menuTitleForNode:(const BookmarkNode*)node;
+ (NSString*)tooltipForNode:(const BookmarkNode*)node;
- (id)initWithBridge:(BookmarkMenuBridge *)bridge
andMenu:(NSMenu*)menu;
- (IBAction)openBookmarkMenuItem:(id)sender;
- (IBAction)openAllBookmarks:(id)sender;
- (IBAction)openAllBookmarksNewWindow:(id)sender;
- (IBAction)openAllBookmarksIncognitoWindow:(id)sender;
@end
@interface BookmarkMenuCocoaController (ExposedForUnitTests)
- (const BookmarkNode*)nodeForIdentifier:(int)identifier;
- (void)openURLForNode:(const BookmarkNode*)node;
- (void)openAll:(NSInteger)tag
withDisposition:(WindowOpenDisposition)disposition;
@end
#endif