specify positioning item for popup menus

This commit is contained in:
evgenyzinoviev 2016-01-22 03:18:04 +01:00
parent 7842a657d0
commit 072ab0ddea
7 changed files with 20 additions and 10 deletions

View file

@ -52,7 +52,8 @@ class Menu : public mate::TrackableObject<Menu>,
void MenuWillShow(ui::SimpleMenuModel* source) override;
virtual void Popup(Window* window) = 0;
virtual void PopupAt(Window* window, int x, int y) = 0;
virtual void PopupAt(Window* window, int x, int y,
int positioningItem = 0) = 0;
scoped_ptr<AtomMenuModel> model_;
Menu* parent_;