dom/plugins/ipc/PluginSurfaceParent.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:2da866163c4d
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/. */
5
6 #ifndef dom_plugins_PluginSurfaceParent_h
7 #define dom_plugins_PluginSurfaceParent_h
8
9 #include "mozilla/plugins/PPluginSurfaceParent.h"
10 #include "nsAutoPtr.h"
11 #include "mozilla/plugins/PluginMessageUtils.h"
12
13 #ifndef XP_WIN
14 #error "This header is for Windows only."
15 #endif
16
17 class gfxASurface;
18
19 namespace mozilla {
20 namespace plugins {
21
22 class PluginSurfaceParent : public PPluginSurfaceParent
23 {
24 public:
25 PluginSurfaceParent(const WindowsSharedMemoryHandle& handle,
26 const gfxIntSize& size,
27 const bool transparent);
28 ~PluginSurfaceParent();
29
30 gfxASurface* Surface() { return mSurface; }
31
32 private:
33 nsRefPtr<gfxASurface> mSurface;
34 };
35
36 } // namespace plugins
37 } // namespace mozilla
38
39 #endif // dom_plugin_PluginSurfaceParent_h

mercurial