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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/braille.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.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js
index 9b145cb3a36701486108032eac93d11744dc8713..168cb2efd98898a85e924b7796d87b88cc3f90dc 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js
@@ -63,10 +63,12 @@ cvox.ChromeBraille.prototype.write = function(params) {
this.updateLastContentId_();
var outParams = params.toJson();
- var message = {'target': 'BRAILLE',
- 'action': 'write',
- 'params': outParams,
- 'contentId' : this.lastContentId_};
+ var message = {
+ 'target': 'BRAILLE',
+ 'action': 'write',
+ 'params': outParams,
+ 'contentId': this.lastContentId_
+ };
cvox.ExtensionBridge.send(message);
};
@@ -98,8 +100,8 @@ cvox.ChromeBraille.prototype.getDisplayState = function() {
/** @private */
cvox.ChromeBraille.prototype.updateLastContentId_ = function() {
- this.lastContentId_ = cvox.ExtensionBridge.uniqueId() + '.' +
- this.nextLocalId_++;
+ this.lastContentId_ =
+ cvox.ExtensionBridge.uniqueId() + '.' + this.nextLocalId_++;
};
@@ -110,8 +112,7 @@ cvox.ChromeBraille.prototype.updateLastContentId_ = function() {
* if available.
* @private
*/
-cvox.ChromeBraille.prototype.onKeyEvent_ = function(brailleEvt,
- content) {
+cvox.ChromeBraille.prototype.onKeyEvent_ = function(brailleEvt, content) {
var command = cvox.ChromeVoxUserCommands.commands[brailleEvt.command];
if (command) {
command({event: brailleEvt, content: content});

Powered by Google App Engine
This is Rietveld 408576698