]> git.sesse.net Git - vlc/blobdiff - mozilla/vlcpeer.h
Get rid of the UNTRUE conditionnal
[vlc] / mozilla / vlcpeer.h
index 40b345bbd7ed8c7c38497460c7e23cadc9f54360..2f3c053d82586e391f25fd3f98fcbe30cf985ee8 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
  * 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>
  *
@@ -32,6 +32,20 @@ public:
     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();