Chromium Code Reviews| Index: ui/views/controls/menu/menu_host.cc |
| diff --git a/ui/views/controls/menu/menu_host.cc b/ui/views/controls/menu/menu_host.cc |
| index 23060d7b14506d1ae5000c79a5179543e9f7cc8c..44d2f62543d5557d7c9a79634de62f9eb8039b67 100644 |
| --- a/ui/views/controls/menu/menu_host.cc |
| +++ b/ui/views/controls/menu/menu_host.cc |
| @@ -108,4 +108,11 @@ void MenuHost::OnNativeWidgetDestroyed() { |
| Widget::OnNativeWidgetDestroyed(); |
| } |
| +void MenuHost::OnOwnerClosing() { |
|
oshima
2012/04/26 15:03:07
can you add comment that this is invoked only on w
|
| + MenuController* menu_controller = |
|
oshima
2012/04/26 15:03:07
can you add comment that this is used only on Wind
|
| + submenu_->GetMenuItem()->GetMenuController(); |
| + if (menu_controller && !menu_controller->drag_in_progress()) |
| + menu_controller->CancelAll(); |
| +} |
| + |
| } // namespace views |