Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5912)

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
}

Powered by Google App Engine
This is Rietveld 408576698