Bumping gaia.json for 1 gaia revision(s) a=gaia-bump
[gecko.git] / dom / canvas / DocumentRendererParent.h
blob3c1513178ee93fa2f5ac43c29d2d11f7c41bdfa8
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"
9 #include "nsCOMPtr.h"
10 #include "nsString.h"
11 #include "gfxContext.h"
13 class nsICanvasRenderingContextInternal;
15 namespace mozilla {
16 namespace ipc {
18 class DocumentRendererParent : public PDocumentRendererParent
20 public:
21 DocumentRendererParent();
22 virtual ~DocumentRendererParent();
24 void SetCanvasContext(nsICanvasRenderingContextInternal* aCanvas,
25 gfxContext* ctx);
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;
34 private:
35 nsCOMPtr<nsICanvasRenderingContextInternal> mCanvas;
36 nsRefPtr<gfxContext> mCanvasContext;
38 DISALLOW_EVIL_CONSTRUCTORS(DocumentRendererParent);
44 #endif