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]

[src]

Cast this nsIAboutNewTabService to one of its base interfaces.

impl nsIAboutNewTabService
[src]

[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;

[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;

[src]

/**
   * Returns the default URL (local or activity stream depending on pref)
   */

attribute ACString defaultURL;

[src]

/**
   * Returns the default URL (local or activity stream depending on pref)
   */

attribute ACString defaultURL;

[src]

/**
   * Returns true if opening the New Tab page will notify the user of a change.
   */

attribute bool willNotifyUser;

[src]

/**
   * Returns true if opening the New Tab page will notify the user of a change.
   */

attribute bool willNotifyUser;

[src]

/**
   * Returns true if the default resource got overridden.
   */

readonly attribute bool overridden;

[src]

/**
   * Returns true if the default resource is activity stream and isn't
   * overridden
   */

readonly attribute bool activityStreamEnabled;

[src]

/**
   * Returns true if the the prerendering pref for activity stream is true
   */

readonly attribute bool activityStreamPrerender;

[src]

/**
   * Returns true if the the debug pref for activity stream is true
   */

readonly attribute bool activityStreamDebug;

[src]

/**
   * Resets to the default resource and also resets the
   * overridden attribute to false.
   */

void resetNewTabURL ();

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

IID: nsIID = nsID(3754765020, 30823, 19770, [186, 112, 23, 80, 31, 32, 129, 66])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAboutNewTabService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.