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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/data/ticket_items/distill_page.js
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/distill_page.js b/chrome/browser/resources/print_preview/data/ticket_items/distill_page.js
deleted file mode 100644
index 9e99b94290207b21371392760ae6657f7208167c..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/print_preview/data/ticket_items/distill_page.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-cr.define('print_preview.ticket_items', function() {
- 'use strict';
-
- /**
- * Ticket item whose value is a {@code boolean} that represents whether to
- * distill the page before printing.
- * @param {!print_preview.DocumentInfo} documentInfo Information about the
- * document to print.
- * @constructor
- * @extends {print_preview.ticket_items.TicketItem}
- */
- function DistillPage(documentInfo) {
- print_preview.ticket_items.TicketItem.call(
- this,
- null /*appState*/,
- null /*field*/,
- null /*destinationStore*/,
- documentInfo);
-
- this.isAvailable_ = false;
- };
-
- DistillPage.prototype = {
- __proto__: print_preview.ticket_items.TicketItem.prototype,
-
- /** @override */
- wouldValueBeValid: function(value) {
- return true;
- },
-
- /** @override */
- isCapabilityAvailable: function() {
- return this.isAvailable_;
- },
-
- /** @override */
- getDefaultValueInternal: function() {
- return false;
- },
-
- /** @override */
- getCapabilityNotAvailableValueInternal: function() {
- return false;
- },
-
- setIsCapabilityAvailable: function(isAvailable) {
- if (this.isAvailable_ == isAvailable)
- return;
-
- this.isAvailable_ = isAvailable;
- this.dispatchChangeEventInternal();
- }
- };
-
- // Export
- return {
- DistillPage: DistillPage
- };
-});

Powered by Google App Engine
This is Rietveld 408576698