Struct xpcom::interfaces::nsIBlocklistPrompt [] [src]

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

interface nsIBlocklistPrompt : nsISupports

/**
 * nsIBlocklistPrompt is used, if available, by the default implementation of
 * nsIBlocklistService to display a confirmation UI to the user before blocking
 * extensions/plugins.
 */

Methods

impl nsIBlocklistPrompt
[src]

[src]

Cast this nsIBlocklistPrompt to one of its base interfaces.

impl nsIBlocklistPrompt
[src]

[src]

/**
   * Prompt the user about newly blocked addons. The prompt is then resposible
   * for soft-blocking any addons that need to be afterwards
   *
   * @param  aAddons
   *         An array of addons and plugins that are blocked. These are javascript
   *         objects with properties:
   *          name    - the plugin or extension name,
   *          version - the version of the extension or plugin,
   *          icon    - the plugin or extension icon,
   *          disable - can be used by the nsIBlocklistPrompt to allows users to decide
   *                    whether a soft-blocked add-on should be disabled,
   *          blocked - true if the item is hard-blocked, false otherwise,
   *          item    - the nsIPluginTag or Addon object
   * @param  aCount
   *         The number of addons
   */

void prompt ([array, size_is (aCount)] in nsIVariant aAddons, [optional] in uint32_t aCount);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIBlocklistPrompt
[src]

IID: nsIID = nsID(3130087713, 47552, 16397, [142, 79, 202, 27, 128, 197, 105, 154])

[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 nsIBlocklistPrompt
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIBlocklistPrompt
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.