| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview MediaControls class implements media playback controls | 6 * @fileoverview MediaControls class implements media playback controls |
| 7 * that exist outside of the audio/video HTML element. | 7 * that exist outside of the audio/video HTML element. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 if (fullscreen) { | 1086 if (fullscreen) { |
| 1087 this.container_.setAttribute('fullscreen', ''); | 1087 this.container_.setAttribute('fullscreen', ''); |
| 1088 } else { | 1088 } else { |
| 1089 this.container_.removeAttribute('fullscreen'); | 1089 this.container_.removeAttribute('fullscreen'); |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 if (this.fullscreenButton_) { | 1092 if (this.fullscreenButton_) { |
| 1093 this.fullscreenButton_.setAttribute('aria-label', | 1093 this.fullscreenButton_.setAttribute('aria-label', |
| 1094 fullscreen ? str('VIDEO_PLAYER_EXIT_FULL_SCREEN_BUTTON_LABEL') | 1094 fullscreen ? str('VIDEO_PLAYER_EXIT_FULL_SCREEN_BUTTON_LABEL') |
| 1095 : str('VIDEO_PLAYER_FULL_SCREEN_BUTTON_LABEL'));; | 1095 : str('VIDEO_PLAYER_FULL_SCREEN_BUTTON_LABEL'));; |
| 1096 // If the fullscreen button has focus on entering fullscreen mode, reset the |
| 1097 // focus to make the spacebar toggle play/pause state. This is the |
| 1098 // consistent behavior with Youtube Web UI. |
| 1099 if (fullscreen) |
| 1100 this.fullscreenButton_.blur(); |
| 1096 } | 1101 } |
| 1097 }; | 1102 }; |
| OLD | NEW |