dom/plugins/ipc/PluginSurfaceParent.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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