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

version 1.21, 2002/02/25 08:44:17 version 1.22, 2002/03/07 18:35:48
Line 8 Line 8
 #include "nsCOMPtr.h"  #include "nsCOMPtr.h"
 #include "nsIServiceManager.h"  #include "nsIServiceManager.h"
 #include "nsIIOService.h"  #include "nsIIOService.h"
   #include "ContentClickListener.h"
   #include "nsIDOMWindow.h"
   #include "nsIChromeEventHandler.h"
   #include "nsPIDOMWindow.h"
   #include "nsIDOMEventReceiver.h"
   
 #define DOCUMENT_DONE_STRING @"Document: Done"  #define DOCUMENT_DONE_STRING @"Document: Done"
 #define LOADING_STRING @"Loading..."  #define LOADING_STRING @"Loading..."
Line 61  static const char* ioServiceContractID = Line 66  static const char* ioServiceContractID =
     [browserView setContainer:self];      [browserView setContainer:self];
     [browserView addListener:self];      [browserView addListener:self];
     mIsBusy = NO;      mIsBusy = NO;
       mListenersAttached = NO;
     return self;      return self;
 }  }
   
Line 98  static const char* ioServiceContractID = Line 104  static const char* ioServiceContractID =
                   
   // Update the URL bar.    // Update the URL bar.
   [mWindowController updateLocationFields:[self getCurrentURLSpec]];    [mWindowController updateLocationFields:[self getCurrentURLSpec]];
     
     if (mWindowController && !mListenersAttached) {
       mListenersAttached = YES;
       
       // We need to hook up our click and context menu listeners.
       ContentClickListener* clickListener = new ContentClickListener(mWindowController);
       if (!clickListener)
         return;
       
       nsCOMPtr<nsIDOMWindow> contentWindow = getter_AddRefs([[self getBrowserView] getContentWindow]);
       nsCOMPtr<nsPIDOMWindow> piWindow(do_QueryInterface(contentWindow));
       nsCOMPtr<nsIChromeEventHandler> chromeHandler;
       piWindow->GetChromeEventHandler(getter_AddRefs(chromeHandler));
       nsCOMPtr<nsIDOMEventReceiver> rec(do_QueryInterface(chromeHandler));
       rec->AddEventListenerByIID(clickListener, NS_GET_IID(nsIDOMMouseListener));
     }
 }  }
   
 -(NSString*)getCurrentURLSpec  -(NSString*)getCurrentURLSpec

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


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