diff --git a/mozilla/widget/src/mac/nsMacMessagePump.h b/mozilla/widget/src/mac/nsMacMessagePump.h index c500f76560e..707fe68d58f 100644 --- a/mozilla/widget/src/mac/nsMacMessagePump.h +++ b/mozilla/widget/src/mac/nsMacMessagePump.h @@ -75,9 +75,10 @@ private: PRBool DispatchOSEventToRaptor(EventRecord &anEvent, WindowPtr aWindow); PRBool DispatchMenuCommandToRaptor(EventRecord &anEvent, long menuResult); -public: +private: typedef void (*nsWindowlessMenuEventHandler) (PRInt32 menuResult); static nsWindowlessMenuEventHandler gWindowlessMenuEventHandler; +public: static void SetWindowlessMenuEventHandler(nsWindowlessMenuEventHandler func) {gWindowlessMenuEventHandler = func;} };