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

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

Issue 2154203004: [Media Router WebUI] Update "Device missing?" messaging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_container/media_router_container.html ('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 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 html_source->AddLocalizedString("firstRunFlowText", 51 html_source->AddLocalizedString("firstRunFlowText",
52 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TEXT); 52 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TEXT);
53 html_source->AddLocalizedString("firstRunFlowTitle", 53 html_source->AddLocalizedString("firstRunFlowTitle",
54 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TITLE); 54 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TITLE);
55 #if defined(GOOGLE_CHROME_BUILD) 55 #if defined(GOOGLE_CHROME_BUILD)
56 html_source->AddLocalizedString("firstRunFlowCloudPrefText", 56 html_source->AddLocalizedString("firstRunFlowCloudPrefText",
57 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_CLOUD_PREF_TEXT); 57 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_CLOUD_PREF_TEXT);
58 #endif // defined(GOOGLE_CHROME_BUILD) 58 #endif // defined(GOOGLE_CHROME_BUILD)
59 html_source->AddLocalizedString("autoCastMode", 59 html_source->AddLocalizedString("autoCastMode",
60 IDS_MEDIA_ROUTER_AUTO_CAST_MODE); 60 IDS_MEDIA_ROUTER_AUTO_CAST_MODE);
61 html_source->AddLocalizedString("deviceMissingText", 61 html_source->AddLocalizedString("destinationMissingText",
62 IDS_MEDIA_ROUTER_DEVICE_MISSING); 62 IDS_MEDIA_ROUTER_DESTINATION_MISSING);
63 html_source->AddLocalizedString("searchInputLabel", 63 html_source->AddLocalizedString("searchInputLabel",
64 IDS_MEDIA_ROUTER_SEARCH_LABEL); 64 IDS_MEDIA_ROUTER_SEARCH_LABEL);
65 html_source->AddLocalizedString("searchNoMatchesText", 65 html_source->AddLocalizedString("searchNoMatchesText",
66 IDS_MEDIA_ROUTER_SEARCH_NO_MATCHES); 66 IDS_MEDIA_ROUTER_SEARCH_NO_MATCHES);
67 html_source->AddLocalizedString("selectCastModeHeaderText", 67 html_source->AddLocalizedString("selectCastModeHeaderText",
68 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER); 68 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER);
69 html_source->AddLocalizedString("shareYourScreenSubheadingText", 69 html_source->AddLocalizedString("shareYourScreenSubheadingText",
70 IDS_MEDIA_ROUTER_SHARE_YOUR_SCREEN_SUBHEADING); 70 IDS_MEDIA_ROUTER_SHARE_YOUR_SCREEN_SUBHEADING);
71 } 71 }
72 72
73 } // namespace 73 } // namespace
74 74
75 namespace media_router { 75 namespace media_router {
76 76
77 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 77 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
78 AddMediaRouterStrings(html_source); 78 AddMediaRouterStrings(html_source);
79 AddRouteDetailsStrings(html_source); 79 AddRouteDetailsStrings(html_source);
80 AddIssuesStrings(html_source); 80 AddIssuesStrings(html_source);
81 AddMediaRouterContainerStrings(html_source); 81 AddMediaRouterContainerStrings(html_source);
82 html_source->SetJsonPath(kLocalizedStringsFile); 82 html_source->SetJsonPath(kLocalizedStringsFile);
83 } 83 }
84 84
85 } // namespace media_router 85 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698