]> git.sesse.net Git - vlc/blob - projects/mozilla/control/npovlc.h
Mozilla : use \n
[vlc] / projects / mozilla / control / npovlc.h
1 /*****************************************************************************
2  * npovlc.h: deprecated APIs implemented in late XPCOM interface
3  *****************************************************************************
4  * Copyright (C) 2002-2006 the VideoLAN team
5  *
6  * Authors: Damien Fouilleul <damien.fouilleul@laposte.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21  *****************************************************************************/
22
23 /*
24 ** defined runtime script objects
25 */
26
27 #include "nporuntime.h"
28
29 class VlcNPObject: public RuntimeNPObject
30 {
31 protected:
32     friend class RuntimeNPClass<VlcNPObject>;
33
34     VlcNPObject(NPP instance, const NPClass *aClass) :
35         RuntimeNPObject(instance, aClass) {};
36     virtual ~VlcNPObject() {};
37
38     static const int propertyCount;
39     static const NPUTF8 * const propertyNames[];
40
41     static const int methodCount;
42     static const NPUTF8 * const methodNames[];
43
44     virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
45 };
46