Chromium Code Reviews| Index: ui/file_manager/video_player/js/media_controls.js |
| diff --git a/ui/file_manager/video_player/js/media_controls.js b/ui/file_manager/video_player/js/media_controls.js |
| index 8d63495b2e60d3e47deef5da9cfb806d94d8ee51..35c9f6317ab514387aa4582c4a79f8ad1c623b84 100644 |
| --- a/ui/file_manager/video_player/js/media_controls.js |
| +++ b/ui/file_manager/video_player/js/media_controls.js |
| @@ -1026,9 +1026,19 @@ VideoControls.prototype.showIconFeedback_ = function() { |
| * @private |
| */ |
| VideoControls.prototype.showTextBanner_ = function(identifier) { |
| + var text = this.stringFunction_(identifier); |
| + |
| this.textBanner_.removeAttribute('visible'); |
| - this.textBanner_.textContent = this.stringFunction_(identifier); |
| + this.textBanner_.textContent = text; |
| + |
| setTimeout(function() { |
| + var onAnimationEnd = function(text, event) { |
|
fukino
2014/09/29 08:04:29
This 'text' looks unused. Can we get rid of it?
yoshiki
2014/09/29 08:10:19
Done.
|
| + this.textBanner_.removeEventListener( |
| + 'webkitAnimationEnd', onAnimationEnd); |
| + this.textBanner_.removeAttribute('visible'); |
| + }.bind(this, text); |
| + this.textBanner_.addEventListener('webkitAnimationEnd', onAnimationEnd); |
| + |
| this.textBanner_.setAttribute('visible', 'true'); |
| }.bind(this), 0); |
| }; |