Diff for /chimera/MyBrowserView.mm between versions 1.32 and 1.33

version 1.32, 2002/04/17 19:33:46 version 1.33, 2002/04/20 00:02:55
Line 94  static const char* ioServiceContractID = Line 94  static const char* ioServiceContractID =
     [browserView setActive: NO];      [browserView setActive: NO];
 }  }
   
   -(id)initWithTab:(id)aTab andWindow: (NSWindow*)aWindow
   {
     mTab = aTab;
     mWindow = aWindow;
     return [self initWithFrame: NSZeroRect];
   }
   
 - (id)initWithFrame:(NSRect)frameRect  - (id)initWithFrame:(NSRect)frameRect
 {  {
     [super initWithFrame: frameRect];      [super initWithFrame: frameRect];
     browserView = [[[NSBrowserView alloc] initWithFrame:[self bounds]] autorelease];    browserView = [[[NSBrowserView alloc] initWithFrame:[self bounds] andWindow: [self getNativeWindow]] autorelease];
     [self addSubview:browserView];      [self addSubview:browserView];
     [browserView setContainer:self];      [browserView setContainer:self];
     [browserView addListener:self];      [browserView addListener:self];
Line 121  static const char* ioServiceContractID = Line 128  static const char* ioServiceContractID =
   mWindowController = aWindowController;    mWindowController = aWindowController;
       
   if (!mIsBusy)    if (!mIsBusy)
      [progress removeFromSuperview];    [progress removeFromSuperview];
       
   defaultStatus = NULL;    defaultStatus = NULL;
   loadingStatus = DOCUMENT_DONE_STRING;    loadingStatus = DOCUMENT_DONE_STRING;
Line 205  static const char* ioServiceContractID = Line 212  static const char* ioServiceContractID =
       
   if (mWindowController)    if (mWindowController)
     [mWindowController updateToolbarItems];      [mWindowController updateToolbarItems];
     else {
       printf("background load.\n");
     }
 }  }
   
 - (void)onLoadingCompleted:(BOOL)succeeded  - (void)onLoadingCompleted:(BOOL)succeeded
Line 317  static const char* ioServiceContractID = Line 327  static const char* ioServiceContractID =
   return [mWindowController getContextMenu];    return [mWindowController getContextMenu];
 }  }
   
   -(NSWindow*)getNativeWindow
   {
     NSWindow* window = [self window];
     if (window)
       return window;
   
     if (mWindow)
       return mWindow;
     
     return nil;
   }
   
 - (void)offlineModeChanged: (NSNotification*)aNotification  - (void)offlineModeChanged: (NSNotification*)aNotification
 {  {
     nsCOMPtr<nsIIOService> ioService(do_GetService(ioServiceContractID));      nsCOMPtr<nsIIOService> ioService(do_GetService(ioServiceContractID));

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


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