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 * Ticket item whose value is a {@code boolean} that represents whether to | 9 * Ticket item whose value is a {@code boolean} that represents whether to |
10 * print selection only. | 10 * print selection only. |
11 * @param {!print_preview.DocumentInfo} documentInfo Information about the | 11 * @param {!print_preview.DocumentInfo} documentInfo Information about the |
12 * document to print. | 12 * document to print. |
13 * @constructor | 13 * @constructor |
14 * @extends {print_preview.ticket_items.TicketItem} | 14 * @extends {print_preview.ticket_items.TicketItem} |
15 */ | 15 */ |
16 function SelectionOnly(documentInfo) { | 16 function SelectionOnly(documentInfo) { |
17 print_preview.ticket_items.TicketItem.call( | 17 print_preview.ticket_items.TicketItem.call( |
18 this, | 18 this, |
19 null /*appState*/, | 19 null /*appState*/, |
20 null /*field*/, | 20 null /*field*/, |
21 null /*destinationStore*/, | 21 null /*destinationStore*/, |
22 documentInfo); | 22 documentInfo); |
23 }; | 23 } |
24 | 24 |
25 SelectionOnly.prototype = { | 25 SelectionOnly.prototype = { |
26 __proto__: print_preview.ticket_items.TicketItem.prototype, | 26 __proto__: print_preview.ticket_items.TicketItem.prototype, |
27 | 27 |
28 /** @override */ | 28 /** @override */ |
29 wouldValueBeValid: function(value) { | 29 wouldValueBeValid: function(value) { |
30 return true; | 30 return true; |
31 }, | 31 }, |
32 | 32 |
33 /** @override */ | 33 /** @override */ |
(...skipping 11 matching lines...) Expand all Loading... |
45 getCapabilityNotAvailableValueInternal: function() { | 45 getCapabilityNotAvailableValueInternal: function() { |
46 return false; | 46 return false; |
47 } | 47 } |
48 }; | 48 }; |
49 | 49 |
50 // Export | 50 // Export |
51 return { | 51 return { |
52 SelectionOnly: SelectionOnly | 52 SelectionOnly: SelectionOnly |
53 }; | 53 }; |
54 }); | 54 }); |
OLD | NEW |