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

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

Issue 1128023003: Media Router: Replace drop-down-button with core-icon-button. (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
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/drop-down-arrow.png",
14 IDR_DROP_DOWN_ARROW_ICON);
15 html_source->AddResourcePath("elements/icon/drop-down-arrow2x.png",
16 IDR_DROP_DOWN_ARROW_2X_ICON);
17 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover.png",
18 IDR_DROP_DOWN_ARROW_HOVER_ICON);
19 html_source->AddResourcePath("elements/icon/drop-down-arrow-hover2x.png",
20 IDR_DROP_DOWN_ARROW_HOVER_2X_ICON);
21 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing.png",
22 IDR_DROP_DOWN_ARROW_SHOWING_ICON);
23 html_source->AddResourcePath("elements/icon/drop-down-arrow-showing2x.png",
24 IDR_DROP_DOWN_ARROW_SHOWING_2X_ICON);
25 html_source->AddResourcePath("elements/icon/sad-face.png", 13 html_source->AddResourcePath("elements/icon/sad-face.png",
26 IDR_SAD_FACE_ICON); 14 IDR_SAD_FACE_ICON);
27 html_source->AddResourcePath("elements/icon/sad-face2x.png", 15 html_source->AddResourcePath("elements/icon/sad-face2x.png",
28 IDR_SAD_FACE_2X_ICON); 16 IDR_SAD_FACE_2X_ICON);
29 } 17 }
30 18
31 void AddMainWebResources(content::WebUIDataSource* html_source) { 19 void AddMainWebResources(content::WebUIDataSource* html_source) {
32 html_source->AddResourcePath("media_router.js", IDR_MEDIA_ROUTER_JS); 20 html_source->AddResourcePath("media_router.js", IDR_MEDIA_ROUTER_JS);
33 html_source->AddResourcePath("media_router_common.css", 21 html_source->AddResourcePath("media_router_common.css",
34 IDR_MEDIA_ROUTER_COMMON_CSS); 22 IDR_MEDIA_ROUTER_COMMON_CSS);
35 html_source->AddResourcePath("media_router.css", 23 html_source->AddResourcePath("media_router.css",
36 IDR_MEDIA_ROUTER_CSS); 24 IDR_MEDIA_ROUTER_CSS);
37 html_source->AddResourcePath("media_router_data.js", 25 html_source->AddResourcePath("media_router_data.js",
38 IDR_MEDIA_ROUTER_DATA_JS); 26 IDR_MEDIA_ROUTER_DATA_JS);
39 html_source->AddResourcePath("media_router_ui_interface.js", 27 html_source->AddResourcePath("media_router_ui_interface.js",
40 IDR_MEDIA_ROUTER_UI_INTERFACE_JS); 28 IDR_MEDIA_ROUTER_UI_INTERFACE_JS);
41 } 29 }
42 30
43 void AddPolymerElements(content::WebUIDataSource* html_source) { 31 void AddPolymerElements(content::WebUIDataSource* html_source) {
44 html_source->AddResourcePath( 32 html_source->AddResourcePath(
45 "elements/cast_mode_picker/cast_mode_picker.css", 33 "elements/cast_mode_picker/cast_mode_picker.css",
46 IDR_CAST_MODE_PICKER_CSS); 34 IDR_CAST_MODE_PICKER_CSS);
47 html_source->AddResourcePath( 35 html_source->AddResourcePath(
48 "elements/cast_mode_picker/cast_mode_picker.html", 36 "elements/cast_mode_picker/cast_mode_picker.html",
49 IDR_CAST_MODE_PICKER_HTML); 37 IDR_CAST_MODE_PICKER_HTML);
50 html_source->AddResourcePath( 38 html_source->AddResourcePath(
51 "elements/cast_mode_picker/cast_mode_picker.js", 39 "elements/cast_mode_picker/cast_mode_picker.js",
52 IDR_CAST_MODE_PICKER_JS); 40 IDR_CAST_MODE_PICKER_JS);
53 html_source->AddResourcePath( 41 html_source->AddResourcePath(
54 "elements/drop_down_button/drop_down_button.css",
55 IDR_DROP_DOWN_BUTTON_CSS);
56 html_source->AddResourcePath(
57 "elements/drop_down_button/drop_down_button.html",
58 IDR_DROP_DOWN_BUTTON_HTML);
59 html_source->AddResourcePath(
60 "elements/drop_down_button/drop_down_button.js",
61 IDR_DROP_DOWN_BUTTON_JS);
62 html_source->AddResourcePath(
63 "elements/issue_banner/issue_banner.css", 42 "elements/issue_banner/issue_banner.css",
64 IDR_ISSUE_BANNER_CSS); 43 IDR_ISSUE_BANNER_CSS);
65 html_source->AddResourcePath( 44 html_source->AddResourcePath(
66 "elements/issue_banner/issue_banner.html", 45 "elements/issue_banner/issue_banner.html",
67 IDR_ISSUE_BANNER_HTML); 46 IDR_ISSUE_BANNER_HTML);
68 html_source->AddResourcePath( 47 html_source->AddResourcePath(
69 "elements/issue_banner/issue_banner.js", 48 "elements/issue_banner/issue_banner.js",
70 IDR_ISSUE_BANNER_JS); 49 IDR_ISSUE_BANNER_JS);
71 html_source->AddResourcePath( 50 html_source->AddResourcePath(
72 "elements/media_router_container/media_router_container.css", 51 "elements/media_router_container/media_router_container.css",
(...skipping 20 matching lines...) Expand all
93 namespace media_router { 72 namespace media_router {
94 73
95 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) { 74 void AddMediaRouterUIResources(content::WebUIDataSource* html_source) {
96 AddIcons(html_source); 75 AddIcons(html_source);
97 AddMainWebResources(html_source); 76 AddMainWebResources(html_source);
98 AddPolymerElements(html_source); 77 AddPolymerElements(html_source);
99 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML); 78 html_source->SetDefaultResource(IDR_MEDIA_ROUTER_HTML);
100 } 79 }
101 80
102 } // namespace media_router 81 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698