win: Fix building

This commit is contained in:
Cheng Zhao 2014-10-13 22:47:13 +08:00
parent b717add81b
commit 643d1dcdd1

View file

@ -60,14 +60,13 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos,
if (!SetForegroundWindow(window_)) if (!SetForegroundWindow(window_))
return; return;
views::MenuRunner menu_runner(menu_model_); views::MenuRunner menu_runner(menu_model_, views::MenuRunner::CONTEXT_MENU);
ignore_result(menu_runner.RunMenuAt( ignore_result(menu_runner.RunMenuAt(
NULL, NULL,
NULL, NULL,
gfx::Rect(cursor_pos, gfx::Size()), gfx::Rect(cursor_pos, gfx::Size()),
views::MENU_ANCHOR_TOPLEFT, views::MENU_ANCHOR_TOPLEFT,
ui::MENU_SOURCE_MOUSE, ui::MENU_SOURCE_MOUSE));
views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU));
} }
void NotifyIcon::ResetIcon() { void NotifyIcon::ResetIcon() {