dom/plugins/ipc/PluginSurfaceParent.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 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef dom_plugins_PluginSurfaceParent_h
     7 #define dom_plugins_PluginSurfaceParent_h
     9 #include "mozilla/plugins/PPluginSurfaceParent.h"
    10 #include "nsAutoPtr.h"
    11 #include "mozilla/plugins/PluginMessageUtils.h"
    13 #ifndef XP_WIN
    14 #error "This header is for Windows only."
    15 #endif
    17 class gfxASurface;
    19 namespace mozilla {
    20 namespace plugins {
    22 class PluginSurfaceParent : public PPluginSurfaceParent
    23 {
    24 public:
    25   PluginSurfaceParent(const WindowsSharedMemoryHandle& handle,
    26                       const gfxIntSize& size,
    27                       const bool transparent);
    28   ~PluginSurfaceParent();
    30   gfxASurface* Surface() { return mSurface; }
    32 private:
    33   nsRefPtr<gfxASurface> mSurface;
    34 };
    36 } // namespace plugins
    37 } // namespace mozilla
    39 #endif // dom_plugin_PluginSurfaceParent_h

mercurial