mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 14:20:14 +02:00
We now proxy progress updates from the child up to the parent over IPC. --HG-- extra : rebase_source : a66557462e013ccf2b6e253c4b401d6baa0baa01
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/* vim: set sw=4 ts=8 et tw=80 : */
|
|
/* 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 mozilla_embedding_PrintingParent_h
|
|
#define mozilla_embedding_PrintingParent_h
|
|
|
|
#include "mozilla/dom/PBrowserParent.h"
|
|
#include "mozilla/embedding/PPrintingParent.h"
|
|
#include "mozilla/embedding/PPrintProgressDialogParent.h"
|
|
|
|
class nsIDOMWindow;
|
|
|
|
namespace mozilla {
|
|
namespace embedding {
|
|
|
|
class PrintingParent MOZ_FINAL : public PPrintingParent
|
|
{
|
|
public:
|
|
virtual bool
|
|
RecvShowProgress(PBrowserParent* parent,
|
|
PPrintProgressDialogParent* printProgressDialog,
|
|
const bool& isForPrinting,
|
|
bool* notifyOnOpen,
|
|
bool* success);
|
|
virtual bool
|
|
RecvShowPrintDialog(PBrowserParent* parent,
|
|
const PrintData& initSettings,
|
|
PrintData* retVal,
|
|
bool* success);
|
|
|
|
virtual PPrintProgressDialogParent*
|
|
AllocPPrintProgressDialogParent();
|
|
|
|
virtual bool
|
|
DeallocPPrintProgressDialogParent(PPrintProgressDialogParent* aActor);
|
|
|
|
virtual void
|
|
ActorDestroy(ActorDestroyReason aWhy);
|
|
|
|
MOZ_IMPLICIT PrintingParent();
|
|
virtual ~PrintingParent();
|
|
|
|
private:
|
|
nsIDOMWindow*
|
|
DOMWindowFromBrowserParent(PBrowserParent* parent);
|
|
};
|
|
} // namespace embedding
|
|
} // namespace mozilla
|
|
|
|
#endif
|
|
|