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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/media_widget.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/common/media_widget.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/media_widget.js b/chrome/browser/resources/chromeos/chromevox/common/media_widget.js
index 0c2444cbb70c7a78128480405b424d1c768bd723..9ea4a695b38960aea5500e1ca2b7f6eded0bf336 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/media_widget.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/media_widget.js
@@ -18,7 +18,7 @@ goog.provide('cvox.ChromeVoxHTMLMediaWidget');
* @param {Element} mediaElem The media widget element.
* @param {cvox.TtsInterface} tts The TTS object from ChromeVox.
*/
-cvox.ChromeVoxHTMLMediaWidget = function(mediaElem, tts){
+cvox.ChromeVoxHTMLMediaWidget = function(mediaElem, tts) {
var self = this;
this.mediaElem_ = mediaElem;
this.mediaTts_ = tts;
@@ -71,20 +71,20 @@ cvox.ChromeVoxHTMLMediaWidget.prototype.eventHandler_ = function(evt) {
if (evt.type == 'keydown') {
// Space/Enter for play/pause toggle.
if ((evt.keyCode == 13) || (evt.keyCode == 32)) {
- if (this.mediaElem_.paused){
+ if (this.mediaElem_.paused) {
this.mediaElem_.play();
} else {
this.mediaElem_.pause();
}
- } else if (evt.keyCode == 39) { // Right - FF
+ } else if (evt.keyCode == 39) { // Right - FF
this.jumpToTime_(
- this.mediaElem_.currentTime + (this.mediaElem_.duration/10));
- } else if (evt.keyCode == 37) { // Left - REW
+ this.mediaElem_.currentTime + (this.mediaElem_.duration / 10));
+ } else if (evt.keyCode == 37) { // Left - REW
this.jumpToTime_(
- this.mediaElem_.currentTime - (this.mediaElem_.duration/10));
- } else if (evt.keyCode == 38) { // Up - Vol. Up
+ this.mediaElem_.currentTime - (this.mediaElem_.duration / 10));
+ } else if (evt.keyCode == 38) { // Up - Vol. Up
this.setVolume_(this.mediaElem_.volume + .1);
- } else if (evt.keyCode == 40) { // Down - Vol. Down
+ } else if (evt.keyCode == 40) { // Down - Vol. Down
this.setVolume_(this.mediaElem_.volume - .1);
}
}

Powered by Google App Engine
This is Rietveld 408576698