Index: chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js |
index a6d3e8c31fc6175da073cc1a634a2247fe811874..b77c546c40fec784d28747cd1c82e3494f4923f6 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js |
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js |
@@ -26,14 +26,14 @@ goog.require('cvox.BrailleTranslatorManager'); |
* Braille translator manager (for mocking in tests) |
* @implements {cvox.BrailleInterface} |
*/ |
-cvox.BrailleBackground = function(opt_displayManagerForTest, |
- opt_inputHandlerForTest, |
- opt_translatorManagerForTest) { |
+cvox.BrailleBackground = function( |
+ opt_displayManagerForTest, opt_inputHandlerForTest, |
+ opt_translatorManagerForTest) { |
/** |
* @type {!cvox.BrailleTranslatorManager} |
* @private*/ |
- this.translatorManager_ = opt_translatorManagerForTest || |
- new cvox.BrailleTranslatorManager(); |
+ this.translatorManager_ = |
+ opt_translatorManagerForTest || new cvox.BrailleTranslatorManager(); |
/** |
* @type {cvox.BrailleDisplayManager} |
* @private |
@@ -119,8 +119,7 @@ cvox.BrailleBackground.prototype.getTranslatorManager = function() { |
*/ |
cvox.BrailleBackground.prototype.onBrailleMessage = function(msg) { |
if (msg['action'] == 'write') { |
- this.setContent_(cvox.NavBraille.fromJson(msg['params']), |
- msg['contentId']); |
+ this.setContent_(cvox.NavBraille.fromJson(msg['params']), msg['contentId']); |
} |
}; |
@@ -173,12 +172,8 @@ cvox.BrailleBackground.prototype.onBrailleKeyEvent_ = function( |
* @param {cvox.NavBraille} content Content of display when event fired. |
* @private |
*/ |
-cvox.BrailleBackground.prototype.sendCommand_ = |
- function(brailleEvt, content) { |
- var msg = { |
- 'message': 'BRAILLE', |
- 'args': brailleEvt |
- }; |
+cvox.BrailleBackground.prototype.sendCommand_ = function(brailleEvt, content) { |
+ var msg = {'message': 'BRAILLE', 'args': brailleEvt}; |
if (content === this.lastContent_) { |
msg.contentId = this.lastContentId_; |
} |