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

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

Issue 2264673002: [CUPS] Implement Advanced section in CUPS printer details page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address michaelpg@'s comments. 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/resources/settings/printing_page/cups_printer_details_page.js ('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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 {"addCupsPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_ADD_PRINTER}, 994 {"addCupsPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_ADD_PRINTER},
995 {"cupsPrinterDetails", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_DETAILS}, 995 {"cupsPrinterDetails", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_DETAILS},
996 {"removePrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_REMOVE}, 996 {"removePrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_REMOVE},
997 {"searchLabel", IDS_SETTINGS_PRINTING_CUPS_SEARCH_LABEL}, 997 {"searchLabel", IDS_SETTINGS_PRINTING_CUPS_SEARCH_LABEL},
998 {"printerDetailsTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_TITLE}, 998 {"printerDetailsTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_TITLE},
999 {"printerName", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_NAME}, 999 {"printerName", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_NAME},
1000 {"printerModel", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_MODEL}, 1000 {"printerModel", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_MODEL},
1001 {"addPrinterTitle", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_TITLE}, 1001 {"addPrinterTitle", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_TITLE},
1002 {"cancelButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_CANCEL}, 1002 {"cancelButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_CANCEL},
1003 {"addPrinterButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_ADD}, 1003 {"addPrinterButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_ADD},
1004 {"printerDetailsAdvanced", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED},
1005 {"printerAddress", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_ADDRESS},
1006 {"printerProtocol", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_PROTOCOL},
1004 #endif 1007 #endif
1005 }; 1008 };
1006 AddLocalizedStringsBulk(html_source, localized_strings, 1009 AddLocalizedStringsBulk(html_source, localized_strings,
1007 arraysize(localized_strings)); 1010 arraysize(localized_strings));
1008 1011
1009 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); 1012 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL);
1010 html_source->AddString("printingCloudPrintLearnMoreUrl", 1013 html_source->AddString("printingCloudPrintLearnMoreUrl",
1011 chrome::kCloudPrintLearnMoreURL); 1014 chrome::kCloudPrintLearnMoreURL);
1012 } 1015 }
1013 1016
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 #endif 1437 #endif
1435 AddUsersStrings(html_source); 1438 AddUsersStrings(html_source);
1436 AddWebContentStrings(html_source); 1439 AddWebContentStrings(html_source);
1437 1440
1438 policy_indicator::AddLocalizedStrings(html_source); 1441 policy_indicator::AddLocalizedStrings(html_source);
1439 1442
1440 html_source->SetJsonPath(kLocalizedStringsFile); 1443 html_source->SetJsonPath(kLocalizedStringsFile);
1441 } 1444 }
1442 1445
1443 } // namespace settings 1446 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/printing_page/cups_printer_details_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698