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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (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/chromevox/background/kbexplorer.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js
index 98d6ad71de0b943c1f98e338a2d64d4393697def..017d5e3278c9cf389af8a118ba8c7f74448140d9 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/kbexplorer.js
@@ -22,7 +22,7 @@ goog.require('cvox.LibLouis');
* Class to manage the keyboard explorer.
* @constructor
*/
-cvox.KbExplorer = function() { };
+cvox.KbExplorer = function() {};
/**
@@ -30,8 +30,7 @@ cvox.KbExplorer = function() { };
*/
cvox.KbExplorer.init = function() {
var backgroundWindow = chrome.extension.getBackgroundPage();
- backgroundWindow.addEventListener(
- 'keydown', cvox.KbExplorer.onKeyDown, true);
+ backgroundWindow.addEventListener('keydown', cvox.KbExplorer.onKeyDown, true);
backgroundWindow.addEventListener('keyup', cvox.KbExplorer.onKeyUp, true);
backgroundWindow.addEventListener(
'keypress', cvox.KbExplorer.onKeyPress, true);
@@ -61,8 +60,9 @@ cvox.KbExplorer.init = function() {
}
/** @type {cvox.LibLouis} */
- this.currentBrailleTranslator_ = backgroundWindow['cvox']['BrailleBackground']
- ['getInstance']()['getTranslatorManager']()['getDefaultTranslator']();
+ this.currentBrailleTranslator_ =
+ backgroundWindow['cvox']['BrailleBackground']['getInstance']()
+ ['getTranslatorManager']()['getDefaultTranslator']();
cvox.ChromeVoxKbHandler.commandHandler = cvox.KbExplorer.onCommand;
$('instruction').focus();
@@ -172,8 +172,7 @@ cvox.KbExplorer.onBrailleKeyEvent = function(evt) {
break;
}
- var command =
- BrailleCommandHandler.getCommand(dots);
+ var command = BrailleCommandHandler.getCommand(dots);
if (command && cvox.KbExplorer.onCommand(command))
return;
text = BrailleCommandHandler.makeShortcutText(dots, true);
@@ -184,9 +183,9 @@ cvox.KbExplorer.onBrailleKeyEvent = function(evt) {
return;
var cells = new ArrayBuffer(1);
var view = new Uint8Array(cells);
- view[0]= dots;
- cvox.KbExplorer.currentBrailleTranslator_.backTranslate(cells,
- function(res) {
+ view[0] = dots;
+ cvox.KbExplorer.currentBrailleTranslator_.backTranslate(
+ cells, function(res) {
cvox.KbExplorer.output(res);
}.bind(this));
return;
@@ -235,6 +234,6 @@ cvox.KbExplorer.output = function(text, opt_braille) {
/** Clears ChromeVox range. */
cvox.KbExplorer.clearRange = function() {
- chrome.extension.getBackgroundPage()[
- 'ChromeVoxState']['instance']['setCurrentRange'](null);
+ chrome.extension.getBackgroundPage()['ChromeVoxState']['instance']
+ ['setCurrentRange'](null);
};

Powered by Google App Engine
This is Rietveld 408576698