Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #include "nsPrintSession.h"
7 :
8 : #include "mozilla/layout/RemotePrintJobChild.h"
9 :
10 : typedef mozilla::layout::RemotePrintJobChild RemotePrintJobChild;
11 :
12 : //*****************************************************************************
13 : //*** nsPrintSession
14 : //*****************************************************************************
15 :
16 0 : NS_IMPL_ISUPPORTS(nsPrintSession, nsIPrintSession, nsISupportsWeakReference)
17 :
18 : //-----------------------------------------------------------------------------
19 0 : nsPrintSession::nsPrintSession()
20 : {
21 0 : }
22 :
23 : //-----------------------------------------------------------------------------
24 0 : nsPrintSession::~nsPrintSession()
25 : {
26 0 : }
27 :
28 : //-----------------------------------------------------------------------------
29 0 : nsresult nsPrintSession::Init()
30 : {
31 0 : return NS_OK;
32 : }
33 :
34 : NS_IMETHODIMP
35 0 : nsPrintSession::GetRemotePrintJob(RemotePrintJobChild** aRemotePrintJob)
36 : {
37 0 : MOZ_ASSERT(aRemotePrintJob);
38 0 : RefPtr<RemotePrintJobChild> result = mRemotePrintJob;
39 0 : result.forget(aRemotePrintJob);
40 0 : return NS_OK;
41 : }
42 :
43 : NS_IMETHODIMP
44 0 : nsPrintSession::SetRemotePrintJob(RemotePrintJobChild* aRemotePrintJob)
45 : {
46 0 : mRemotePrintJob = aRemotePrintJob;
47 0 : return NS_OK;
48 : }
|