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

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

Issue 1133853003: Media Router: Replace sink custom elements with core/paper elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_sink_picker/media_router_sink_picker.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_resources_provider.h " 5 #include "chrome/browser/ui/webui/media_router/media_router_resources_provider.h "
6 6
7 #include "content/public/browser/web_ui_data_source.h" 7 #include "content/public/browser/web_ui_data_source.h"
8 #include "grit/browser_resources.h" 8 #include "grit/browser_resources.h"
9 9
10 namespace { 10 namespace {
11 11
12 void AddIcons(content::WebUIDataSource* html_source) { 12 void AddIcons(content::WebUIDataSource* html_source) {
13 html_source->AddResourcePath("elements/icon/chromecast-icon.png",
14 IDR_MEDIA_ROUTER_CHROMECAST_ICON);
15 html_source->AddResourcePath("elements/icon/chromecast-icon2x.png",
16 IDR_MEDIA_ROUTER_CHROMECAST_2X_ICON);
17 html_source->AddResourcePath("elements/icon/close-gray.png", 13 html_source->AddResourcePath("elements/icon/close-gray.png",
18 IDR_CLOSE_GRAY_ICON); 14 IDR_CLOSE_GRAY_ICON);
19 html_source->AddResourcePath("elements/icon/close-gray2x.png", 15 html_source->AddResourcePath("elements/icon/close-gray2x.png",
20 IDR_CLOSE_GRAY_2X_ICON); 16 IDR_CLOSE_GRAY_2X_ICON);
21 html_source->AddResourcePath("elements/icon/drop-down-arrow.png", 17 html_source->AddResourcePath("elements/icon/drop-down-arrow.png",
22 IDR_DROP_DOWN_ARROW_ICON); 18 IDR_DROP_DOWN_ARROW_ICON);
23 html_source->AddResourcePath("elements/icon/drop-down-arrow2x.png", 19 html_source->AddResourcePath("elements/icon/drop-down-arrow2x.png",
24 IDR_DROP_DOWN_ARROW_2X_ICON); 20 IDR_DROP_DOWN_ARROW_2X_ICON);
25 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover.png", 21 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover.png",
26 IDR_DROP_DOWN_ARROW_HOVER_ICON); 22 IDR_DROP_DOWN_ARROW_HOVER_ICON);
27 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover2x.png", 23 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover2x.png",
28 IDR_DROP_DOWN_ARROW_HOVER_2X_ICON); 24 IDR_DROP_DOWN_ARROW_HOVER_2X_ICON);
29 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing.png", 25 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing.png",
30 IDR_DROP_DOWN_ARROW_SHOWING_ICON); 26 IDR_DROP_DOWN_ARROW_SHOWING_ICON);
31 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing2x.png", 27 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing2x.png",
32 IDR_DROP_DOWN_ARROW_SHOWING_2X_ICON); 28 IDR_DROP_DOWN_ARROW_SHOWING_2X_ICON);
33 html_source->AddResourcePath("elements/icon/generic-device.png",
34 IDR_MEDIA_ROUTER_GENERIC_DEVICE_2X_ICON);
35 html_source->AddResourcePath("elements/icon/generic-device2x.png",
36 IDR_MEDIA_ROUTER_GENERIC_DEVICE_2X_ICON);
37 html_source->AddResourcePath("elements/icon/hangouts-icon.png",
38 IDR_MEDIA_ROUTER_HANGOUTS_2X_ICON);
39 html_source->AddResourcePath("elements/icon/hangouts-icon2x.png",
40 IDR_MEDIA_ROUTER_HANGOUTS_2X_ICON);
41 html_source->AddResourcePath("elements/icon/sad-face.png", 29 html_source->AddResourcePath("elements/icon/sad-face.png",
42 IDR_SAD_FACE_ICON); 30 IDR_SAD_FACE_ICON);
43 html_source->AddResourcePath("elements/icon/sad-face2x.png", 31 html_source->AddResourcePath("elements/icon/sad-face2x.png",
44 IDR_SAD_FACE_2X_ICON); 32 IDR_SAD_FACE_2X_ICON);
45 } 33 }
46 34
47 void AddMainWebResources(content::WebUIDataSource* html_source) { 35 void AddMainWebResources(content::WebUIDataSource* html_source) {
48 html_source->AddResourcePath("media_router.js", IDR_MEDIA_ROUTER_JS); 36 html_source->AddResourcePath("media_router.js", IDR_MEDIA_ROUTER_JS);
49 html_source->AddResourcePath("media_router_common.css", 37 html_source->AddResourcePath("media_router_common.css",
50 IDR_MEDIA_ROUTER_COMMON_CSS); 38 IDR_MEDIA_ROUTER_COMMON_CSS);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 html_source->AddResourcePath( 75 html_source->AddResourcePath(
88 "elements/media_router_container/media_router_container.css", 76 "elements/media_router_container/media_router_container.css",
89 IDR_MEDIA_ROUTER_CONTAINER_CSS); 77 IDR_MEDIA_ROUTER_CONTAINER_CSS);
90 html_source->AddResourcePath( 78 html_source->AddResourcePath(
91 "elements/media_router_container/media_router_container.html", 79 "elements/media_router_container/media_router_container.html",
92 IDR_MEDIA_ROUTER_CONTAINER_HTML); 80 IDR_MEDIA_ROUTER_CONTAINER_HTML);
93 html_source->AddResourcePath( 81 html_source->AddResourcePath(
94 "elements/media_router_container/media_router_container.js", 82 "elements/media_router_container/media_router_container.js",
95 IDR_MEDIA_ROUTER_CONTAINER_JS); 83 IDR_MEDIA_ROUTER_CONTAINER_JS);
96 html_source->AddResourcePath( 84 html_source->AddResourcePath(
97 "elements/media_router_sink/media_router_sink.css",
98 IDR_MEDIA_ROUTER_SINK_CSS);
99 html_source->AddResourcePath(
100 "elements/media_router_sink/media_router_sink.html",
101 IDR_MEDIA_ROUTER_SINK_HTML);
102 html_source->AddResourcePath(
103 "elements/media_router_sink/media_router_sink.js",
104 IDR_MEDIA_ROUTER_SINK_JS);
105 html_source->AddResourcePath(
106 "elements/media_router_sink_picker/media_router_sink_picker.html",
107 IDR_MEDIA_ROUTER_SINK_PICKER_HTML);
108 html_source->AddResourcePath(
109 "elements/media_router_sink_picker/media_router_sink_picker.js",
110 IDR_MEDIA_ROUTER_SINK_PICKER_JS);
111 html_source->AddResourcePath(
112 "elements/route_details/route_details.css", 85 "elements/route_details/route_details.css",
113 IDR_ROUTE_DETAILS_CSS); 86 IDR_ROUTE_DETAILS_CSS);
114 html_source->AddResourcePath( 87 html_source->AddResourcePath(
115 "elements/route_details/route_details.html", 88 "elements/route_details/route_details.html",
116 IDR_ROUTE_DETAILS_HTML); 89 IDR_ROUTE_DETAILS_HTML);
117 html_source->AddResourcePath( 90 html_source->AddResourcePath(
118 "elements/route_details/route_details.js", 91 "elements/route_details/route_details.js",
119 IDR_ROUTE_DETAILS_JS); 92 IDR_ROUTE_DETAILS_JS);
120 } 93 }
121 94
122 } // namespace 95 } // namespace
123 96
124 namespace media_router { 97 namespace media_router {
125 98
126 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) { 99 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) {
127 AddIcons(html_source); 100 AddIcons(html_source);
128 AddMainWebResources(html_source); 101 AddMainWebResources(html_source);
129 AddPolymerElements(html_source); 102 AddPolymerElements(html_source);
130 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML); 103 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML);
131 } 104 }
132 105
133 } // namespace media_router 106 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_sink_picker/media_router_sink_picker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698