mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Context menu code tweaking. NPOB. Cocoa only.
This commit is contained in:
parent
c0fb3c144e
commit
e230e9cb84
@ -94,6 +94,8 @@ class nsIEventSink;
|
||||
isChar:(PRBool*)outIsChar
|
||||
toGeckoEvent:(nsKeyEvent*)outGeckoEvent;
|
||||
|
||||
-(NSMenu*)getContextMenu;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user