widget/windows/PPDFium.ipdl
author David Major <dmajor@mozilla.com>
Mon, 09 Jul 2018 18:22:45 -0400
changeset 425566 827519f9d0326f76f524061cddff306a56f51255
parent 395537 18536826735456ebddb4ddc4b71bba009d8a4eaf
permissions -rw-r--r--
Bug 1463190 - Add forced-MSVC builds to CI to keep that platform green. r=ted

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

namespace mozilla {
namespace widget {


/**
 * A protocol for communicating with the PDFium processes. Useful for
 * converting a PDF file to EMF contents.
 *
 * PDFium processes are created on-demand as necessary.
 */
protocol PPDFium
{
parent:
  /**
   * Called by the PDFium process once the PDF has been converted to EMF.
   */
  async ConvertToEMFDone(nsresult aResult, Shmem aEMFContents);

child:
  /**
   * Start to convert a PDF file to EMF contents.
   */
  async ConvertToEMF(FileDescriptor aFD, int aPageWidth, int aPageHeight);
};

} // namespace widget
} // namespace mozilla