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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc

Issue 1840983002: Video Player: Set proper aria-label to the toggle button for subtitles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « chrome/app/chromeos_strings.grdp ('k') | ui/file_manager/video_player/js/media_controls.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" 10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 SET_STRING("VIDEO_PLAYER_PLAY_THIS_COMPUTER", 235 SET_STRING("VIDEO_PLAYER_PLAY_THIS_COMPUTER",
236 IDS_VIDEO_PLAYER_PLAY_THIS_COMPUTER); 236 IDS_VIDEO_PLAYER_PLAY_THIS_COMPUTER);
237 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED", 237 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED",
238 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED); 238 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED);
239 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST", 239 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST",
240 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST); 240 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST);
241 SET_STRING("VIDEO_PLAYER_FULL_SCREEN_BUTTON_LABEL", 241 SET_STRING("VIDEO_PLAYER_FULL_SCREEN_BUTTON_LABEL",
242 IDS_VIDEO_PLAYER_FULL_SCREEN_BUTTON_LABEL); 242 IDS_VIDEO_PLAYER_FULL_SCREEN_BUTTON_LABEL);
243 SET_STRING("VIDEO_PLAYER_EXIT_FULL_SCREEN_BUTTON_LABEL", 243 SET_STRING("VIDEO_PLAYER_EXIT_FULL_SCREEN_BUTTON_LABEL",
244 IDS_VIDEO_PLAYER_EXIT_FULL_SCREEN_BUTTON_LABEL); 244 IDS_VIDEO_PLAYER_EXIT_FULL_SCREEN_BUTTON_LABEL);
245 SET_STRING("VIDEO_PLAYER_ENABLE_SUBTITLES_BUTTON_LABEL",
246 IDS_VIDEO_PLAYER_ENABLE_SUBTITLES_BUTTON_LABEL);
247 SET_STRING("VIDEO_PLAYER_DISABLE_SUBTITLES_BUTTON_LABEL",
248 IDS_VIDEO_PLAYER_DISABLE_SUBTITLES_BUTTON_LABEL);
245 } 249 }
246 250
247 void AddStringsForAudioPlayer(base::DictionaryValue* dict) { 251 void AddStringsForAudioPlayer(base::DictionaryValue* dict) {
248 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR); 252 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR);
249 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE); 253 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE);
250 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST", 254 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST",
251 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST); 255 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST);
252 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE); 256 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE);
253 SET_STRING("AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL", 257 SET_STRING("AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL",
254 IDS_AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL); 258 IDS_AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL);
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); 638 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber));
635 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); 639 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault());
636 640
637 const std::string& app_locale = g_browser_process->GetApplicationLocale(); 641 const std::string& app_locale = g_browser_process->GetApplicationLocale();
638 webui::SetLoadTimeDataDefaults(app_locale, dict); 642 webui::SetLoadTimeDataDefaults(app_locale, dict);
639 643
640 return true; 644 return true;
641 } 645 }
642 646
643 } // namespace extensions 647 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | ui/file_manager/video_player/js/media_controls.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698