From 90f86714b644b440b7815bb011f29d1c6b5ffe53 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Fri, 12 Apr 2002 09:39:59 +0000 Subject: [PATCH] Context menu code tweaking. NPOB. Cocoa only. git-svn-id: svn://10.0.0.236/trunk@118838 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/cocoa/nsChildView.h | 2 ++ mozilla/widget/src/cocoa/nsChildView.mm | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mozilla/widget/src/cocoa/nsChildView.h b/mozilla/widget/src/cocoa/nsChildView.h index 9195533f7e3..1f691fe5c7c 100644 --- a/mozilla/widget/src/cocoa/nsChildView.h +++ b/mozilla/widget/src/cocoa/nsChildView.h @@ -94,6 +94,8 @@ class nsIEventSink; isChar:(PRBool*)outIsChar toGeckoEvent:(nsKeyEvent*)outGeckoEvent; +-(NSMenu*)getContextMenu; + @end diff --git a/mozilla/widget/src/cocoa/nsChildView.mm b/mozilla/widget/src/cocoa/nsChildView.mm index 1a0694db931..1df85b76c24 100644 --- a/mozilla/widget/src/cocoa/nsChildView.mm +++ b/mozilla/widget/src/cocoa/nsChildView.mm @@ -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: