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

Side by Side Diff: ui/file_manager/video_player/js/media_controls.js

Issue 2382993003: Video player: Reset the focus on entering fullscree mode. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698