| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 IDR_MD_HISTORY_HISTORY_ITEM_HTML); | 87 IDR_MD_HISTORY_HISTORY_ITEM_HTML); |
| 88 source->AddResourcePath("history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS); | 88 source->AddResourcePath("history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS); |
| 89 source->AddResourcePath("history_list.html", | 89 source->AddResourcePath("history_list.html", |
| 90 IDR_MD_HISTORY_HISTORY_LIST_HTML); | 90 IDR_MD_HISTORY_HISTORY_LIST_HTML); |
| 91 source->AddResourcePath("history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS); | 91 source->AddResourcePath("history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS); |
| 92 source->AddResourcePath("history_toolbar.html", | 92 source->AddResourcePath("history_toolbar.html", |
| 93 IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML); | 93 IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML); |
| 94 source->AddResourcePath("history_toolbar.js", | 94 source->AddResourcePath("history_toolbar.js", |
| 95 IDR_MD_HISTORY_HISTORY_TOOLBAR_JS); | 95 IDR_MD_HISTORY_HISTORY_TOOLBAR_JS); |
| 96 source->AddResourcePath("history.js", IDR_MD_HISTORY_HISTORY_JS); | 96 source->AddResourcePath("history.js", IDR_MD_HISTORY_HISTORY_JS); |
| 97 source->AddResourcePath("icons.html", IDR_MD_HISTORY_ICONS_HTML); |
| 97 source->AddResourcePath("shared_style.html", | 98 source->AddResourcePath("shared_style.html", |
| 98 IDR_MD_HISTORY_SHARED_STYLE_HTML); | 99 IDR_MD_HISTORY_SHARED_STYLE_HTML); |
| 99 source->AddResourcePath("side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML); | 100 source->AddResourcePath("side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML); |
| 100 source->AddResourcePath("side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS); | 101 source->AddResourcePath("side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS); |
| 101 source->AddResourcePath("synced_device_card.html", | 102 source->AddResourcePath("synced_device_card.html", |
| 102 IDR_MD_HISTORY_SYNCED_DEVICE_CARD_HTML); | 103 IDR_MD_HISTORY_SYNCED_DEVICE_CARD_HTML); |
| 103 source->AddResourcePath("synced_device_card.js", | 104 source->AddResourcePath("synced_device_card.js", |
| 104 IDR_MD_HISTORY_SYNCED_DEVICE_CARD_JS); | 105 IDR_MD_HISTORY_SYNCED_DEVICE_CARD_JS); |
| 105 source->AddResourcePath("synced_device_manager.html", | 106 source->AddResourcePath("synced_device_manager.html", |
| 106 IDR_MD_HISTORY_SYNCED_DEVICE_MANAGER_HTML); | 107 IDR_MD_HISTORY_SYNCED_DEVICE_MANAGER_HTML); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 128 content::WebUIDataSource::Add(profile, CreateMdHistoryUIHTMLSource(profile)); | 129 content::WebUIDataSource::Add(profile, CreateMdHistoryUIHTMLSource(profile)); |
| 129 } | 130 } |
| 130 | 131 |
| 131 MdHistoryUI::~MdHistoryUI() {} | 132 MdHistoryUI::~MdHistoryUI() {} |
| 132 | 133 |
| 133 base::RefCountedMemory* MdHistoryUI::GetFaviconResourceBytes( | 134 base::RefCountedMemory* MdHistoryUI::GetFaviconResourceBytes( |
| 134 ui::ScaleFactor scale_factor) { | 135 ui::ScaleFactor scale_factor) { |
| 135 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( | 136 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( |
| 136 IDR_HISTORY_FAVICON, scale_factor); | 137 IDR_HISTORY_FAVICON, scale_factor); |
| 137 } | 138 } |
| OLD | NEW |