summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/print_preview
diff options
context:
space:
mode:
authorrltoscano@google.com <rltoscano@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 18:22:31 +0000
committerrltoscano@google.com <rltoscano@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 18:22:31 +0000
commit318bc95a682f2ae4a35d393aa4e43779eea8627f (patch)
treed7ca71aa3eae4d08fff2caad411b2025d871328f /chrome/browser/resources/print_preview
parent4766090c9a7f2dc5abf10030f86359b7f96a0acc (diff)
downloadchromium_src-318bc95a682f2ae4a35d393aa4e43779eea8627f.zip
chromium_src-318bc95a682f2ae4a35d393aa4e43779eea8627f.tar.gz
chromium_src-318bc95a682f2ae4a35d393aa4e43779eea8627f.tar.bz2
Renders preview in color for DOCS and MOBILE printers.
BUG=131337 TEST= Review URL: https://chromiumcodereview.appspot.com/10559006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142429 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/print_preview')
-rw-r--r--chrome/browser/resources/print_preview/data/ticket_items/color.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/color.js b/chrome/browser/resources/print_preview/data/ticket_items/color.js
index b03d407..693a3bb 100644
--- a/chrome/browser/resources/print_preview/data/ticket_items/color.js
+++ b/chrome/browser/resources/print_preview/data/ticket_items/color.js
@@ -58,9 +58,13 @@ cr.define('print_preview.ticket_items', function() {
/** @override */
getCapabilityNotAvailableValueInternal: function() {
- return this.destinationStore_.selectedDestination &&
- this.destinationStore_.selectedDestination.id ==
- print_preview.Destination.GooglePromotedId.SAVE_AS_PDF;
+ var dest = this.destinationStore_.selectedDestination;
+ if (!dest) {
+ return false;
+ }
+ return dest.id == print_preview.Destination.GooglePromotedId.DOCS ||
+ dest.id == print_preview.Destination.GooglePromotedId.SAVE_AS_PDF ||
+ dest.type == print_preview.Destination.Type.MOBILE;
}
};