dom/src/base/nsGlobalWindow.cpp - Revision 1.464

There were 8 changes made.
Legend
   Added lines
   Changed lines
   Removed lines

dom/src/base/nsGlobalWindow.cpp,1.464
.
Disk File
Skipping to line 121. 
#include "nsPIWindowWatcher.h"
.
#include "nsPIWindowWatcher.h"
#include "nsIContentViewer.h"
.
#include "nsIContentViewer.h"
#include "nsISupportsPrimitives.h"
.
#include "nsISupportsPrimitives.h"
#include "nsDOMClassInfo.h"
.
#include "nsDOMClassInfo.h"
#include "nsIJSNativeInitializer.h"
.
#include "nsIJSNativeInitializer.h"
 
.
#include "nsIPrintSettings.h"
 
.
 
#include "nsWindowRoot.h"
.
#include "nsWindowRoot.h"
 
.
 
// XXX An unfortunate dependency exists here (two XUL files).
.
// XXX An unfortunate dependency exists here (two XUL files).
#include "nsIDOMXULDocument.h"
.
#include "nsIDOMXULDocument.h"
Skipping to line 1959. 
{
.
{
  nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mDocShell));
.
  nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mDocShell));
  return webNav->Stop(nsIWebNavigation::STOP_ALL);
.
  return webNav->Stop(nsIWebNavigation::STOP_ALL);
}
.
}
 
.
 
nsresult GlobalWindowImpl::DoPrint(PRBool aDoPreview)
.
nsresult GlobalWindowImpl::DoPrint(nsIPrintSettings* aPrintSettings, 
 
.
                                   PRBool            aDoPreview)
{
.
{
  if (mDocShell) {
.
  if (mDocShell) {
    nsCOMPtr<nsIContentViewer> viewer;
.
    nsCOMPtr<nsIContentViewer> viewer;
    mDocShell->GetContentViewer(getter_AddRefs(viewer));
.
    mDocShell->GetContentViewer(getter_AddRefs(viewer));
    if (viewer) {
.
    if (viewer) {
Skipping to line 1972. 
      if (viewerFile) {
.
      if (viewerFile) {
        if (aDoPreview) {
.
        if (aDoPreview) {
          return viewerFile->PrintPreview();
.
          return viewerFile->PrintPreview(aPrintSettings);
        } else {
.
        } else {
          return viewerFile->Print(PR_FALSE, nsnull);
.
          return viewerFile->Print(PR_FALSE, aPrintSettings, nsnull);
        }
.
        }
      }
.
      }
    }
.
    }
  }
.
  }
  return NS_OK;
.
  return NS_OK;
Skipping to line 1983. 
 
.
 
NS_IMETHODIMP GlobalWindowImpl::Print()
.
NS_IMETHODIMP GlobalWindowImpl::Print(nsIPrintSettings* aPrintSettings)
{
.
{
  return DoPrint(PR_FALSE);
.
  return DoPrint(aPrintSettings, PR_FALSE);
}
.
}
 
.
 
NS_IMETHODIMP GlobalWindowImpl::PrintPreview()
 
.
NS_IMETHODIMP GlobalWindowImpl::PrintPreview(nsIPrintSettings* aPrintSettings)
{
.
{
  return DoPrint(PR_TRUE);
.
  return DoPrint(aPrintSettings, PR_TRUE);
}
.
}
 
.
 
NS_IMETHODIMP GlobalWindowImpl::MoveTo(PRInt32 aXPos, PRInt32 aYPos)
.
NS_IMETHODIMP GlobalWindowImpl::MoveTo(PRInt32 aXPos, PRInt32 aYPos)
{
.
{
  nsCOMPtr<nsIBaseWindow> treeOwnerAsWin;
.
  nsCOMPtr<nsIBaseWindow> treeOwnerAsWin;