Make variables private instead of protected
This commit is contained in:
parent
2006e22aa4
commit
a8d1a7aed4
2 changed files with 7 additions and 3 deletions
|
@ -29,14 +29,16 @@ class MenuMac : public Menu {
|
|||
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);
|
||||
|
|
|
@ -26,7 +26,9 @@ class MenuViews : public Menu {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue