| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.define('print_preview.ticket_items', function() { | 5 cr.define('print_preview.ticket_items', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Copies ticket item whose value is a {@code string} that indicates how many | 9 * Copies ticket item whose value is a {@code string} that indicates how many |
| 10 * copies of the document should be printed. The ticket item is backed by a | 10 * copies of the document should be printed. The ticket item is backed by a |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 getCapabilityNotAvailableValueInternal: function() { | 48 getCapabilityNotAvailableValueInternal: function() { |
| 49 return '1'; | 49 return '1'; |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @return {Object} Copies capability of the selected destination. | 53 * @return {Object} Copies capability of the selected destination. |
| 54 * @private | 54 * @private |
| 55 */ | 55 */ |
| 56 getCopiesCapability_: function() { | 56 getCopiesCapability_: function() { |
| 57 var dest = this.getSelectedDestInternal(); | 57 var dest = this.getSelectedDestInternal(); |
| 58 return (dest && | 58 return (dest && dest.capabilities && dest.capabilities.printer && |
| 59 dest.capabilities && | |
| 60 dest.capabilities.printer && | |
| 61 dest.capabilities.printer.copies) || | 59 dest.capabilities.printer.copies) || |
| 62 null; | 60 null; |
| 63 } | 61 } |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 // Export | 64 // Export |
| 67 return { | 65 return {Copies: Copies}; |
| 68 Copies: Copies | |
| 69 }; | |
| 70 }); | 66 }); |
| OLD | NEW |