From c25791879fa9c3bebf2184d1a701836e4b9a1dfd Mon Sep 17 00:00:00 2001 From: Andre Pang Date: Thu, 2 Dec 2004 16:07:24 +0000 Subject: [PATCH] Make Mozilla plugin scriptable (e.g. so that the Javascript 'onclick' attributes in chapter 7 of the VLC user guide actually work ;). --- mozilla/vlcpeer.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mozilla/vlcpeer.h b/mozilla/vlcpeer.h index d963e8a3e2..9c6188e068 100644 --- a/mozilla/vlcpeer.h +++ b/mozilla/vlcpeer.h @@ -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 scritable 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(); -- 2.39.5