nsPrintSession.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #include "nsPrintSession.h"
  6. #include "mozilla/layout/RemotePrintJobChild.h"
  7. typedef mozilla::layout::RemotePrintJobChild RemotePrintJobChild;
  8. //*****************************************************************************
  9. //*** nsPrintSession
  10. //*****************************************************************************
  11. NS_IMPL_ISUPPORTS(nsPrintSession, nsIPrintSession, nsISupportsWeakReference)
  12. //-----------------------------------------------------------------------------
  13. nsPrintSession::nsPrintSession()
  14. {
  15. }
  16. //-----------------------------------------------------------------------------
  17. nsPrintSession::~nsPrintSession()
  18. {
  19. }
  20. //-----------------------------------------------------------------------------
  21. nsresult nsPrintSession::Init()
  22. {
  23. return NS_OK;
  24. }
  25. NS_IMETHODIMP
  26. nsPrintSession::GetRemotePrintJob(RemotePrintJobChild** aRemotePrintJob)
  27. {
  28. MOZ_ASSERT(aRemotePrintJob);
  29. RefPtr<RemotePrintJobChild> result = mRemotePrintJob;
  30. result.forget(aRemotePrintJob);
  31. return NS_OK;
  32. }
  33. NS_IMETHODIMP
  34. nsPrintSession::SetRemotePrintJob(RemotePrintJobChild* aRemotePrintJob)
  35. {
  36. mRemotePrintJob = aRemotePrintJob;
  37. return NS_OK;
  38. }