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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2332483002: [CUPS] Implement the CUPS printer PPD file picker in the manufacturer and model dialog. (Closed)
Patch Set: Fix the failed closure_compilation trybot. Created 4 years, 3 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
« no previous file with comments | « chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 {"printerProtocolLpd", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_LPD}, 1089 {"printerProtocolLpd", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_LPD},
1090 {"printerProtocolUsb", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_USB}, 1090 {"printerProtocolUsb", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_USB},
1091 {"printerConfiguringMessage", 1091 {"printerConfiguringMessage",
1092 IDS_SETTINGS_PRINTING_CUPS_PRINTER_CONFIGURING_MESSAGE}, 1092 IDS_SETTINGS_PRINTING_CUPS_PRINTER_CONFIGURING_MESSAGE},
1093 {"searchingPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SEARCHING_PRINTER}, 1093 {"searchingPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SEARCHING_PRINTER},
1094 {"printerNotFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_NOT_FOUND_PRINTER}, 1094 {"printerNotFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_NOT_FOUND_PRINTER},
1095 {"printerFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_FOUND_PRINTER}, 1095 {"printerFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_FOUND_PRINTER},
1096 {"selectManufacturerModelMessage", 1096 {"selectManufacturerModelMessage",
1097 IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_MANUFACTURER_MODEL}, 1097 IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_MANUFACTURER_MODEL},
1098 {"printerManufacturer", IDS_SETTINGS_PRINTING_CUPS_PRINTER_MANUFACTURER}, 1098 {"printerManufacturer", IDS_SETTINGS_PRINTING_CUPS_PRINTER_MANUFACTURER},
1099 {"selectDriver", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_DRIVER},
1100 {"selectDriverButtonText",
1101 IDS_SETTINGS_PRINTING_CUPS_PRINTER_BUTTON_SELECT_DRIVER},
1099 #endif 1102 #endif
1100 }; 1103 };
1101 AddLocalizedStringsBulk(html_source, localized_strings, 1104 AddLocalizedStringsBulk(html_source, localized_strings,
1102 arraysize(localized_strings)); 1105 arraysize(localized_strings));
1103 1106
1104 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); 1107 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL);
1105 html_source->AddString("printingCloudPrintLearnMoreUrl", 1108 html_source->AddString("printingCloudPrintLearnMoreUrl",
1106 chrome::kCloudPrintLearnMoreURL); 1109 chrome::kCloudPrintLearnMoreURL);
1107 1110
1108 #if defined(OS_CHROMEOS) 1111 #if defined(OS_CHROMEOS)
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 #endif 1620 #endif
1618 AddUsersStrings(html_source); 1621 AddUsersStrings(html_source);
1619 AddWebContentStrings(html_source); 1622 AddWebContentStrings(html_source);
1620 1623
1621 policy_indicator::AddLocalizedStrings(html_source); 1624 policy_indicator::AddLocalizedStrings(html_source);
1622 1625
1623 html_source->SetJsonPath(kLocalizedStringsFile); 1626 html_source->SetJsonPath(kLocalizedStringsFile);
1624 } 1627 }
1625 1628
1626 } // namespace settings 1629 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698