Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
DOMPluginImpl Class Reference
Inheritance diagram for DOMPluginImpl:
Inheritance graph
Collaboration diagram for DOMPluginImpl:
Collaboration graph

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS DOMPluginImpl (nsPluginTag *aPluginTag)
virtual ~DOMPluginImpl ()
NS_METHOD GetDescription (nsAString &aDescription)
NS_METHOD GetFilename (nsAString &aFilename)
NS_METHOD GetName (nsAString &aName)
NS_METHOD GetLength (PRUint32 *aLength)
NS_METHOD Item (PRUint32 aIndex, nsIDOMMimeType **aReturn)
NS_METHOD NamedItem (const nsAString &aName, nsIDOMMimeType **aReturn)
nsIDOMMimeType item (in unsigned long index)
nsIDOMMimeType namedItem (in DOMString name)

Public Attributes

readonly attribute DOMString description
readonly attribute DOMString filename
readonly attribute DOMString name
readonly attribute unsigned long length

Private Attributes

nsPluginTag mPluginTag
nsCOMPtr< nsIUnicodeDecodermUnicodeDecoder

Detailed Description

Definition at line 4324 of file nsPluginHostImpl.cpp.

Constructor & Destructor Documentation

Definition at line 4328 of file nsPluginHostImpl.cpp.

Here is the call graph for this function:

virtual DOMPluginImpl::~DOMPluginImpl ( ) [inline, virtual]

Definition at line 4333 of file nsPluginHostImpl.cpp.


Member Function Documentation

NS_METHOD DOMPluginImpl::GetDescription ( nsAString &  aDescription) [inline]

Definition at line 4336 of file nsPluginHostImpl.cpp.

Here is the call graph for this function:

NS_METHOD DOMPluginImpl::GetFilename ( nsAString &  aFilename) [inline]

Definition at line 4342 of file nsPluginHostImpl.cpp.

    PRBool bShowPath;
    nsCOMPtr<nsIPrefBranch> prefService = do_GetService(NS_PREFSERVICE_CONTRACTID);
    if (prefService &&
        NS_SUCCEEDED(prefService->GetBoolPref("plugin.expose_full_path",&bShowPath)) &&
      // only show the full path if people have set the pref,
      // the default should not reveal path information (bug 88183)
#if defined(XP_MACOSX)
      return DoCharsetConversion(mUnicodeDecoder, mPluginTag.mFullPath, aFilename);
      return DoCharsetConversion(mUnicodeDecoder, mPluginTag.mFileName, aFilename);

    const char* spec;
    if (mPluginTag.mFullPath)
#if !defined(XP_MACOSX)
      NS_ERROR("Only MAC should be using nsPluginTag::mFullPath!");
      spec = mPluginTag.mFullPath;
      spec = mPluginTag.mFileName;

    nsCString leafName;
    nsCOMPtr<nsILocalFile> pluginPath;
    NS_NewNativeLocalFile(nsDependentCString(spec), PR_TRUE,


    nsresult rv = DoCharsetConversion(mUnicodeDecoder, leafName.get(), aFilename);
    return rv;

Here is the call graph for this function:

NS_METHOD DOMPluginImpl::GetLength ( PRUint32 aLength) [inline]

Definition at line 4389 of file nsPluginHostImpl.cpp.

    *aLength = mPluginTag.mVariants;
    return NS_OK;
NS_METHOD DOMPluginImpl::GetName ( nsAString &  aName) [inline]

Definition at line 4383 of file nsPluginHostImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsIDOMMimeType nsIDOMPlugin::item ( in unsigned long  index) [inherited]
NS_METHOD DOMPluginImpl::Item ( PRUint32  aIndex,
nsIDOMMimeType **  aReturn 
) [inline]

Definition at line 4395 of file nsPluginHostImpl.cpp.

    nsIDOMMimeType* mimeType = new DOMMimeTypeImpl(&mPluginTag, aIndex);
    *aReturn = mimeType;
    return NS_OK;
nsIDOMMimeType nsIDOMPlugin::namedItem ( in DOMString  name) [inherited]
NS_METHOD DOMPluginImpl::NamedItem ( const nsAString &  aName,
nsIDOMMimeType **  aReturn 
) [inline]

Definition at line 4403 of file nsPluginHostImpl.cpp.

    for (int index = mPluginTag.mVariants - 1; index >= 0; --index) {
      if (aName.Equals(NS_ConvertASCIItoUCS2(mPluginTag.mMimeTypeArray[index])))
        return Item(index, aReturn);
    return NS_OK;

Member Data Documentation

readonly attribute DOMString nsIDOMPlugin::description [inherited]

Definition at line 45 of file nsIDOMPlugin.idl.

readonly attribute DOMString nsIDOMPlugin::filename [inherited]

Definition at line 46 of file nsIDOMPlugin.idl.

readonly attribute unsigned long nsIDOMPlugin::length [inherited]

Definition at line 49 of file nsIDOMPlugin.idl.

Definition at line 4413 of file nsPluginHostImpl.cpp.

Definition at line 4414 of file nsPluginHostImpl.cpp.

readonly attribute DOMString nsIDOMPlugin::name [inherited]

Definition at line 47 of file nsIDOMPlugin.idl.

The documentation for this class was generated from the following file: