Simplify menu api.
This commit is contained in:
parent
a13c29f0e6
commit
2efed6f910
8 changed files with 233 additions and 362 deletions
|
@ -14,14 +14,12 @@ class Menu2;
|
|||
namespace api {
|
||||
|
||||
class MenuWin : public Menu {
|
||||
public:
|
||||
explicit MenuWin(v8::Handle<v8::Object> wrapper);
|
||||
virtual ~MenuWin();
|
||||
|
||||
protected:
|
||||
virtual void Popup(NativeWindow* window) OVERRIDE;
|
||||
|
||||
private:
|
||||
MenuWin();
|
||||
|
||||
scoped_ptr<atom::Menu2> menu_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(MenuWin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue