Context menu code tweaking. NPOB. Cocoa only.

git-svn-id: svn://10.0.0.236/trunk@118838 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2002-04-12 09:39:59 +00:00
parent 28fafaf8a8
commit 90f86714b6
2 changed files with 7 additions and 1 deletions

View File

@@ -94,6 +94,8 @@ class nsIEventSink;
isChar:(PRBool*)outIsChar
toGeckoEvent:(nsKeyEvent*)outGeckoEvent;
-(NSMenu*)getContextMenu;
@end

View File

@@ -1707,9 +1707,13 @@ nsChildView::GetQuickDrawPort()
mGeckoChild->DispatchMouseEvent(geckoEvent);
// Go up our view chain to fetch the correct menu to return.
return [[self superview] getContextMenu];
return [self getContextMenu];
}
-(NSMenu*)getContextMenu
{
return [[self superview] getContextMenu];
}
//
// initWithGeckoChild:eventSink: