| Index: chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js
|
| diff --git a/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js b/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js
|
| index c02a562f92b338e9ae47e3da01ac003f46170778..fb3720255f182a1d775ec285cdfaf66e45f9eed2 100644
|
| --- a/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js
|
| +++ b/chrome/browser/resources/settings/printing_page/cups_printers_browser_proxy.js
|
| @@ -18,7 +18,8 @@
|
| * printerPPDPath: string,
|
| * printerProtocol: string,
|
| * printerQueue: string,
|
| - * printerStatus: string
|
| + * printerStatus: string,
|
| + * autoconf: bool
|
| * }}
|
| */
|
| var CupsPrinterInfo;
|
| @@ -46,6 +47,22 @@ var ManufacturersInfo;
|
| */
|
| var ModelsInfo;
|
|
|
| +/**
|
| + * @typedef {{
|
| + * manufacturer: string,
|
| + * model: string,
|
| + * autoconf: bool
|
| + * }}
|
| + */
|
| +var PrinterMakeModel;
|
| +
|
| +/**
|
| + * @typedef {{
|
| + * message: string
|
| + * }}
|
| + */
|
| +var QueryFailure;
|
| +
|
| cr.define('settings', function() {
|
| /** @interface */
|
| function CupsPrintersBrowserProxy() {}
|
| @@ -93,6 +110,12 @@ cr.define('settings', function() {
|
| * @return {!Promise<!ModelsInfo>}
|
| */
|
| getCupsPrinterModelsList: function(manufacturer) {},
|
| +
|
| + /**
|
| + * @param {!CupsPrinterInfo} newPrinter
|
| + * @return {!Promise<!PrinterMakeModel>}
|
| + */
|
| + getPrinterInfo: function(newPrinter) {},
|
| };
|
|
|
| /**
|
| @@ -147,6 +170,11 @@ cr.define('settings', function() {
|
| getCupsPrinterModelsList: function(manufacturer) {
|
| return cr.sendWithPromise('getCupsPrinterModelsList', manufacturer);
|
| },
|
| +
|
| + /** @override */
|
| + getPrinterInfo: function(newPrinter) {
|
| + return cr.sendWithPromise('getPrinterInfo', newPrinter);
|
| + },
|
| };
|
|
|
| return {
|
|
|