Index: chrome/browser/resources/print_preview/data/ticket_items/css_background.js |
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/margins_type.js b/chrome/browser/resources/print_preview/data/ticket_items/css_background.js |
similarity index 66% |
copy from chrome/browser/resources/print_preview/data/ticket_items/margins_type.js |
copy to chrome/browser/resources/print_preview/data/ticket_items/css_background.js |
index 3fe95f4752db47872d75d281fcab766d59e9d90d..c7428189aaa749b9a2c03482f4c433eb05d5bb9e 100644 |
--- a/chrome/browser/resources/print_preview/data/ticket_items/margins_type.js |
+++ b/chrome/browser/resources/print_preview/data/ticket_items/css_background.js |
@@ -6,15 +6,14 @@ cr.define('print_preview.ticket_items', function() { |
'use strict'; |
/** |
- * Margins type ticket item whose value is a |
- * {@link print_preview.ticket_items.MarginsType.Value} that indicates what |
- * predefined margins type to use. |
+ * Ticket item whose value is a {@code boolean} that represents whether to |
+ * print CSS backgrounds. |
* @param {!print_preview.DocumentInfo} documentInfo Information about the |
* document to print. |
* @constructor |
* @extends {print_preview.ticket_items.TicketItem} |
*/ |
- function MarginsType(documentInfo) { |
+ function CssBackground(documentInfo) { |
print_preview.ticket_items.TicketItem.call(this); |
/** |
@@ -25,19 +24,7 @@ cr.define('print_preview.ticket_items', function() { |
this.documentInfo_ = documentInfo; |
}; |
- /** |
- * Enumeration of margin types. Matches enum MarginType in |
- * printing/print_job_constants.h. |
- * @enum {number} |
- */ |
- MarginsType.Value = { |
- DEFAULT: 0, |
- NO_MARGINS: 1, |
- MINIMUM: 2, |
- CUSTOM: 3 |
- }; |
- |
- MarginsType.prototype = { |
+ CssBackground.prototype = { |
__proto__: print_preview.ticket_items.TicketItem.prototype, |
/** @override */ |
@@ -52,17 +39,17 @@ cr.define('print_preview.ticket_items', function() { |
/** @override */ |
getDefaultValueInternal: function() { |
- return MarginsType.Value.DEFAULT; |
+ return false; |
}, |
/** @override */ |
getCapabilityNotAvailableValueInternal: function() { |
- return MarginsType.Value.DEFAULT; |
+ return false; |
} |
}; |
// Export |
return { |
- MarginsType: MarginsType |
+ CssBackground: CssBackground |
}; |
}); |