Add async menu.popup on macOS
This commit is contained in:
parent
85bdce0722
commit
636ef0fd29
2 changed files with 35 additions and 5 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue