Diff for /chimera/NSBrowserView.mm between versions 1.33 and 1.34

version 1.33, 2002/04/14 08:43:03 version 1.34, 2002/04/20 00:02:55
Line 919  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 919  nsHeaderSniffer::OnSecurityChange(nsIWeb
   
 @implementation NSBrowserView  @implementation NSBrowserView
   
   - (id)initWithFrame:(NSRect)frame andWindow:(NSWindow*)aWindow
   {
     mWindow = aWindow;
     return [self initWithFrame:frame];
   }
   
 - (id)initWithFrame:(NSRect)frame  - (id)initWithFrame:(NSRect)frame
 {  {
   [super initWithFrame:frame];    [super initWithFrame:frame];
Line 1387  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1393  nsHeaderSniffer::OnSecurityChange(nsIWeb
 {  {
   return [[self superview] getContextMenu];    return [[self superview] getContextMenu];
 }  }
   
   -(NSWindow*)getNativeWindow
   {
     NSWindow* result = [self window];
     if (result)
       return result; // We're visible.  Just hand the window back.
     else {
       // We're invisible.  It's likely that we're in a Cocoa tab view.
       // First see if we have a cached window.
       if (mWindow)
         return mWindow;
       
       // Finally, see if our parent responds to the getNativeWindow selector,
       // and if they do, let them handle it.
       return [[self superview] getNativeWindow];
     }
   }
   
 @end  @end
   

Removed from v.1.33  
changed lines
  Added in v.1.34


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>