summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 21:08:51 +0000
committerpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 21:08:51 +0000
commit8765a818db4bc9439d074f06ee47f030bf26c5b8 (patch)
tree1e6b1c9f68f5f75b92aea55fe992e5e873c11963 /views
parent8e1c977763fc9639c61ceea719e4058c47ed9a9a (diff)
downloadchromium_src-8765a818db4bc9439d074f06ee47f030bf26c5b8.zip
chromium_src-8765a818db4bc9439d074f06ee47f030bf26c5b8.tar.gz
chromium_src-8765a818db4bc9439d074f06ee47f030bf26c5b8.tar.bz2
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
Diffstat (limited to 'views')
-rw-r--r--views/controls/menu/native_menu_gtk.cc2
1 files changed, 2 insertions, 0 deletions
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() {