first pass at menu event emission

This commit is contained in:
Shelley Vohr 2018-01-27 09:35:58 -05:00
parent 39554566cc
commit 3399480304
No known key found for this signature in database
GPG key ID: F13993A75599653C
6 changed files with 29 additions and 5 deletions

View file

@ -36,8 +36,11 @@ class AtomMenuModel : public ui::SimpleMenuModel {
public:
virtual ~Observer() {}
// Notifies the menu will open.
virtual void OnMenuWillShow() {}
// Notifies the menu has been closed.
virtual void MenuWillClose() {}
virtual void OnMenuWillClose() {}
};
explicit AtomMenuModel(Delegate* delegate);
@ -54,6 +57,7 @@ class AtomMenuModel : public ui::SimpleMenuModel {
// ui::SimpleMenuModel:
void MenuWillClose() override;
void MenuWillShow() override;
using SimpleMenuModel::GetSubmenuModelAt;
AtomMenuModel* GetSubmenuModelAt(int index);