author Josh Aas <>
Fri, 02 May 2014 13:44:13 -0500
changeset 200619 023830b8ad98412b2d004421f2034390f0dde2da
parent 168065 6e221af28de237792c2a19ce2974656b0395a714
permissions -rw-r--r--
Bug 960774: Add ActorDestroy impl for all parent-side actors that don't have one. It will be required soon. r=bent

/* 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 */

#ifndef mozilla_dom_DocumentRendererParent
#define mozilla_dom_DocumentRendererParent

#include "mozilla/ipc/PDocumentRendererParent.h"
#include "nsCOMPtr.h"
#include "nsString.h"
#include "gfxContext.h"

class nsICanvasRenderingContextInternal;

namespace mozilla {
namespace ipc {

class DocumentRendererParent : public PDocumentRendererParent
    virtual ~DocumentRendererParent();

    void SetCanvasContext(nsICanvasRenderingContextInternal* aCanvas,
			  gfxContext* ctx);
    void DrawToCanvas(const nsIntSize& renderedSize,
		      const nsCString& aData);

    virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;

    virtual bool Recv__delete__(const nsIntSize& renderedSize,
                                const nsCString& data) MOZ_OVERRIDE;

    nsCOMPtr<nsICanvasRenderingContextInternal> mCanvas;
    nsRefPtr<gfxContext> mCanvasContext;