Diff for /chimera/MyBrowserView.mm between versions 1.18 and 1.21

version 1.18, 2002/02/13 01:58:55 version 1.21, 2002/02/25 08:44:17
Line 3 Line 3
  */   */
   
 #import "MyBrowserView.h"  #import "MyBrowserView.h"
   #import "BrowserWindowController.h"
   
 #include "nsCOMPtr.h"  #include "nsCOMPtr.h"
 #include "nsIServiceManager.h"  #include "nsIServiceManager.h"
Line 49  static const char* ioServiceContractID = Line 50  static const char* ioServiceContractID =
     mIsPrimary = NO;      mIsPrimary = NO;
     [[NSNotificationCenter defaultCenter] removeObserver:self];      [[NSNotificationCenter defaultCenter] removeObserver:self];
           
    //[browserView setActive: NO];    [browserView setActive: NO];
 }  }
   
 - (id)initWithFrame:(NSRect)frameRect  - (id)initWithFrame:(NSRect)frameRect
Line 73  static const char* ioServiceContractID = Line 74  static const char* ioServiceContractID =
   progressSuper = [aProgress superview];    progressSuper = [aProgress superview];
   mWindowController = aWindowController;    mWindowController = aWindowController;
       
  if (!mIsBusy) {  if (!mIsBusy)
    [progress retain];      [progress removeFromSuperview];
    [progress removeFromSuperview]; 
  } 
       
   defaultStatus = NULL;    defaultStatus = NULL;
   loadingStatus = DOCUMENT_DONE_STRING;    loadingStatus = DOCUMENT_DONE_STRING;
Line 99  static const char* ioServiceContractID = Line 98  static const char* ioServiceContractID =
                   
   // Update the URL bar.    // Update the URL bar.
   [mWindowController updateLocationFields:[self getCurrentURLSpec]];    [mWindowController updateLocationFields:[self getCurrentURLSpec]];
     
   //[browserView setActive: YES];  
 }  }
   
 -(NSString*)getCurrentURLSpec  -(NSString*)getCurrentURLSpec
Line 132  static const char* ioServiceContractID = Line 129  static const char* ioServiceContractID =
   }    }
   
   [progressSuper addSubview:progress];    [progressSuper addSubview:progress];
   [progress release];  
   [progress setIndeterminate:YES];    [progress setIndeterminate:YES];
   [progress startAnimation:self];    [progress startAnimation:self];
   
Line 150  static const char* ioServiceContractID = Line 146  static const char* ioServiceContractID =
 {  {
   [progress setIndeterminate:YES];    [progress setIndeterminate:YES];
   [progress stopAnimation:self];    [progress stopAnimation:self];
   [progress retain];  
   [progress removeFromSuperview];    [progress removeFromSuperview];
   
   loadingStatus = DOCUMENT_DONE_STRING;    loadingStatus = DOCUMENT_DONE_STRING;
Line 283  static const char* ioServiceContractID = Line 278  static const char* ioServiceContractID =
   
 - (NSBrowserView*)createBrowserWindow:(unsigned int)mask  - (NSBrowserView*)createBrowserWindow:(unsigned int)mask
 {  {
  // XXX not implemented   BrowserWindowController* controller = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];
  return NULL;  [controller enterModalSession];
   return [[controller getMyBrowserView] getBrowserView];
 }  }
   
 - (NSBrowserView*)getBrowserView  - (NSBrowserView*)getBrowserView

Removed from v.1.18  
changed lines
  Added in v.1.21


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