Diff for /chimera/NSBrowserView.mm between versions 1.31 and 1.32

version 1.31, 2002/04/12 09:56:34 version 1.32, 2002/04/12 19:45:37
Line 1223  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1223  nsHeaderSniffer::OnSecurityChange(nsIWeb
     print->Print(nsnull, nsnull);      print->Print(nsnull, nsnull);
 }  }
   
-(void)findInPage:(NSString*)inText-(BOOL)findInPage:(NSString*)inText
 {  {
       PRBool found =  PR_FALSE;
       
     nsCOMPtr<nsIWebBrowserFocus> wbf(do_QueryInterface(_webBrowser));      nsCOMPtr<nsIWebBrowserFocus> wbf(do_QueryInterface(_webBrowser));
     nsCOMPtr<nsIDOMWindow> rootWindow;      nsCOMPtr<nsIDOMWindow> rootWindow;
     nsCOMPtr<nsIDOMWindow> focusedWindow;      nsCOMPtr<nsIDOMWindow> focusedWindow;
Line 1233  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1235  nsHeaderSniffer::OnSecurityChange(nsIWeb
     if (!focusedWindow)      if (!focusedWindow)
         focusedWindow = rootWindow;          focusedWindow = rootWindow;
     nsCOMPtr<nsIWebBrowserFind> webFind(do_GetInterface(_webBrowser));      nsCOMPtr<nsIWebBrowserFind> webFind(do_GetInterface(_webBrowser));
    nsCOMPtr<nsIWebBrowserFindInFrames> framesFind(do_QueryInterface(webFind));    if ( webFind ) {
    framesFind->SetRootSearchFrame(rootWindow);      nsCOMPtr<nsIWebBrowserFindInFrames> framesFind(do_QueryInterface(webFind));
    framesFind->SetCurrentSearchFrame(focusedWindow);      framesFind->SetRootSearchFrame(rootWindow);
          framesFind->SetCurrentSearchFrame(focusedWindow);
    PRUnichar* text = (PRUnichar*)nsMemory::Alloc(([inText length]+1)*sizeof(PRUnichar));      
    if ( text ) {      PRUnichar* text = (PRUnichar*)nsMemory::Alloc(([inText length]+1)*sizeof(PRUnichar));
      [inText getCharacters:text];      if ( text ) {
      text[[inText length]] = 0;        [inText getCharacters:text];
      webFind->SetSearchString(text);        text[[inText length]] = 0;
      PRBool found;        webFind->SetSearchString(text);
      webFind->FindNext(&found);        webFind->FindNext(&found);
      nsMemory::Free(text);        nsMemory::Free(text);
       }
     }      }
       return found;
 }  }
   
 -(void)findAgain  
 {  
 }  
   
 -(void)saveDocument: (NSView*)aFilterView filterList: (NSPopUpButton*)aFilterList  -(void)saveDocument: (NSView*)aFilterView filterList: (NSPopUpButton*)aFilterList
 {  {

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


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