Commit bcfe7241 authored by jonross's avatar jonross Committed by Commit bot

Turn Mash Window Example Context Menu Async

Update the mash windowing example app to use async context menus.

TEST=manually test example app
BUG=557136

Review-Url: https://codereview.chromium.org/2275783002
Cr-Commit-Position: refs/heads/master@{#414470}
parent 15b235a3
...@@ -446,14 +446,10 @@ class WindowTypeLauncherView : public views::WidgetDelegateView, ...@@ -446,14 +446,10 @@ class WindowTypeLauncherView : public views::WidgetDelegateView,
MenuItemView::NORMAL); MenuItemView::NORMAL);
// MenuRunner takes ownership of root. // MenuRunner takes ownership of root.
menu_runner_.reset(new MenuRunner( menu_runner_.reset(new MenuRunner(
root, MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU)); root, MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU |
if (menu_runner_->RunMenuAt(GetWidget(), views::MenuRunner::ASYNC));
NULL, menu_runner_->RunMenuAt(GetWidget(), NULL, gfx::Rect(point, gfx::Size()),
gfx::Rect(point, gfx::Size()), views::MENU_ANCHOR_TOPLEFT, source_type);
views::MENU_ANCHOR_TOPLEFT,
source_type) == MenuRunner::MENU_DELETED) {
return;
}
} }
WindowTypeLauncher* window_type_launcher_; WindowTypeLauncher* window_type_launcher_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment