Chromium Code Reviews| 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 d53eb12854981bcf1e8ffe7e89717e1fa2181891..c551db0d9b5b8f533de0129b16a7630e9cbd6f13 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 |
| @@ -49,8 +49,12 @@ cr.define('settings', function() { |
| /** |
| * @param {string} printerId |
|
michaelpg
2016/09/20 20:58:42
add param
xdai1
2016/09/21 17:40:19
Done.
|
| */ |
| - removeCupsPrinter: function(printerId) {}, |
| + removeCupsPrinter: function(printerId, printerName) {}, |
| + /** |
| + * @param {!CupsPrinterInfo} newPrinter |
| + */ |
| + addCupsPrinter: function(newPrinter) {}, |
| }; |
| /** |
| @@ -61,19 +65,24 @@ cr.define('settings', function() { |
| cr.addSingletonGetter(CupsPrintersBrowserProxyImpl); |
| CupsPrintersBrowserProxyImpl.prototype = { |
| - /** override */ |
| + /** @override */ |
| getCupsPrintersList: function() { |
| return cr.sendWithPromise('getCupsPrintersList'); |
| }, |
| - /** override */ |
| + /** @override */ |
| updateCupsPrinter: function(printerId, printerName) { |
| chrome.send('updateCupsPrinter', [printerId, printerName]); |
| }, |
| - /** override */ |
| - removeCupsPrinter: function(printerId) { |
| - chrome.send('removeCupsPrinter', [printerId]); |
| + /** @override */ |
| + removeCupsPrinter: function(printerId, printerName) { |
| + chrome.send('removeCupsPrinter', [printerId, printerName]); |
| + }, |
| + |
| + /** @override */ |
| + addCupsPrinter: function(newPrinter) { |
| + chrome.send('addCupsPrinter', [newPrinter]); |
| }, |
| }; |