/*****************************************************************************
* vlcpeer.h: scriptable peer descriptor
*****************************************************************************
- * Copyright (C) 2002 VideoLAN
- * $Id: vlcpeer.h,v 1.3 2003/04/09 16:18:36 sam Exp $
+ * Copyright (C) 2002-2005 the VideoLAN team
+ * $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
NS_DECL_ISUPPORTS
NS_DECL_VLCINTF
+ // These flags are used by the DOM and security systems to signal that
+ // JavaScript callers are allowed to call this object's scriptable methods.
+ NS_IMETHOD GetFlags(PRUint32 *aFlags)
+ {
+ *aFlags = nsIClassInfo::PLUGIN_OBJECT | nsIClassInfo::DOM_OBJECT;
+ return NS_OK;
+ }
+
+ NS_IMETHOD GetImplementationLanguage(PRUint32 *aImplementationLanguage)
+ {
+ *aImplementationLanguage = nsIProgrammingLanguage::CPLUSPLUS;
+ return NS_OK;
+ }
+
VlcPeer();
VlcPeer( VlcPlugin * );
virtual ~VlcPeer();