michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_DocumentRendererParent michael@0: #define mozilla_dom_DocumentRendererParent michael@0: michael@0: #include "mozilla/ipc/PDocumentRendererParent.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsString.h" michael@0: #include "gfxContext.h" michael@0: michael@0: class nsICanvasRenderingContextInternal; michael@0: michael@0: namespace mozilla { michael@0: namespace ipc { michael@0: michael@0: class DocumentRendererParent : public PDocumentRendererParent michael@0: { michael@0: public: michael@0: DocumentRendererParent(); michael@0: virtual ~DocumentRendererParent(); michael@0: michael@0: void SetCanvasContext(nsICanvasRenderingContextInternal* aCanvas, michael@0: gfxContext* ctx); michael@0: void DrawToCanvas(const nsIntSize& renderedSize, michael@0: const nsCString& aData); michael@0: michael@0: virtual bool Recv__delete__(const nsIntSize& renderedSize, michael@0: const nsCString& data); michael@0: michael@0: private: michael@0: nsCOMPtr mCanvas; michael@0: nsRefPtr mCanvasContext; michael@0: michael@0: DISALLOW_EVIL_CONSTRUCTORS(DocumentRendererParent); michael@0: }; michael@0: michael@0: } michael@0: } michael@0: michael@0: #endif