Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: views/controls/menu/native_menu_gtk.h

Issue 1237004: Views: fix a crash where in the browser actions container.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/browser_actions_container.cc ('k') | views/controls/menu/native_menu_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/native_menu_gtk.h
===================================================================
--- views/controls/menu/native_menu_gtk.h (revision 42514)
+++ views/controls/menu/native_menu_gtk.h (working copy)
@@ -9,6 +9,7 @@
#include <vector>
+#include "app/gtk_signal.h"
#include "base/task.h"
#include "views/controls/menu/menu_wrapper.h"
@@ -43,10 +44,9 @@
virtual void RemoveMenuListener(MenuListener* listener);
private:
- static void OnMenuHidden(GtkWidget* widget, NativeMenuGtk* menu);
- static void OnMenuMoveCurrent(GtkMenu* widget,
- GtkMenuDirectionType focus_direction,
- NativeMenuGtk* menu);
+ CHROMEGTK_CALLBACK_0(NativeMenuGtk, void, OnMenuHidden);
+ CHROMEGTK_CALLBACK_1(NativeMenuGtk, void, OnMenuMoveCurrent,
+ GtkMenuDirectionType);
void AddSeparatorAt(int index);
GtkWidget* AddMenuItemAt(int index, GtkRadioMenuItem* radio_group,
« no previous file with comments | « chrome/browser/views/browser_actions_container.cc ('k') | views/controls/menu/native_menu_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698