Add callback parameter to Menu.popup
This commit is contained in:
parent
2e3d940749
commit
7b01a8b860
6 changed files with 31 additions and 16 deletions
|
@ -54,7 +54,8 @@ class Menu : public mate::TrackableObject<Menu>,
|
|||
void MenuWillShow(ui::SimpleMenuModel* source) override;
|
||||
void MenuClosed(ui::SimpleMenuModel* source) override;
|
||||
|
||||
virtual void PopupAt(Window* window, int x, int y, int positioning_item) = 0;
|
||||
virtual void PopupAt(Window* window, int x, int y, int positioning_item,
|
||||
const base::Closure& callback) = 0;
|
||||
virtual void ClosePopupAt(int32_t window_id) = 0;
|
||||
|
||||
std::unique_ptr<AtomMenuModel> model_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue