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]
pub fn coerce<T: nsIBlocklistPromptCoerce>(&self) -> &T
[src]
Cast this nsIBlocklistPrompt
to one of its base interfaces.
impl nsIBlocklistPrompt
[src]
pub unsafe fn Prompt(
&self,
aAddons: *mut *const nsIVariant,
aCount: uint32_t
) -> nsresult
[src]
&self,
aAddons: *mut *const nsIVariant,
aCount: uint32_t
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIBlocklistPrompt
[src]
const IID: nsIID
IID: nsIID = nsID(3130087713, 47552, 16397, [142, 79, 202, 27, 128, 197, 105, 154])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIBlocklistPrompt
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.