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

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

Issue 2108833002: Remove Simplify Page option from Print Preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark histogram entries as unused Created 4 years, 5 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
(Empty)
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.
4
5 cr.define('print_preview.ticket_items', function() {
6 'use strict';
7
8 /**
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
12 * document to print.
13 * @constructor
14 * @extends {print_preview.ticket_items.TicketItem}
15 */
16 function DistillPage(documentInfo) {
17 print_preview.ticket_items.TicketItem.call(
18 this,
19 null /*appState*/,
20 null /*field*/,
21 null /*destinationStore*/,
22 documentInfo);
23
24 this.isAvailable_ = false;
25 };
26
27 DistillPage.prototype = {
28 __proto__: print_preview.ticket_items.TicketItem.prototype,
29
30 /** @override */
31 wouldValueBeValid: function(value) {
32 return true;
33 },
34
35 /** @override */
36 isCapabilityAvailable: function() {
37 return this.isAvailable_;
38 },
39
40 /** @override */
41 getDefaultValueInternal: function() {
42 return false;
43 },
44
45 /** @override */
46 getCapabilityNotAvailableValueInternal: function() {
47 return false;
48 },
49
50 setIsCapabilityAvailable: function(isAvailable) {
51 if (this.isAvailable_ == isAvailable)
52 return;
53
54 this.isAvailable_ = isAvailable;
55 this.dispatchChangeEventInternal();
56 }
57 };
58
59 // Export
60 return {
61 DistillPage: DistillPage
62 };
63 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698