X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=projects%2Fmozilla%2Fvlcplugin.h;h=cb6132a6558672fcd6e21ee3f3a1542284734d42;hb=32b31e87d90967549e5cc8bef18d5aae7e3b98c6;hp=071dbabd28d4a4e6adf1ccbd9765c3b572bfc2b9;hpb=900e1dcdd57e1755b085cca4ab7d0078e261f363;p=vlc diff --git a/projects/mozilla/vlcplugin.h b/projects/mozilla/vlcplugin.h index 071dbabd28..cb6132a655 100644 --- a/projects/mozilla/vlcplugin.h +++ b/projects/mozilla/vlcplugin.h @@ -1,11 +1,12 @@ /***************************************************************************** * vlcplugin.h: a VLC plugin for Mozilla ***************************************************************************** - * Copyright (C) 2002-2006 the VideoLAN team + * Copyright (C) 2002-2008 the VideoLAN team * $Id$ * * Authors: Samuel Hocevar - Damien Fouilleul + * Damien Fouilleul + * Jean-Paul Saman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,7 +29,7 @@ #ifndef __VLCPLUGIN_H__ #define __VLCPLUGIN_H__ -#include +#include #include #include "control/nporuntime.h" @@ -66,6 +67,18 @@ # define __MIN(a, b) ( ((a) < (b)) ? (a) : (b) ) #endif +typedef enum vlc_toolbar_clicked_e { + clicked_Unknown = 0, + clicked_Play, + clicked_Pause, + clicked_Stop, + clicked_timeline, + clicked_Time, + clicked_Fullscreen, + clicked_Mute, + clicked_Unmute +} vlc_toolbar_clicked_t; + class VlcPlugin { public: @@ -115,6 +128,7 @@ public: { *width = i_tb_width; *height = i_tb_height; }; int setToolbarSize(unsigned int width, unsigned int height) { i_tb_width = width; i_tb_height = height; return 1; }; + vlc_toolbar_clicked_t getToolbarButtonClicked( int i_xpos, int i_ypos ); #endif uint16 i_npmode; /* either NP_EMBED or NP_FULL */ @@ -209,7 +223,10 @@ private: "video/divx:divx:DivX video;" \ /* FLV */ \ "video/flv:flv:FLV video;" \ - "video/x-flv:flv:FLV video;" + "video/x-flv:flv:FLV video;" \ + /* Matroska */ \ + "video/x-matroska:mkv:Matroska video;" \ + "audio/x-matroska:mka:Matroska audio;"