Permalink
Browse files

initial mac solution

  • Loading branch information...
redmunds committed Jun 11, 2013
1 parent 537e1d0 commit c2a88fbc8fe881292167d15fbf3cec6fac715740
Showing with 4 additions and 0 deletions.
  1. +4 −0 appshell/cefclient_mac.mm
@@ -78,6 +78,7 @@ - (void)sendEvent:(NSEvent*)event {
// itself when done.
@interface ClientWindowDelegate : NSObject <NSWindowDelegate> {
BOOL isReallyClosing;
+ ExtensionString lastMenuParentId;
}
- (void)setIsReallyClosing;
- (IBAction)handleMenuAction:(id)sender;
@@ -125,6 +126,9 @@ - (IBAction)handleMenuAction:(id)sender {
}
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
+ // Notify that menu is being popped up
+ g_handler->SendJSCommand(g_handler->GetBrowser(), APP_BEFORE_MENUPOPUP);
+
NSInteger menuState = NSOffState;
NSUInteger tag = [menuItem tag];
NativeMenuModel menus = NativeMenuModel::getInstance(getMenuParent(g_handler->GetBrowser()));

0 comments on commit c2a88fb

Please sign in to comment.