Struct xpcom::interfaces::nsIFakePluginTag [] [src]

#[repr(C)]
pub struct nsIFakePluginTag { /* fields omitted */ }

interface nsIFakePluginTag : nsIPluginTag

/**
 * An interface representing a "fake" plugin: one implemented in JavaScript, not
 * as a NPAPI plug-in.  See nsIPluginHost.registerFakePlugin and the
 * documentation for the FakePluginTagInit dictionary.
 */

Methods

impl nsIFakePluginTag
[src]

[src]

Cast this nsIFakePluginTag to one of its base interfaces.

impl nsIFakePluginTag
[src]

[src]

/**
   * The URI that should be loaded into the tag (as a frame) to handle the
   * plugin. Note that the original data/src value for the plugin is not loaded
   * and will need to be requested by the handler via XHR or similar if desired.
   */

readonly attribute nsIURI handlerURI;

[src]

/**
   * Optional script to run in a sandbox when instantiating a plugin. If this
   * value is an empty string then no such script will be run.
   * The script runs in a sandbox with system principal in the process that
   * contains the element that instantiates the plugin (ie the EMBED or OBJECT
   * element). The sandbox global has a 'pluginElement' property that the script
   * can use to access the element that instantiates the plugin.
   */

readonly attribute AString sandboxScript;

[src]

/**
   * A unique id for this JS-implemented plugin. 0 is a valid id.
   */

readonly attribute unsigned long id;

Methods from Deref<Target = nsIPluginTag>

[src]

Cast this nsIPluginTag to one of its base interfaces.

[src]

readonly attribute AUTF8String description;

[src]

readonly attribute AUTF8String filename;

[src]

readonly attribute AUTF8String fullpath;

[src]

readonly attribute AUTF8String version;

[src]

readonly attribute AUTF8String name;

[src]

readonly attribute AUTF8String niceName;

[src]

/**
   * true only if this plugin is "hardblocked" and cannot be enabled.
   */

readonly attribute boolean blocklisted;

[src]

/**
   * true if the state is non-default and locked, false otherwise.
   */

readonly attribute boolean isEnabledStateLocked;

[src]

readonly attribute boolean active;

[src]

readonly attribute unsigned long blocklistState;

[src]

readonly attribute boolean disabled;

[src]

readonly attribute boolean clicktoplay;

[src]

readonly attribute boolean loaded;

[src]

attribute unsigned long enabledState;

[src]

attribute unsigned long enabledState;

[src]

readonly attribute PRTime lastModifiedTime;

[src]

void getMimeTypes ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults);

[src]

void getMimeDescriptions ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults);

[src]

void getExtensions ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aResults);

Trait Implementations

impl XpCom for nsIFakePluginTag
[src]

IID: nsIID = nsID(1830996328, 8813, 16726, [178, 48, 218, 106, 214, 187, 246, 232])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIFakePluginTag
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIFakePluginTag
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.