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

version 1.30, 2002/04/10 07:46:37 version 1.32, 2002/04/12 19:45:37
Line 194  nsCocoaBrowserListener::CreateChromeWind Line 194  nsCocoaBrowserListener::CreateChromeWind
 NS_IMETHODIMP  NS_IMETHODIMP
 nsCocoaBrowserListener::OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent* aEvent, nsIDOMNode* aNode)  nsCocoaBrowserListener::OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent* aEvent, nsIDOMNode* aNode)
 {  {
     [mContainer onShowContextMenu: aContextFlags domEvent: aEvent domNode: aNode];
   return NS_OK;    return NS_OK;
 }  }
   
Line 1222  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 1232  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
 {  {
Line 1365  nsHeaderSniffer::OnSecurityChange(nsIWeb Line 1367  nsHeaderSniffer::OnSecurityChange(nsIWeb
     else      else
         wbf->Deactivate();          wbf->Deactivate();
 }  }
   
   -(NSMenu*)getContextMenu
   {
     return [[self superview] getContextMenu];
   }
 @end  @end
   

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


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