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..6882afa9c87fa8f55c936b9b3aaa0f006721ed71 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>} |
|
dpapad
2017/01/12 19:32:50
Can you document the returned object with a typede
skau
2017/01/12 23:24:04
Done.
|
| + */ |
| + setupPrinter: function(printerId) { |
| + return cr.sendWithPromise('setupPrinter', printerId); |
| + }, |
| + |
| + /** |
| * @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. |