| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 getCapabilityNotAvailableValueInternal: function() { | 54 getCapabilityNotAvailableValueInternal: function() { |
| 55 return '1'; | 55 return '1'; |
| 56 }, | 56 }, |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * @return {Object} Copies capability of the selected destination. | 59 * @return {Object} Copies capability of the selected destination. |
| 60 * @private | 60 * @private |
| 61 */ | 61 */ |
| 62 getCopiesCapability_: function() { | 62 getCopiesCapability_: function() { |
| 63 var dest = this.getSelectedDestInternal(); | 63 var dest = this.getSelectedDestInternal(); |
| 64 return (dest && | 64 return (dest && dest.capabilities && dest.capabilities.printer && |
| 65 dest.capabilities && | |
| 66 dest.capabilities.printer && | |
| 67 dest.capabilities.printer.copies) || | 65 dest.capabilities.printer.copies) || |
| 68 null; | 66 null; |
| 69 } | 67 } |
| 70 }; | 68 }; |
| 71 | 69 |
| 72 // Export | 70 // Export |
| 73 return { | 71 return {Copies: Copies}; |
| 74 Copies: Copies | |
| 75 }; | |
| 76 }); | 72 }); |
| OLD | NEW |