Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(923)

Side by Side Diff: chrome/browser/resources/print_preview/data/ticket_items/collate.js

Issue 2862203002: Print Preview: Fix data/ errors (Closed)
Patch Set: Fix destination resolver Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * Collate ticket item whose value is a {@code boolean} that indicates whether 9 * Collate ticket item whose value is a {@code boolean} that indicates whether
10 * collation is enabled. 10 * collation is enabled.
11 * @param {!print_preview.AppState} appState App state used to persist collate 11 * @param {!print_preview.AppState} appState App state used to persist collate
12 * selection. 12 * selection.
13 * @param {!print_preview.DestinationStore} destinationStore Destination store 13 * @param {!print_preview.DestinationStore} destinationStore Destination store
14 * used determine if a destination has the collate capability. 14 * used determine if a destination has the collate capability.
15 * @constructor 15 * @constructor
16 * @extends {print_preview.ticket_items.TicketItem} 16 * @extends {print_preview.ticket_items.TicketItem}
17 */ 17 */
18 function Collate(appState, destinationStore) { 18 function Collate(appState, destinationStore) {
19 print_preview.ticket_items.TicketItem.call( 19 print_preview.ticket_items.TicketItem.call(
20 this, 20 this,
21 appState, 21 appState,
22 print_preview.AppState.Field.IS_COLLATE_ENABLED, 22 print_preview.AppStateField.IS_COLLATE_ENABLED,
23 destinationStore); 23 destinationStore);
24 }; 24 }
25 25
26 Collate.prototype = { 26 Collate.prototype = {
27 __proto__: print_preview.ticket_items.TicketItem.prototype, 27 __proto__: print_preview.ticket_items.TicketItem.prototype,
28 28
29 /** @override */ 29 /** @override */
30 wouldValueBeValid: function(value) { 30 wouldValueBeValid: function(value) {
31 return true; 31 return true;
32 }, 32 },
33 33
34 /** @override */ 34 /** @override */
(...skipping 24 matching lines...) Expand all
59 dest.capabilities.printer.collate) || 59 dest.capabilities.printer.collate) ||
60 null; 60 null;
61 } 61 }
62 }; 62 };
63 63
64 // Export 64 // Export
65 return { 65 return {
66 Collate: Collate 66 Collate: Collate
67 }; 67 };
68 }); 68 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/data/size.js ('k') | chrome/browser/resources/print_preview/data/ticket_items/color.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698