bool async);
void ClosePopupAt(int32_t window_id) override;
- scoped_nsobject<AtomMenuController> menu_controller_;
- std::map<int32_t, scoped_nsobject<AtomMenuController>> popup_controllers_;
-
private:
friend class Menu;
static void SendActionToFirstResponder(const std::string& action);
+ scoped_nsobject<AtomMenuController> menu_controller_;
+
+ // window ID -> open context menu
+ std::map<int32_t, scoped_nsobject<AtomMenuController>> popup_controllers_;
+
base::WeakPtrFactory<MenuMac> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(MenuMac);
void ClosePopupAt(int32_t window_id) override;
private:
+ // window ID -> open context menu
std::map<int32_t, std::unique_ptr<views::MenuRunner>> menu_runners_;
+
base::WeakPtrFactory<MenuViews> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(MenuViews);