Chromium Code Reviews| Index: chrome/browser/resources/print_preview/native_layer.js |
| diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js |
| index e0c54bc360b0fe104d2f383b49db9cabe8577fe0..974aacacd837443d6eead728571bd268367ecc51 100644 |
| --- a/chrome/browser/resources/print_preview/native_layer.js |
| +++ b/chrome/browser/resources/print_preview/native_layer.js |
| @@ -232,6 +232,15 @@ cr.define('print_preview', function() { |
| }, |
| /** |
| + * Requests that Chrome peform printer setup for the given printer. |
| + * @param {string} printerId |
| + * @return {!Promise<Object>} |
| + */ |
| + setupPrinter: function(printerId) { |
| + return cr.sendWithPromise('setupPrinter', [printerId]); |
|
dpapad
2017/01/12 01:18:10
Why do you need to wrap |printerId| in an array? S
skau
2017/01/12 02:17:17
I've unwrapped it. Send needed it to be wrapped.
|
| + }, |
| + |
| + /** |
| * @param {!print_preview.Destination} destination Destination to print to. |
| * @param {!print_preview.ticket_items.Color} color Color ticket item. |
| * @return {number} Native layer color model. |