]> git.sesse.net Git - vlc/blobdiff - mozilla/vlcplugin.h
Makefile.am: Make sure VLC.app will be installed correctly. (Or make sure we won...
[vlc] / mozilla / vlcplugin.h
index dd27718feeb702bee94de796afd3cc2290b7cccc..6d48bf3bb8f13f385427d8070312ad25e6b36c3a 100644 (file)
 #   include <X11/Xlib.h>
 #   include <X11/Intrinsic.h>
 #   include <X11/StringDefs.h>
+#   include <X11/X.h>
 #endif
 
 class VlcPlugin
 {
 public:
-             VlcPlugin( NPP, uint16 ); 
+             VlcPlugin( NPP, uint16 );
     virtual ~VlcPlugin();
 
     NPError             init(int argc, char* const argn[], char* const argv[]);
-    libvlc_instance_t*  getVLC() 
+    libvlc_instance_t*  getVLC()
                             { return libvlc_instance; };
     NPP                 getBrowser()
                             { return p_browser; };
@@ -87,6 +88,14 @@ public:
 
 #if XP_UNIX
     int                 setSize(unsigned width, unsigned height);
+    Window              getVideoWindow()
+                            { return npvideo; };
+    void                setVideoWindow(Window window)
+                            { npvideo = window; };
+    Window              getControlWindow()
+                            { return npcontrol; };
+    void                setControlWindow(Window window)
+                            { npcontrol = window; };
 #endif
 
     uint16    i_npmode; /* either NP_EMBED or NP_FULL */
@@ -113,6 +122,7 @@ private:
 #endif
 #if XP_UNIX
     unsigned int     i_width, i_height;
+    Window           npvideo, npcontrol;
 #endif
 };
 
@@ -151,6 +161,7 @@ private:
     "video/x-ms-asf:asf,asx:Windows Media Video;" \
     "application/x-mplayer2::Windows Media;" \
     "video/x-ms-wmv:wmv:Windows Media;" \
+    "video/x-ms-wvx:wvx:Windows Media Video;" \
     /* Google VLC */ \
     "application/x-google-vlc-plugin::Google VLC plugin;" \
     /* WAV audio */ \
@@ -162,5 +173,7 @@ private:
     /* 3GPP2 */ \
     "audio/3gpp2:3g2,3gpp2:3GPP2 audio;" \
     "video/3gpp2:3g2,3gpp2:3GPP2 video;" \
+    /* DIVX */ \
+    "video/divx:divx:DivX video;"
 
 #endif