content/canvas/public/DocumentRendererParent.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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
    19 {
    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 bool Recv__delete__(const nsIntSize& renderedSize,
    30                                 const nsCString& data);
    32 private:
    33     nsCOMPtr<nsICanvasRenderingContextInternal> mCanvas;
    34     nsRefPtr<gfxContext> mCanvasContext;
    36     DISALLOW_EVIL_CONSTRUCTORS(DocumentRendererParent);
    37 };
    39 }
    40 }
    42 #endif

mercurial