Struct xpcom::interfaces::nsISpeechTask [] [src]

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

interface nsISpeechTask : nsISupports

/**
 * A task is associated with a single utterance. It is provided by the browser
 * to the service in the speak() method.
 */

Methods

impl nsISpeechTask
[src]

[src]

Cast this nsISpeechTask to one of its base interfaces.

impl nsISpeechTask
[src]

[src]

/**
   * Prepare browser for speech.
   *
   * @param aCallback callback object for mid-speech operations.
   */

void setup (in nsISpeechTaskCallback aCallback);

[src]

/**
   * Dispatch start event.
   */

void dispatchStart ();

[src]

/**
   * Dispatch end event.
   *
   * @param aElapsedTime time in seconds since speech has started.
   * @param aCharIndex   offset of spoken characters.
   */

void dispatchEnd (in float aElapsedTime, in unsigned long aCharIndex);

[src]

/**
   * Dispatch pause event.
   *
   * @param aElapsedTime time in seconds since speech has started.
   * @param aCharIndex   offset of spoken characters.
   */

void dispatchPause (in float aElapsedTime, in unsigned long aCharIndex);

[src]

/**
   * Dispatch resume event.
   *
   * @param aElapsedTime time in seconds since speech has started.
   * @param aCharIndex   offset of spoken characters.
   */

void dispatchResume (in float aElapsedTime, in unsigned long aCharIndex);

[src]

/**
   * Dispatch error event.
   *
   * @param aElapsedTime time in seconds since speech has started.
   * @param aCharIndex   offset of spoken characters.
   */

void dispatchError (in float aElapsedTime, in unsigned long aCharIndex);

[src]

/**
   * Dispatch mark event.
   *
   * @param aName        mark identifier.
   * @param aElapsedTime time in seconds since speech has started.
   * @param aCharIndex   offset of spoken characters.
   */

void dispatchMark (in DOMString aName, in float aElapsedTime, in unsigned long aCharIndex);

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

IID: nsIID = nsID(2908329116, 9271, 19253, [142, 235, 215, 96, 202, 171, 117, 197])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISpeechTask
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.