michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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 dom_plugins_PluginSurfaceParent_h michael@0: #define dom_plugins_PluginSurfaceParent_h michael@0: michael@0: #include "mozilla/plugins/PPluginSurfaceParent.h" michael@0: #include "nsAutoPtr.h" michael@0: #include "mozilla/plugins/PluginMessageUtils.h" michael@0: michael@0: #ifndef XP_WIN michael@0: #error "This header is for Windows only." michael@0: #endif michael@0: michael@0: class gfxASurface; michael@0: michael@0: namespace mozilla { michael@0: namespace plugins { michael@0: michael@0: class PluginSurfaceParent : public PPluginSurfaceParent michael@0: { michael@0: public: michael@0: PluginSurfaceParent(const WindowsSharedMemoryHandle& handle, michael@0: const gfxIntSize& size, michael@0: const bool transparent); michael@0: ~PluginSurfaceParent(); michael@0: michael@0: gfxASurface* Surface() { return mSurface; } michael@0: michael@0: private: michael@0: nsRefPtr mSurface; michael@0: }; michael@0: michael@0: } // namespace plugins michael@0: } // namespace mozilla michael@0: michael@0: #endif // dom_plugin_PluginSurfaceParent_h