FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
NpapiPluginX11.h
1 /**********************************************************\
2 Original Author: Richard Bateman (taxilian)
3  Richard Prescott (rdprescott)
4 
5 Created: Dec 3, 2009
6 License: Dual license model; choose one of two:
7  New BSD License
8  http://www.opensource.org/licenses/bsd-license.php
9  - or -
10  GNU Lesser General Public License, version 2.1
11  http://www.gnu.org/licenses/lgpl-2.1.html
12 
13 Copyright 2009 PacketPass, Inc and the Firebreath development team
14 \**********************************************************/
15 
16 #pragma once
17 #ifndef H_FB_NPAPI_NPAPIPLUGINX11
18 #define H_FB_NPAPI_NPAPIPLUGINX11
19 
20 #include "NpapiPlugin.h"
21 
22 namespace FB {
23  class PluginWindowX11;
24  namespace Npapi {
25 
26  class NpapiPluginX11 : public NpapiPlugin
27  {
28  public:
29  NpapiPluginX11(const NpapiBrowserHostPtr& host, const std::string& mimetype);
30  virtual ~NpapiPluginX11(void);
31 
32  protected:
33  FB::PluginWindowX11 *pluginWin;
34 
35  public:
36  // These calls are proxied from the NpapiPluginModule to this object, and are
37  // the NPP_ functions given to the browser; essentially, the entrypoints for the
38  // plugin instance
39  NPError SetWindow(NPWindow* window);
40  virtual NPError GetValue(NPPVariable variable, void *);
41  };
42 
43 }; }; // FB::Npapi
44 
45 #endif
46 
X11 specific implementation of PluginWindow.