diff --git a/browser/api/atom_api_menu_win.cc b/browser/api/atom_api_menu_win.cc index d5690d56c6a..05d13335665 100644 --- a/browser/api/atom_api_menu_win.cc +++ b/browser/api/atom_api_menu_win.cc @@ -4,7 +4,7 @@ #include "browser/api/atom_api_menu_win.h" -#include "ui/views/controls/menu/menu_2.h" +#include "browser/ui/win/menu_2.h" #include "ui/gfx/point.h" namespace atom { @@ -19,7 +19,7 @@ MenuWin::~MenuWin() { } void MenuWin::Popup(NativeWindow* native_window) { - menu_.reset(new views::Menu2(model_.get())); + menu_.reset(new atom::Menu2(model_.get())); menu_->RunContextMenuAt(gfx::Point(0, 0)); } diff --git a/browser/api/atom_api_menu_win.h b/browser/api/atom_api_menu_win.h index 380b6b62ff8..dbc09dfa032 100644 --- a/browser/api/atom_api_menu_win.h +++ b/browser/api/atom_api_menu_win.h @@ -7,12 +7,10 @@ #include "browser/api/atom_api_menu.h" -namespace views { -class Menu2; -} - namespace atom { +class Menu2; + namespace api { class MenuWin : public Menu { @@ -24,7 +22,7 @@ class MenuWin : public Menu { virtual void Popup(NativeWindow* window) OVERRIDE; private: - scoped_ptr menu_; + scoped_ptr menu_; DISALLOW_COPY_AND_ASSIGN(MenuWin); };