mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
6f25ba1878
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
39 lines
1.1 KiB
C++
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_
|