win: Add BrowserWindow.setMenu API.

This commit is contained in:
Cheng Zhao 2013-10-02 21:24:21 +08:00
parent 2024ae5dba
commit 5a6ff0f80d
7 changed files with 54 additions and 1 deletions

View file

@ -351,6 +351,10 @@ void Menu::Initialize(v8::Handle<v8::Object> target) {
NODE_SET_PROTOTYPE_METHOD(t, "popup", Popup);
#if defined(OS_WIN)
NODE_SET_PROTOTYPE_METHOD(t, "attachToWindow", AttachToWindow);
#endif
target->Set(v8::String::NewSymbol("Menu"), t->GetFunction());
#if defined(OS_MACOSX)