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

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

Issue 1140823003: Redesign cast-mode-picker UX and switch to core/paper elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
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 } 18 }
19 19
20 void AddRouteDetailsStrings(content::WebUIDataSource* html_source) { 20 void AddRouteDetailsStrings(content::WebUIDataSource* html_source) {
21 html_source->AddLocalizedString("backToSinkPicker",
22 IDS_MEDIA_ROUTER_BACK_TO_SINK_PICKER);
21 html_source->AddLocalizedString("castingActivityStatus", 23 html_source->AddLocalizedString("castingActivityStatus",
22 IDS_MEDIA_ROUTER_CASTING_ACTIVITY_STATUS); 24 IDS_MEDIA_ROUTER_CASTING_ACTIVITY_STATUS);
23 html_source->AddLocalizedString("backToSinkPicker", 25 html_source->AddLocalizedString("selectCastModeHeader",
24 IDS_MEDIA_ROUTER_BACK_TO_SINK_PICKER); 26 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER);
25 html_source->AddLocalizedString("stopCastingButton", 27 html_source->AddLocalizedString("stopCastingButton",
26 IDS_MEDIA_ROUTER_STOP_CASTING_BUTTON); 28 IDS_MEDIA_ROUTER_STOP_CASTING_BUTTON);
27 } 29 }
28 30
29 } // namespace 31 } // namespace
30 32
31 namespace media_router { 33 namespace media_router {
32 34
33 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 35 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
34 AddMediaRouterStrings(html_source); 36 AddMediaRouterStrings(html_source);
35 AddRouteDetailsStrings(html_source); 37 AddRouteDetailsStrings(html_source);
36 html_source->SetJsonPath(kLocalizedStringsFile); 38 html_source->SetJsonPath(kLocalizedStringsFile);
37 } 39 }
38 40
39 } // namespace media_router 41 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698