]> git.sesse.net Git - vlc/blobdiff - mozilla/vlcpeer.h
Update my entry
[vlc] / mozilla / vlcpeer.h
index 971434b16964fb460b3761a08104465510c23c30..2f3c053d82586e391f25fd3f98fcbe30cf985ee8 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
- * vlcpeer.h: a VideoLAN plugin for Mozilla
+ * vlcpeer.h: scriptable peer descriptor
  *****************************************************************************
- * Copyright (C) 2002 VideoLAN
- * $Id: vlcpeer.h,v 1.1 2002/09/17 08:18:24 sam Exp $
+ * Copyright (C) 2002-2005 the VideoLAN team
+ * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -22,9 +22,7 @@
  *****************************************************************************/
 
 #include "vlcintf.h"
-#include "classinfo.h"
-
-#include "nsMemory.h"
+#include "support/classinfo.h"
 
 class VlcPlugin;
 
@@ -34,13 +32,25 @@ public:
     NS_DECL_ISUPPORTS
     NS_DECL_VLCINTF
 
-    VlcPeer();
-    VlcPeer( VlcPlugin * );
-
-    void Disable() { p_plugin = NULL; }
-          
+    // 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();
-    /* additional members */
+
+    void     Disable();
 
 private:
     VlcPlugin * p_plugin;