2006-02-07 01:12:54 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-02-07 01:12:54 +00:00
|
|
|
|
|
|
|
#include "nsPrintSession.h"
|
|
|
|
|
2016-01-05 10:08:57 +00:00
|
|
|
#include "mozilla/layout/RemotePrintJobChild.h"
|
|
|
|
|
|
|
|
typedef mozilla::layout::RemotePrintJobChild RemotePrintJobChild;
|
|
|
|
|
2006-02-07 01:12:54 +00:00
|
|
|
//*****************************************************************************
|
|
|
|
//*** nsPrintSession
|
|
|
|
//*****************************************************************************
|
|
|
|
|
2014-04-27 07:06:00 +00:00
|
|
|
NS_IMPL_ISUPPORTS(nsPrintSession, nsIPrintSession, nsISupportsWeakReference)
|
2006-02-07 01:12:54 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
nsPrintSession::nsPrintSession()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
nsPrintSession::~nsPrintSession()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
nsresult nsPrintSession::Init()
|
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
2016-01-05 10:08:57 +00:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsPrintSession::GetRemotePrintJob(RemotePrintJobChild** aRemotePrintJob)
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(aRemotePrintJob);
|
|
|
|
RefPtr<RemotePrintJobChild> result = mRemotePrintJob;
|
|
|
|
result.forget(aRemotePrintJob);
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsPrintSession::SetRemotePrintJob(RemotePrintJobChild* aRemotePrintJob)
|
|
|
|
{
|
|
|
|
mRemotePrintJob = aRemotePrintJob;
|
|
|
|
return NS_OK;
|
|
|
|
}
|