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

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

Issue 2725503002: [Media Router] Custom Controls 4 - Implement details view WebUI (Closed)
Patch Set: Add braces to @implements {Interface} Created 3 years, 6 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 {
(...skipping 18 matching lines...) Expand all
29 IDS_MEDIA_ROUTER_VIEW_DEVICE_LIST_BUTTON_TITLE); 29 IDS_MEDIA_ROUTER_VIEW_DEVICE_LIST_BUTTON_TITLE);
30 } 30 }
31 31
32 void AddRouteDetailsStrings(content::WebUIDataSource* html_source) { 32 void AddRouteDetailsStrings(content::WebUIDataSource* html_source) {
33 html_source->AddLocalizedString("castingActivityStatus", 33 html_source->AddLocalizedString("castingActivityStatus",
34 IDS_MEDIA_ROUTER_CASTING_ACTIVITY_STATUS); 34 IDS_MEDIA_ROUTER_CASTING_ACTIVITY_STATUS);
35 html_source->AddLocalizedString("stopCastingButtonText", 35 html_source->AddLocalizedString("stopCastingButtonText",
36 IDS_MEDIA_ROUTER_STOP_CASTING_BUTTON); 36 IDS_MEDIA_ROUTER_STOP_CASTING_BUTTON);
37 html_source->AddLocalizedString("startCastingButtonText", 37 html_source->AddLocalizedString("startCastingButtonText",
38 IDS_MEDIA_ROUTER_START_CASTING_BUTTON); 38 IDS_MEDIA_ROUTER_START_CASTING_BUTTON);
39 html_source->AddLocalizedString("playTitle",
40 IDS_MEDIA_ROUTER_ROUTE_DETAILS_PLAY_TITLE);
41 html_source->AddLocalizedString("pauseTitle",
42 IDS_MEDIA_ROUTER_ROUTE_DETAILS_PAUSE_TITLE);
43 html_source->AddLocalizedString("muteTitle",
44 IDS_MEDIA_ROUTER_ROUTE_DETAILS_MUTE_TITLE);
45 html_source->AddLocalizedString("unmuteTitle",
46 IDS_MEDIA_ROUTER_ROUTE_DETAILS_UNMUTE_TITLE);
47 html_source->AddLocalizedString("seekTitle",
48 IDS_MEDIA_ROUTER_ROUTE_DETAILS_SEEK_TITLE);
49 html_source->AddLocalizedString("volumeTitle",
50 IDS_MEDIA_ROUTER_ROUTE_DETAILS_VOLUME_TITLE);
39 } 51 }
40 52
41 void AddIssuesStrings(content::WebUIDataSource* html_source) { 53 void AddIssuesStrings(content::WebUIDataSource* html_source) {
42 html_source->AddLocalizedString("dismissButton", 54 html_source->AddLocalizedString("dismissButton",
43 IDS_MEDIA_ROUTER_DISMISS_BUTTON); 55 IDS_MEDIA_ROUTER_DISMISS_BUTTON);
44 html_source->AddLocalizedString("issueHeaderText", 56 html_source->AddLocalizedString("issueHeaderText",
45 IDS_MEDIA_ROUTER_ISSUE_HEADER); 57 IDS_MEDIA_ROUTER_ISSUE_HEADER);
46 } 58 }
47 59
48 void AddMediaRouterContainerStrings(content::WebUIDataSource* html_source) { 60 void AddMediaRouterContainerStrings(content::WebUIDataSource* html_source) {
(...skipping 25 matching lines...) Expand all
74 86
75 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 87 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
76 AddMediaRouterStrings(html_source); 88 AddMediaRouterStrings(html_source);
77 AddRouteDetailsStrings(html_source); 89 AddRouteDetailsStrings(html_source);
78 AddIssuesStrings(html_source); 90 AddIssuesStrings(html_source);
79 AddMediaRouterContainerStrings(html_source); 91 AddMediaRouterContainerStrings(html_source);
80 html_source->SetJsonPath(kLocalizedStringsFile); 92 html_source->SetJsonPath(kLocalizedStringsFile);
81 } 93 }
82 94
83 } // namespace media_router 95 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698