B2G/gecko/accessible/src/jsat/UtteranceGenerator.jsm
/**
   * Generates an utterance for a tab state change.
   * @param {nsIAccessible} aAccessible accessible object of the tab's attached
   *    document.
   * @param {string} aTabState the tab state name, see
   *    {@link Presenter.tabStateChanged}.
   * @return {Array} The tab state utterace.
   */
Generates an utterance for a tab state change.
@param {nsIAccessible} aAccessible accessible object of the tab's attached
document.
@param {string} aTabState the tab state name, see
Presenter.tabStateChanged.
@return {Array} The tab state utterace.
Generates an utterance for a tab state change . @param { nsIAccessible } aAccessible accessible object of the tab ' s attached document . @param { string } aTabState the tab state name see Presenter . tabStateChanged . @return { Array } The tab state utterace .
function genForTabStateChange(aObject, aTabState) {
    switch (aTabState) {
      case 'newtab':
        return [gStringBundle.GetStringFromName('tabNew')];
      case 'loading':
        return [gStringBundle.GetStringFromName('tabLoading')];
      case 'loaded':
        return [aObject.name || '',
                gStringBundle.GetStringFromName('tabLoaded')];
      case 'loadstopped':
        return [gStringBundle.GetStringFromName('tabLoadStopped')];
      case 'reload':
        return [gStringBundle.GetStringFromName('tabReload')];
      default:
        return [];
    }
  }
function genForTabStateChange ( aObject , aTabState ) { switch ( aTabState ) { case 'newtab' : return [ gStringBundle . GetStringFromName ( 'tabNew' ) ] ; case 'loading' : return [ gStringBundle . GetStringFromName ( 'tabLoading' ) ] ; case 'loaded' : return [ aObject . name || '' , gStringBundle . GetStringFromName ( 'tabLoaded' ) ] ; case 'loadstopped' : return [ gStringBundle . GetStringFromName ( 'tabLoadStopped' ) ] ; case 'reload' : return [ gStringBundle . GetStringFromName ( 'tabReload' ) ] ; default : return [ ] ; } }
Generates an utterance for a tab state change.
Generates an utterance for a tab state change .