OLD | NEW |
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/close-gray.png", | |
14 IDR_CLOSE_GRAY_ICON); | |
15 html_source->AddResourcePath("elements/icon/close-gray2x.png", | |
16 IDR_CLOSE_GRAY_2X_ICON); | |
17 html_source->AddResourcePath("elements/icon/drop-down-arrow.png", | 13 html_source->AddResourcePath("elements/icon/drop-down-arrow.png", |
18 IDR_DROP_DOWN_ARROW_ICON); | 14 IDR_DROP_DOWN_ARROW_ICON); |
19 html_source->AddResourcePath("elements/icon/drop-down-arrow2x.png", | 15 html_source->AddResourcePath("elements/icon/drop-down-arrow2x.png", |
20 IDR_DROP_DOWN_ARROW_2X_ICON); | 16 IDR_DROP_DOWN_ARROW_2X_ICON); |
21 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover.png", | 17 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover.png", |
22 IDR_DROP_DOWN_ARROW_HOVER_ICON); | 18 IDR_DROP_DOWN_ARROW_HOVER_ICON); |
23 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover2x.png", | 19 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover2x.png", |
24 IDR_DROP_DOWN_ARROW_HOVER_2X_ICON); | 20 IDR_DROP_DOWN_ARROW_HOVER_2X_ICON); |
25 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing.png", | 21 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing.png", |
26 IDR_DROP_DOWN_ARROW_SHOWING_ICON); | 22 IDR_DROP_DOWN_ARROW_SHOWING_ICON); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 namespace media_router { | 93 namespace media_router { |
98 | 94 |
99 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) { | 95 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) { |
100 AddIcons(html_source); | 96 AddIcons(html_source); |
101 AddMainWebResources(html_source); | 97 AddMainWebResources(html_source); |
102 AddPolymerElements(html_source); | 98 AddPolymerElements(html_source); |
103 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML); | 99 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML); |
104 } | 100 } |
105 | 101 |
106 } // namespace media_router | 102 } // namespace media_router |
OLD | NEW |