From 8765a818db4bc9439d074f06ee47f030bf26c5b8 Mon Sep 17 00:00:00 2001 From: "piman@google.com" Date: Fri, 11 Feb 2011 21:08:51 +0000 Subject: Fix MenuClosed on views+gtk This is necessary to get context menus working in Pepper. MenuClosed is called on views+win and native gtk, so this seems like the right thing to do. BUG=none TEST=Ran Pepper Flash on a Chrome OS build, made sure context menus work Review URL: http://codereview.chromium.org/6250098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74666 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/menu/native_menu_gtk.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'views') diff --git a/views/controls/menu/native_menu_gtk.cc b/views/controls/menu/native_menu_gtk.cc index e816d49..2dd5fd4 100644 --- a/views/controls/menu/native_menu_gtk.cc +++ b/views/controls/menu/native_menu_gtk.cc @@ -143,6 +143,8 @@ void NativeMenuGtk::RunMenuAt(const gfx::Point& point, int alignment) { activate_factory_.NewRunnableMethod( &NativeMenuGtk::ProcessActivate)); } + + model_->MenuClosed(); } void NativeMenuGtk::CancelMenu() { -- cgit v1.1