From 60ca5af6d1893817948c80699c78591f2acb220b Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Thu, 25 Apr 2013 09:16:10 -0700 Subject: [PATCH] Bug 865447 - Expose Accessfu input object for scripting purposes. r=yzen --- accessible/src/jsat/AccessFu.jsm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/accessible/src/jsat/AccessFu.jsm b/accessible/src/jsat/AccessFu.jsm index 8622247d149f..2eeb4faf9501 100644 --- a/accessible/src/jsat/AccessFu.jsm +++ b/accessible/src/jsat/AccessFu.jsm @@ -56,7 +56,7 @@ this.AccessFu = { this._notifyOutput = false; } - Input.quickNavMode.updateModes(this.prefsBranch); + this.Input.quickNavMode.updateModes(this.prefsBranch); this._enableOrDisable(); }, @@ -107,7 +107,7 @@ this.AccessFu = { Utils.win.document.insertBefore(stylesheet, Utils.win.document.firstChild); this.stylesheet = Cu.getWeakReference(stylesheet); - Input.start(); + this.Input.start(); Output.start(); TouchAdapter.start(); @@ -142,7 +142,7 @@ this.AccessFu = { this._removeMessageListeners(mm); } - Input.stop(); + this.Input.stop(); Output.stop(); TouchAdapter.stop(); @@ -188,7 +188,7 @@ this.AccessFu = { this._output(aMessage.json, aMessage.target); break; case 'AccessFu:Input': - Input.setEditState(aMessage.json); + this.Input.setEditState(aMessage.json); break; } }, @@ -250,10 +250,10 @@ this.AccessFu = { this._enableOrDisable(); break; case 'Accessibility:NextObject': - Input.moveCursor('moveNext', 'Simple', 'gesture'); + this.Input.moveCursor('moveNext', 'Simple', 'gesture'); break; case 'Accessibility:PreviousObject': - Input.moveCursor('movePrevious', 'Simple', 'gesture'); + this.Input.moveCursor('movePrevious', 'Simple', 'gesture'); break; case 'Accessibility:Focus': this._focused = JSON.parse(aData); @@ -270,7 +270,7 @@ this.AccessFu = { this._enableOrDisable(); break; case 'quicknav_modes': - Input.quickNavMode.updateModes(this.prefsBranch); + this.Input.quickNavMode.updateModes(this.prefsBranch); break; case 'notify_output': this._notifyOutput = this.prefsBranch.getBoolPref('notify_output'); @@ -713,3 +713,4 @@ var Input = { _currentIndex: -1 } }; +AccessFu.Input = Input;