Allow positioning the context menu

This commit is contained in:
Joao Moreno 2014-11-25 16:47:41 +01:00
parent 03f19bea6b
commit 46e6b5ec3e
7 changed files with 40 additions and 5 deletions

View file

@ -6,6 +6,7 @@
#define ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_
#include "atom/browser/api/atom_api_menu.h"
#include "ui/gfx/screen.h"
namespace atom {
@ -17,8 +18,10 @@ class MenuViews : public Menu {
protected:
virtual void Popup(Window* window) OVERRIDE;
virtual void PopupAt(Window* window, int x, int y) OVERRIDE;
private:
void PopupAtPoint(Window* window, gfx::Point point);
DISALLOW_COPY_AND_ASSIGN(MenuViews);
};