Add Menu.setApplicationMenu API to set main menu of NSApp.

This commit is contained in:
Cheng Zhao 2013-05-16 10:54:37 +08:00
parent 64a8664ffe
commit 937b811c8d
5 changed files with 46 additions and 5 deletions

View file

@ -7,6 +7,8 @@
#include "browser/api/atom_api_menu.h"
#import "chrome/browser/ui/cocoa/menu_controller.h"
namespace atom {
namespace api {
@ -19,7 +21,11 @@ class MenuMac : public Menu {
protected:
virtual void Popup(NativeWindow* window) OVERRIDE;
scoped_nsobject<MenuController> menu_controller_;
private:
friend class Menu;
DISALLOW_COPY_AND_ASSIGN(MenuMac);
};