Add async menu.popup on macOS

This commit is contained in:
Kevin Sawicki 2017-02-15 11:44:25 -08:00
parent 85bdce0722
commit 636ef0fd29
2 changed files with 35 additions and 5 deletions

View file

@ -20,6 +20,8 @@ class MenuMac : public Menu {
MenuMac(v8::Isolate* isolate, v8::Local<v8::Object> wrapper);
void PopupAt(Window* window, int x, int y, int positioning_item) override;
void PopupOnUI(const base::WeakPtr<NativeWindow>& native_window,
int x, int y, int positioning_item);
base::scoped_nsobject<AtomMenuController> menu_controller_;
@ -28,6 +30,8 @@ class MenuMac : public Menu {
static void SendActionToFirstResponder(const std::string& action);
base::WeakPtrFactory<MenuMac> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(MenuMac);
};