Diff for /chimera/NSBrowserView.mm between versions 1.27 and 1.29

version 1.27, 2002/03/15 16:18:34 version 1.29, 2002/04/08 22:30:20
Line 696  nsHeaderSniffer::OnStateChange(nsIWebPro Line 696  nsHeaderSniffer::OnStateChange(nsIWebPro
 {  {
     if (aStateFlags & nsIWebProgressListener::STATE_START) {      if (aStateFlags & nsIWebProgressListener::STATE_START) {
         nsCOMPtr<nsIChannel> channel(do_QueryInterface(aRequest));          nsCOMPtr<nsIChannel> channel(do_QueryInterface(aRequest));
        nsXPIDLCString contentType;        channel->GetContentType(mContentType);
        channel->GetContentType(getter_Copies(contentType));       
        mContentType = contentType; 
         
         // Get the content-disposition if we're an HTTP channel.          // Get the content-disposition if we're an HTTP channel.
         nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));          nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
        if (httpChannel) {        if (httpChannel)
            nsXPIDLCString disp;            httpChannel->GetResponseHeader(nsCAutoString("content-disposition"), mContentDisposition);
            httpChannel->GetResponseHeader("content-disposition", getter_Copies(disp)); 
            mContentDisposition = disp; 
        } 
                   
         mPersist->CancelSave();          mPersist->CancelSave();
         PRBool exists;          PRBool exists;
Line 1216  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1211  nsHeaderSniffer::OnSecurityChange(nsIWeb
     print->Print(nsnull, nsnull);      print->Print(nsnull, nsnull);
 }  }
   
-(void)findInPage-(void)findInPage:(NSString*)inText
 {  {
     FindDlgController* findDialog = [[FindDlgController alloc] initWithWindowNibName: @"FindDialog"];  
     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 1231  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1225  nsHeaderSniffer::OnSecurityChange(nsIWeb
     framesFind->SetRootSearchFrame(rootWindow);      framesFind->SetRootSearchFrame(rootWindow);
     framesFind->SetCurrentSearchFrame(focusedWindow);      framesFind->SetCurrentSearchFrame(focusedWindow);
           
    [findDialog setFind: webFind];    PRUnichar* text = (PRUnichar*)nsMemory::Alloc(([inText length]+1)*sizeof(PRUnichar));
    [findDialog showWindow: findDialog];    if ( text ) {
       [inText getCharacters:text];
       text[[inText length]] = 0;
       webFind->SetSearchString(text);
       PRBool found;
       webFind->FindNext(&found);
       nsMemory::Free(text);
     }
 }  }
   
 -(void)findAgain  -(void)findAgain

Removed from v.1.27  
changed lines
  Added in v.1.29


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