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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/time_widget.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/common/time_widget.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/time_widget.js b/chrome/browser/resources/chromeos/chromevox/common/time_widget.js
index 8691d63fb85b67c14e6bd6f905951e48d8e8f15a..bfb17a62f7fd357fb21d6bc338d95ebcb0379897 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/time_widget.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/time_widget.js
@@ -37,11 +37,11 @@ cvox.ChromeVoxHTMLTimeWidget = function(timeElem, tts) {
};
if (this.timeElem_.hasAttribute('step')) {
var step = this.timeElem_.getAttribute('step');
- if (step > 0) { // 0 or invalid values show hh:mm AM/PM
+ if (step > 0) { // 0 or invalid values show hh:mm AM/PM
if (step >= 1) {
- this.maxPos_ = 3; // Anything larger than 1 shows hh:mm:ss AM/PM
+ this.maxPos_ = 3; // Anything larger than 1 shows hh:mm:ss AM/PM
} else {
- this.maxPos_ = 4; // Anything less than 1 shows hh:mm:ss.ms AM/PM
+ this.maxPos_ = 4; // Anything less than 1 shows hh:mm:ss.ms AM/PM
}
}
}
@@ -56,11 +56,11 @@ cvox.ChromeVoxHTMLTimeWidget = function(timeElem, tts) {
for (var i = 0; i < this.maxPos_; i++) {
var evt = document.createEvent('KeyboardEvent');
evt.initKeyboardEvent(
- 'keydown', true, true, window, 'Left', 0, false, false, false, false);
+ 'keydown', true, true, window, 'Left', 0, false, false, false, false);
this.timeElem_.dispatchEvent(evt);
evt = document.createEvent('KeyboardEvent');
evt.initKeyboardEvent(
- 'keyup', true, true, window, 'Left', 0, false, false, false, false);
+ 'keyup', true, true, window, 'Left', 0, false, false, false, false);
this.timeElem_.dispatchEvent(evt);
}
@@ -166,8 +166,8 @@ cvox.ChromeVoxHTMLTimeWidget.prototype.update_ = function(shouldSpeakLabel) {
}
if (hours != this.pHours_) {
- changeMessage = changeMessage + hours + ' ' +
- Msgs.getMsg('timewidget_hours') + '\n';
+ changeMessage =
+ changeMessage + hours + ' ' + Msgs.getMsg('timewidget_hours') + '\n';
this.pHours_ = hours;
}

Powered by Google App Engine
This is Rietveld 408576698