| 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);
|
| }
|
| }
|
|
|