gecko-dev/widget/windows/PDFiumChild.h
cku 6f25ba1878 Bug 1399787 - Part 10. Make PrintTargetEMF use the PDFium process to convert to EMF. r=jwatt
We integrate PrintTargetEMF with the PDFium process to convert PDF into EMF in
this patch.

MozReview-Commit-ID: 5F0setrL94n

--HG--
extra : rebase_source : 1e52adbbe7502ca081c7029a15e4b3f486beb284
extra : source : 28f1671230fa70125e6971c9a287cb0658b89496
2017-11-05 03:06:04 +08:00

39 lines
1.1 KiB
C++

/* -*- 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/. */
#ifndef PDFIUMCHILD_H_
#define PDFIUMCHILD_H_
#include "mozilla/widget/PPDFiumChild.h"
namespace mozilla {
namespace widget {
class PDFiumChild final : public PPDFiumChild,
public mozilla::ipc::IShmemAllocator
{
public:
PDFiumChild();
virtual ~PDFiumChild();
bool Init(base::ProcessId aParentPid,
MessageLoop* aIOLoop,
IPC::Channel* aChannel);
FORWARD_SHMEM_ALLOCATOR_TO(PPDFiumChild)
private:
// PPDFiumChild functions.
mozilla::ipc::IPCResult RecvConvertToEMF(const FileDescriptor& aFD,
const int& aPageWidth,
const int& aPageHeight) override;
void ActorDestroy(ActorDestroyReason aWhy) override;
void OnChannelConnected(int32_t pid) override;
};
} // namespace widget
} // namespace mozilla
#endif // PDFIUMCHILD_H_