Add Menu API. (WIP)

This commit is contained in:
Cheng Zhao 2013-05-06 20:27:09 +08:00
parent 5915591592
commit 7cc04035c4
6 changed files with 174 additions and 0 deletions

View file

@ -0,0 +1,27 @@
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "browser/api/atom_api_menu_mac.h"
namespace atom {
namespace api {
MenuMac::MenuMac(v8::Handle<v8::Object> wrapper)
: Menu(wrapper),
controller_([[MenuController alloc] initWithModel:model_.get()
useWithPopUpButtonCell:NO]) {
}
MenuMac::~MenuMac() {
}
// static
Menu* Menu::Create(v8::Handle<v8::Object> wrapper) {
return new MenuMac(wrapper);
}
} // namespace api
} // namespace atom