1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_dom_DocumentRendererParent
6 #define mozilla_dom_DocumentRendererParent
8 #include "mozilla/ipc/PDocumentRendererParent.h"
11 #include "gfxContext.h"
13 class nsICanvasRenderingContextInternal
;
18 class DocumentRendererParent
: public PDocumentRendererParent
21 DocumentRendererParent();
22 virtual ~DocumentRendererParent();
24 void SetCanvasContext(nsICanvasRenderingContextInternal
* aCanvas
,
26 void DrawToCanvas(const nsIntSize
& renderedSize
,
27 const nsCString
& aData
);
29 virtual void ActorDestroy(ActorDestroyReason aWhy
) MOZ_OVERRIDE
;
31 virtual bool Recv__delete__(const nsIntSize
& renderedSize
,
32 const nsCString
& data
) MOZ_OVERRIDE
;
35 nsCOMPtr
<nsICanvasRenderingContextInternal
> mCanvas
;
36 nsRefPtr
<gfxContext
> mCanvasContext
;
38 DISALLOW_EVIL_CONSTRUCTORS(DocumentRendererParent
);