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

Side by Side Diff: chrome/browser/ui/webui/media_router/media_router_localized_strings_provider.cc

Issue 1961443002: [Media Router WebUI] Update arrow drop title text to be more descriptive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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/browser/resources/media_router/elements/media_router_header/media_router_header.js ('k') | 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ui/webui/media_router/media_router_localized_strings_pr ovider.h" 5 #include "chrome/browser/ui/webui/media_router/media_router_localized_strings_pr ovider.h"
6 6
7 #include "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "content/public/browser/web_ui_data_source.h" 8 #include "content/public/browser/web_ui_data_source.h"
9 9
10 namespace { 10 namespace {
11 11
12 // Note that media_router.html contains a <script> tag which imports a script 12 // Note that media_router.html contains a <script> tag which imports a script
13 // of the following name. These names must be kept in sync. 13 // of the following name. These names must be kept in sync.
14 const char kLocalizedStringsFile[] = "strings.js"; 14 const char kLocalizedStringsFile[] = "strings.js";
15 15
16 void AddMediaRouterStrings(content::WebUIDataSource* html_source) { 16 void AddMediaRouterStrings(content::WebUIDataSource* html_source) {
17 html_source->AddLocalizedString("mediaRouterTitle", IDS_MEDIA_ROUTER_TITLE); 17 html_source->AddLocalizedString("mediaRouterTitle", IDS_MEDIA_ROUTER_TITLE);
18 html_source->AddLocalizedString("learnMoreText", 18 html_source->AddLocalizedString("learnMoreText",
19 IDS_MEDIA_ROUTER_LEARN_MORE); 19 IDS_MEDIA_ROUTER_LEARN_MORE);
20 html_source->AddLocalizedString("backButtonTitle", 20 html_source->AddLocalizedString("backButtonTitle",
21 IDS_MEDIA_ROUTER_BACK_BUTTON_TITLE); 21 IDS_MEDIA_ROUTER_BACK_BUTTON_TITLE);
22 html_source->AddLocalizedString("closeButtonTitle", 22 html_source->AddLocalizedString("closeButtonTitle",
23 IDS_MEDIA_ROUTER_CLOSE_BUTTON_TITLE); 23 IDS_MEDIA_ROUTER_CLOSE_BUTTON_TITLE);
24 html_source->AddLocalizedString("dropDownButtonTitle",
25 IDS_MEDIA_ROUTER_DROP_DOWN_BUTTON_TITLE);
26 html_source->AddLocalizedString("searchButtonTitle", 24 html_source->AddLocalizedString("searchButtonTitle",
27 IDS_MEDIA_ROUTER_SEARCH_BUTTON_TITLE); 25 IDS_MEDIA_ROUTER_SEARCH_BUTTON_TITLE);
26 html_source->AddLocalizedString("viewCastModeListButtonTitle",
27 IDS_MEDIA_ROUTER_VIEW_CAST_MODE_LIST_BUTTON_TITLE);
28 html_source->AddLocalizedString("viewDeviceListButtonTitle",
29 IDS_MEDIA_ROUTER_VIEW_DEVICE_LIST_BUTTON_TITLE);
28 } 30 }
29 31
30 void AddRouteDetailsStrings(content::WebUIDataSource* html_source) { 32 void AddRouteDetailsStrings(content::WebUIDataSource* html_source) {
31 html_source->AddLocalizedString("castingActivityStatus", 33 html_source->AddLocalizedString("castingActivityStatus",
32 IDS_MEDIA_ROUTER_CASTING_ACTIVITY_STATUS); 34 IDS_MEDIA_ROUTER_CASTING_ACTIVITY_STATUS);
33 html_source->AddLocalizedString("stopCastingButton", 35 html_source->AddLocalizedString("stopCastingButton",
34 IDS_MEDIA_ROUTER_STOP_CASTING_BUTTON); 36 IDS_MEDIA_ROUTER_STOP_CASTING_BUTTON);
35 html_source->AddLocalizedString("startCastingButton", 37 html_source->AddLocalizedString("startCastingButton",
36 IDS_MEDIA_ROUTER_START_CASTING_BUTTON); 38 IDS_MEDIA_ROUTER_START_CASTING_BUTTON);
37 } 39 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 76
75 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 77 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
76 AddMediaRouterStrings(html_source); 78 AddMediaRouterStrings(html_source);
77 AddRouteDetailsStrings(html_source); 79 AddRouteDetailsStrings(html_source);
78 AddIssuesStrings(html_source); 80 AddIssuesStrings(html_source);
79 AddMediaRouterContainerStrings(html_source); 81 AddMediaRouterContainerStrings(html_source);
80 html_source->SetJsonPath(kLocalizedStringsFile); 82 html_source->SetJsonPath(kLocalizedStringsFile);
81 } 83 }
82 84
83 } // namespace media_router 85 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698