function attach(aWindow) {
    if (this.chromeWin)
      // XXX: only supports attaching to one window now.
      throw new Error('Only one window could be attached to AccessFu');

    dump('AccessFu attach!! ' + Services.appinfo.OS + '\n');
    this.chromeWin = aWindow;
    this.presenters = [];

    this.prefsBranch = Cc['@mozilla.org/preferences-service;1']
      .getService(Ci.nsIPrefService).getBranch('accessibility.accessfu.');
    this.prefsBranch.addObserver('activate', this, false);

    let accessPref = ACCESSFU_DISABLE;
    try {
      accessPref = this.prefsBranch.getIntPref('activate');
    } catch (x) {
    }

    this._processPreferences(accessPref);
  }
/**
   * Attach chrome-layer accessibility functionality to the given chrome window.
   * If accessibility is enabled on the platform (currently Android-only), then
   * a special accessibility mode is started (see startup()).
   * @param {ChromeWindow} aWindow Chrome window to attach to.
   * @param {boolean} aForceEnabled Skip platform accessibility check and enable
   *  AccessFu.
   */
Attach chrome-layer accessibility functionality to the given chrome window.
If accessibility is enabled on the platform (currently Android-only), then
a special accessibility mode is started ).
@param {ChromeWindow} aWindow Chrome window to attach to.
@param {boolean} aForceEnabled Skip platform accessibility check and enable
AccessFu.
Attach chrome - layer accessibility functionality to the given chrome window . If accessibility is enabled on the platform ( currently Android - only ) then a special accessibility mode is started ) . @param { ChromeWindow } aWindow Chrome window to attach to . @param { boolean } aForceEnabled Skip platform accessibility check and enable AccessFu .
function attach(aWindow) {
    if (this.chromeWin)
      throw new Error('Only one window could be attached to AccessFu');
    dump('AccessFu attach!! ' + Services.appinfo.OS + '\n');
    this.chromeWin = aWindow;
    this.presenters = [];
    this.prefsBranch = Cc['@mozilla.org/preferences-service;1']
      .getService(Ci.nsIPrefService).getBranch('accessibility.accessfu.');
    this.prefsBranch.addObserver('activate', this, false);
    let accessPref = ACCESSFU_DISABLE;
    try {
      accessPref = this.prefsBranch.getIntPref('activate');
    } catch (x) {
    }
    this._processPreferences(accessPref);
  }
function attach ( aWindow ) { if ( this . chromeWin ) throw new Error ( 'Only one window could be attached to AccessFu' ) ; dump ( 'AccessFu attach!! ' + Services . appinfo . OS + '\n' ) ; this . chromeWin = aWindow ; this . presenters = [ ] ; this . prefsBranch = Cc [ '@mozilla.org/preferences-service;1' ] . getService ( Ci . nsIPrefService ) . getBranch ( 'accessibility.accessfu.' ) ; this . prefsBranch . addObserver ( 'activate' , this , false ) ; let accessPref = ACCESSFU_DISABLE ; try { accessPref = this . prefsBranch . getIntPref ( 'activate' ) ; } catch ( x ) { } this . _processPreferences ( accessPref ) ; }
Attach chrome-layer accessibility functionality to the given chrome window.
Attach chrome - layer accessibility functionality to the given chrome window .
// XXX: only supports attaching to one window now.