1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 cr
.define('print_preview.ticket_items', function() {
9 * Ticket item whose value is a {@code boolean} that represents whether to
10 * distill the page before printing.
11 * @param {!print_preview.DocumentInfo} documentInfo Information about the
14 * @extends {print_preview.ticket_items.TicketItem}
16 function DistillPage(documentInfo
) {
17 print_preview
.ticket_items
.TicketItem
.call(
21 null /*destinationStore*/,
24 this.isAvailable_
= false;
27 DistillPage
.prototype = {
28 __proto__
: print_preview
.ticket_items
.TicketItem
.prototype,
31 wouldValueBeValid: function(value
) {
36 isCapabilityAvailable: function() {
37 return this.isAvailable_
;
41 getDefaultValueInternal: function() {
46 getCapabilityNotAvailableValueInternal: function() {
50 setIsCapabilityAvailable: function(isAvailable
) {
51 if (this.isAvailable_
== isAvailable
)
54 this.isAvailable_
= isAvailable
;
55 this.dispatchChangeEventInternal();
61 DistillPage
: DistillPage