| 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 { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 html_source->AddResourcePath("media_router.css", | 23 html_source->AddResourcePath("media_router.css", |
| 24 IDR_MEDIA_ROUTER_CSS); | 24 IDR_MEDIA_ROUTER_CSS); |
| 25 html_source->AddResourcePath("media_router_data.js", | 25 html_source->AddResourcePath("media_router_data.js", |
| 26 IDR_MEDIA_ROUTER_DATA_JS); | 26 IDR_MEDIA_ROUTER_DATA_JS); |
| 27 html_source->AddResourcePath("media_router_ui_interface.js", | 27 html_source->AddResourcePath("media_router_ui_interface.js", |
| 28 IDR_MEDIA_ROUTER_UI_INTERFACE_JS); | 28 IDR_MEDIA_ROUTER_UI_INTERFACE_JS); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void AddPolymerElements(content::WebUIDataSource* html_source) { | 31 void AddPolymerElements(content::WebUIDataSource* html_source) { |
| 32 html_source->AddResourcePath( | 32 html_source->AddResourcePath( |
| 33 "elements/cast_mode_picker/cast_mode_picker.css", | |
| 34 IDR_CAST_MODE_PICKER_CSS); | |
| 35 html_source->AddResourcePath( | |
| 36 "elements/cast_mode_picker/cast_mode_picker.html", | |
| 37 IDR_CAST_MODE_PICKER_HTML); | |
| 38 html_source->AddResourcePath( | |
| 39 "elements/cast_mode_picker/cast_mode_picker.js", | |
| 40 IDR_CAST_MODE_PICKER_JS); | |
| 41 html_source->AddResourcePath( | |
| 42 "elements/issue_banner/issue_banner.css", | 33 "elements/issue_banner/issue_banner.css", |
| 43 IDR_ISSUE_BANNER_CSS); | 34 IDR_ISSUE_BANNER_CSS); |
| 44 html_source->AddResourcePath( | 35 html_source->AddResourcePath( |
| 45 "elements/issue_banner/issue_banner.html", | 36 "elements/issue_banner/issue_banner.html", |
| 46 IDR_ISSUE_BANNER_HTML); | 37 IDR_ISSUE_BANNER_HTML); |
| 47 html_source->AddResourcePath( | 38 html_source->AddResourcePath( |
| 48 "elements/issue_banner/issue_banner.js", | 39 "elements/issue_banner/issue_banner.js", |
| 49 IDR_ISSUE_BANNER_JS); | 40 IDR_ISSUE_BANNER_JS); |
| 50 html_source->AddResourcePath( | 41 html_source->AddResourcePath( |
| 51 "elements/media_router_container/media_router_container.css", | 42 "elements/media_router_container/media_router_container.css", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 72 namespace media_router { | 63 namespace media_router { |
| 73 | 64 |
| 74 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) { | 65 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) { |
| 75 AddIcons(html_source); | 66 AddIcons(html_source); |
| 76 AddMainWebResources(html_source); | 67 AddMainWebResources(html_source); |
| 77 AddPolymerElements(html_source); | 68 AddPolymerElements(html_source); |
| 78 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML); | 69 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML); |
| 79 } | 70 } |
| 80 | 71 |
| 81 } // namespace media_router | 72 } // namespace media_router |
| OLD | NEW |