win: Add BrowserWindow.setMenu API.
This commit is contained in:
parent
2024ae5dba
commit
5a6ff0f80d
7 changed files with 54 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue