#include "atom/browser/ui/win/notify_icon.h"
-#include "atom/browser/ui/win/menu_2.h"
#include "atom/browser/ui/win/notify_icon_host.h"
+#include "atom/browser/ui/win/menu_2.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/windows_version.h"
if (!SetForegroundWindow(window_))
return;
- scoped_ptr<Menu2> menu(new Menu2(menu_model_));
- menu->RunContextMenuAt(cursor_pos);
+ menu_.reset(new Menu2(menu_model_));
+ menu_->RunContextMenuAt(cursor_pos);
}
void NotifyIcon::ResetIcon() {
namespace atom {
+class Menu2;
class NotifyIconHost;
class NotifyIcon : public TrayIcon {
// The context menu.
ui::SimpleMenuModel* menu_model_;
+ scoped_ptr<atom::Menu2> menu_;
DISALLOW_COPY_AND_ASSIGN(NotifyIcon);
};