Diff for /chimera/NSBrowserView.mm between versions 1.15 and 1.16

version 1.15, 2002/02/05 09:51:56 version 1.16, 2002/02/05 10:16:31
Line 1182  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1182  nsHeaderSniffer::OnSecurityChange(nsIWeb
   
 -(void)findInPage  -(void)findInPage
 {  {
     NSLog(@"Got here?!");  
     FindDlgController* findDialog = [[FindDlgController alloc] initWithWindowNibName: @"FindDialog"];      FindDlgController* findDialog = [[FindDlgController alloc] initWithWindowNibName: @"FindDialog"];
       nsCOMPtr<nsIWebBrowserFocus> wbf(do_QueryInterface(_webBrowser));
       nsCOMPtr<nsIDOMWindow> rootWindow;
       nsCOMPtr<nsIDOMWindow> focusedWindow;
       _webBrowser->GetContentDOMWindow(getter_AddRefs(rootWindow));
       wbf->GetFocusedWindow(getter_AddRefs(focusedWindow));
       if (!focusedWindow)
           focusedWindow = rootWindow;
       nsCOMPtr<nsIWebBrowserFind> webFind(do_GetInterface(_webBrowser));
       nsCOMPtr<nsIWebBrowserFindInFrames> framesFind(do_QueryInterface(webFind));
       framesFind->SetRootSearchFrame(rootWindow);
       framesFind->SetCurrentSearchFrame(focusedWindow);
       
       [findDialog setFind: webFind];
     [findDialog showWindow: findDialog];      [findDialog showWindow: findDialog];
 }  }
   

Removed from v.1.15  
changed lines
  Added in v.1.16


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