Diff for /chimera/BrowserWindowController.mm between versions 1.63 and 1.64

version 1.63, 2002/04/14 21:41:21 version 1.64, 2002/04/16 00:28:33
Line 44 Line 44
 #include "nsIDOMEvent.h"  #include "nsIDOMEvent.h"
 #include "nsIPrefBranch.h"  #include "nsIPrefBranch.h"
 #include "nsIContextMenuListener.h"  #include "nsIContextMenuListener.h"
   #include "nsIDOMWindow.h"
   #include "nsIScriptGlobalObject.h"
   #include "nsIDocShell.h"
   #include "nsIMarkupDocumentViewer.h"
   #include "nsIContentViewer.h"
 #include "nsCocoaBrowserService.h"  #include "nsCocoaBrowserService.h"
 #include "nsString.h"  #include "nsString.h"
 #include "GeckoUtils.h"  #include "GeckoUtils.h"
Line 714  static NSString *PrintToolbarItemIdentif Line 719  static NSString *PrintToolbarItemIdentif
   mChromeMask = aMask;    mChromeMask = aMask;
 }  }
   
   -(void) biggerTextSize
   {
     nsCOMPtr<nsIDOMWindow> contentWindow = getter_AddRefs([[mBrowserView getBrowserView] getContentWindow]);
     nsCOMPtr<nsIScriptGlobalObject> global(do_QueryInterface(contentWindow));
     if (!global)
       return;
     nsCOMPtr<nsIDocShell> docShell;
     global->GetDocShell(getter_AddRefs(docShell));
     if (!docShell)
       return;
     nsCOMPtr<nsIContentViewer> cv;
     docShell->GetContentViewer(getter_AddRefs(cv));
     nsCOMPtr<nsIMarkupDocumentViewer> markupViewer(do_QueryInterface(cv));
     if (!markupViewer)
       return;
     float zoom;
     markupViewer->GetTextZoom(&zoom);
     if (zoom >= 20)
       return;
     
     zoom += 0.25;
     if (zoom > 20)
       zoom = 20;
     
     markupViewer->SetTextZoom(zoom);
   }
   
   -(void) smallerTextSize
   {
     nsCOMPtr<nsIDOMWindow> contentWindow = getter_AddRefs([[mBrowserView getBrowserView] getContentWindow]);
     nsCOMPtr<nsIScriptGlobalObject> global(do_QueryInterface(contentWindow));
     if (!global)
       return;
     nsCOMPtr<nsIDocShell> docShell;
     global->GetDocShell(getter_AddRefs(docShell));
     if (!docShell)
       return;
     nsCOMPtr<nsIContentViewer> cv;
     docShell->GetContentViewer(getter_AddRefs(cv));
     nsCOMPtr<nsIMarkupDocumentViewer> markupViewer(do_QueryInterface(cv));
     if (!markupViewer)
       return;
     float zoom;
     markupViewer->GetTextZoom(&zoom);
     if (zoom <= 0.01)
       return;
   
     zoom -= 0.25;
     if (zoom < 0.01)
       zoom = 0.01;
   
     markupViewer->SetTextZoom(zoom);
   }
   
 -(id)getAddBookmarkSheetWindow  -(id)getAddBookmarkSheetWindow
 {  {
   return mAddBookmarkSheetWindow;    return mAddBookmarkSheetWindow;

Removed from v.1.63  
changed lines
  Added in v.1.64


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