| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/device_log_ui.h" | 5 #include "chrome/browser/ui/webui/device_log_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 html->AddLocalizedString("logLevelUserText", IDS_DEVICE_LOG_LEVEL_USER); | 65 html->AddLocalizedString("logLevelUserText", IDS_DEVICE_LOG_LEVEL_USER); |
| 66 html->AddLocalizedString("logLevelEventText", IDS_DEVICE_LOG_LEVEL_EVENT); | 66 html->AddLocalizedString("logLevelEventText", IDS_DEVICE_LOG_LEVEL_EVENT); |
| 67 html->AddLocalizedString("logLevelDebugText", IDS_DEVICE_LOG_LEVEL_DEBUG); | 67 html->AddLocalizedString("logLevelDebugText", IDS_DEVICE_LOG_LEVEL_DEBUG); |
| 68 html->AddLocalizedString("logLevelFileinfoText", IDS_DEVICE_LOG_FILEINFO); | 68 html->AddLocalizedString("logLevelFileinfoText", IDS_DEVICE_LOG_FILEINFO); |
| 69 html->AddLocalizedString("logLevelTimeDetailText", | 69 html->AddLocalizedString("logLevelTimeDetailText", |
| 70 IDS_DEVICE_LOG_TIME_DETAIL); | 70 IDS_DEVICE_LOG_TIME_DETAIL); |
| 71 | 71 |
| 72 html->AddLocalizedString("logTypeLoginText", IDS_DEVICE_LOG_TYPE_LOGIN); | 72 html->AddLocalizedString("logTypeLoginText", IDS_DEVICE_LOG_TYPE_LOGIN); |
| 73 html->AddLocalizedString("logTypeNetworkText", IDS_DEVICE_LOG_TYPE_NETWORK); | 73 html->AddLocalizedString("logTypeNetworkText", IDS_DEVICE_LOG_TYPE_NETWORK); |
| 74 html->AddLocalizedString("logTypePowerText", IDS_DEVICE_LOG_TYPE_POWER); | 74 html->AddLocalizedString("logTypePowerText", IDS_DEVICE_LOG_TYPE_POWER); |
| 75 html->AddLocalizedString("logTypeBluetoothText", | |
| 76 IDS_DEVICE_LOG_TYPE_BLUETOOTH); | |
| 77 html->AddLocalizedString("logTypeUsbText", IDS_DEVICE_LOG_TYPE_USB); | 75 html->AddLocalizedString("logTypeUsbText", IDS_DEVICE_LOG_TYPE_USB); |
| 78 html->AddLocalizedString("logTypeHidText", IDS_DEVICE_LOG_TYPE_HID); | 76 html->AddLocalizedString("logTypeHidText", IDS_DEVICE_LOG_TYPE_HID); |
| 79 | 77 |
| 80 html->AddLocalizedString("logEntryFormat", IDS_DEVICE_LOG_ENTRY); | 78 html->AddLocalizedString("logEntryFormat", IDS_DEVICE_LOG_ENTRY); |
| 81 html->SetJsonPath("strings.js"); | 79 html->SetJsonPath("strings.js"); |
| 82 html->AddResourcePath("device_log_ui.css", IDR_DEVICE_LOG_UI_CSS); | 80 html->AddResourcePath("device_log_ui.css", IDR_DEVICE_LOG_UI_CSS); |
| 83 html->AddResourcePath("device_log_ui.js", IDR_DEVICE_LOG_UI_JS); | 81 html->AddResourcePath("device_log_ui.js", IDR_DEVICE_LOG_UI_JS); |
| 84 html->SetDefaultResource(IDR_DEVICE_LOG_UI_HTML); | 82 html->SetDefaultResource(IDR_DEVICE_LOG_UI_HTML); |
| 85 | 83 |
| 86 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), | 84 content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), |
| 87 html); | 85 html); |
| 88 } | 86 } |
| 89 | 87 |
| 90 DeviceLogUI::~DeviceLogUI() { | 88 DeviceLogUI::~DeviceLogUI() { |
| 91 } | 89 } |
| 92 | 90 |
| 93 } // namespace chromeos | 91 } // namespace chromeos |
| OLD | NEW |