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/md_history_ui.h" | 5 #include "chrome/browser/ui/webui/md_history_ui.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/webui/browsing_history_handler.h" | 10 #include "chrome/browser/ui/webui/browsing_history_handler.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 source->AddBoolean("groupByDomain", group_by_domain); | 73 source->AddBoolean("groupByDomain", group_by_domain); |
74 | 74 |
75 source->AddResourcePath("app.html", IDR_MD_HISTORY_APP_HTML); | 75 source->AddResourcePath("app.html", IDR_MD_HISTORY_APP_HTML); |
76 source->AddResourcePath("app.js", IDR_MD_HISTORY_APP_JS); | 76 source->AddResourcePath("app.js", IDR_MD_HISTORY_APP_JS); |
77 source->AddResourcePath("browser_service.html", | 77 source->AddResourcePath("browser_service.html", |
78 IDR_MD_HISTORY_BROWSER_SERVICE_HTML); | 78 IDR_MD_HISTORY_BROWSER_SERVICE_HTML); |
79 source->AddResourcePath("browser_service.js", | 79 source->AddResourcePath("browser_service.js", |
80 IDR_MD_HISTORY_BROWSER_SERVICE_JS); | 80 IDR_MD_HISTORY_BROWSER_SERVICE_JS); |
81 source->AddResourcePath("constants.html", IDR_MD_HISTORY_CONSTANTS_HTML); | 81 source->AddResourcePath("constants.html", IDR_MD_HISTORY_CONSTANTS_HTML); |
82 source->AddResourcePath("constants.js", IDR_MD_HISTORY_CONSTANTS_JS); | 82 source->AddResourcePath("constants.js", IDR_MD_HISTORY_CONSTANTS_JS); |
| 83 source->AddResourcePath("grouped_list.html", |
| 84 IDR_MD_HISTORY_GROUPED_LIST_HTML); |
| 85 source->AddResourcePath("grouped_list.js", IDR_MD_HISTORY_GROUPED_LIST_JS); |
83 source->AddResourcePath("history_item.html", | 86 source->AddResourcePath("history_item.html", |
84 IDR_MD_HISTORY_HISTORY_ITEM_HTML); | 87 IDR_MD_HISTORY_HISTORY_ITEM_HTML); |
85 source->AddResourcePath("history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS); | 88 source->AddResourcePath("history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS); |
86 source->AddResourcePath("history_list.html", | 89 source->AddResourcePath("history_list.html", |
87 IDR_MD_HISTORY_HISTORY_LIST_HTML); | 90 IDR_MD_HISTORY_HISTORY_LIST_HTML); |
88 source->AddResourcePath("history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS); | 91 source->AddResourcePath("history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS); |
89 source->AddResourcePath("history_toolbar.html", | 92 source->AddResourcePath("history_toolbar.html", |
90 IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML); | 93 IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML); |
91 source->AddResourcePath("history_toolbar.js", | 94 source->AddResourcePath("history_toolbar.js", |
92 IDR_MD_HISTORY_HISTORY_TOOLBAR_JS); | 95 IDR_MD_HISTORY_HISTORY_TOOLBAR_JS); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 content::WebUIDataSource::Add(profile, CreateMdHistoryUIHTMLSource(profile)); | 128 content::WebUIDataSource::Add(profile, CreateMdHistoryUIHTMLSource(profile)); |
126 } | 129 } |
127 | 130 |
128 MdHistoryUI::~MdHistoryUI() {} | 131 MdHistoryUI::~MdHistoryUI() {} |
129 | 132 |
130 base::RefCountedMemory* MdHistoryUI::GetFaviconResourceBytes( | 133 base::RefCountedMemory* MdHistoryUI::GetFaviconResourceBytes( |
131 ui::ScaleFactor scale_factor) { | 134 ui::ScaleFactor scale_factor) { |
132 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( | 135 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( |
133 IDR_HISTORY_FAVICON, scale_factor); | 136 IDR_HISTORY_FAVICON, scale_factor); |
134 } | 137 } |
OLD | NEW |