Struct xpcom::interfaces::nsIAboutNewTabService
[−]
[src]
#[repr(C)]pub struct nsIAboutNewTabService { /* fields omitted */ }
interface nsIAboutNewTabService : nsISupports
/**
* Allows to override about:newtab to point to a different location
* than the one specified within AboutRedirector.cpp
*/
Methods
impl nsIAboutNewTabService
[src]
pub fn coerce<T: nsIAboutNewTabServiceCoerce>(&self) -> &T
[src]
Cast this nsIAboutNewTabService
to one of its base interfaces.
impl nsIAboutNewTabService
[src]
pub unsafe fn GetNewTabURL(&self, aNewTabURL: &mut nsACString) -> nsresult
[src]
/**
* Returns the url of the resource for the newtab page if not overridden,
* otherwise a string represenation of the new URL.
*/
attribute ACString newTabURL;
pub unsafe fn SetNewTabURL(&self, aNewTabURL: &nsACString) -> nsresult
[src]
/**
* Returns the url of the resource for the newtab page if not overridden,
* otherwise a string represenation of the new URL.
*/
attribute ACString newTabURL;
pub unsafe fn GetDefaultURL(&self, aDefaultURL: &mut nsACString) -> nsresult
[src]
/**
* Returns the default URL (local or activity stream depending on pref)
*/
attribute ACString defaultURL;
pub unsafe fn SetDefaultURL(&self, aDefaultURL: &nsACString) -> nsresult
[src]
/**
* Returns the default URL (local or activity stream depending on pref)
*/
attribute ACString defaultURL;
pub unsafe fn GetWillNotifyUser(&self, aWillNotifyUser: *mut bool) -> nsresult
[src]
/**
* Returns true if opening the New Tab page will notify the user of a change.
*/
attribute bool willNotifyUser;
pub unsafe fn SetWillNotifyUser(&self, aWillNotifyUser: bool) -> nsresult
[src]
/**
* Returns true if opening the New Tab page will notify the user of a change.
*/
attribute bool willNotifyUser;
pub unsafe fn GetOverridden(&self, aOverridden: *mut bool) -> nsresult
[src]
/**
* Returns true if the default resource got overridden.
*/
readonly attribute bool overridden;
pub unsafe fn GetActivityStreamEnabled(
&self,
aActivityStreamEnabled: *mut bool
) -> nsresult
[src]
&self,
aActivityStreamEnabled: *mut bool
) -> nsresult
/**
* Returns true if the default resource is activity stream and isn't
* overridden
*/
readonly attribute bool activityStreamEnabled;
pub unsafe fn GetActivityStreamPrerender(
&self,
aActivityStreamPrerender: *mut bool
) -> nsresult
[src]
&self,
aActivityStreamPrerender: *mut bool
) -> nsresult
/**
* Returns true if the the prerendering pref for activity stream is true
*/
readonly attribute bool activityStreamPrerender;
pub unsafe fn GetActivityStreamDebug(
&self,
aActivityStreamDebug: *mut bool
) -> nsresult
[src]
&self,
aActivityStreamDebug: *mut bool
) -> nsresult
/**
* Returns true if the the debug pref for activity stream is true
*/
readonly attribute bool activityStreamDebug;
pub unsafe fn ResetNewTabURL(&self) -> nsresult
[src]
/**
* Resets to the default resource and also resets the
* overridden attribute to false.
*/
void resetNewTabURL ();
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 nsIAboutNewTabService
[src]
const IID: nsIID
IID: nsIID = nsID(3754765020, 30823, 19770, [186, 112, 23, 80, 31, 32, 129, 66])
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 nsIAboutNewTabService
[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 nsIAboutNewTabService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.