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

Side by Side Diff: chrome/browser/resources/print_preview/data/ticket_items/selection_only.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 * 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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698