Daniel Hosseinian | 7b57a42 | 2019-06-11 23:52:32 | [diff] [blame] | 1 | // Copyright 2019 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 | |
Daniel Hosseinian | 31c9fde | 2019-06-25 20:32:38 | [diff] [blame] | 5 | #include "printing/common/printing_features.h" |
Daniel Hosseinian | 7b57a42 | 2019-06-11 23:52:32 | [diff] [blame] | 6 | |
| 7 | namespace printing { |
| 8 | namespace features { |
| 9 | |
| 10 | const base::Feature kHarfBuzzPDFSubsetter{"HarfBuzzPDFSubsetter", |
Daniel Hosseinian | bb08347e | 2019-09-30 21:37:10 | [diff] [blame] | 11 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Daniel Hosseinian | 7b57a42 | 2019-06-11 23:52:32 | [diff] [blame] | 12 | |
Alan Screen | c006076 | 2019-11-22 17:52:06 | [diff] [blame] | 13 | #if defined(OS_WIN) |
| 14 | // Use XPS for printing instead of GDI. |
| 15 | const base::Feature kUseXpsForPrinting{"UseXpsForPrinting", |
| 16 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Alan Screen | 4938811 | 2019-12-13 23:34:21 | [diff] [blame^] | 17 | |
| 18 | // Use XPS for printing instead of GDI for printing PDF documents. This is |
| 19 | // independent of |kUseXpsForPrinting|; can use XPS for PDFs even if still using |
| 20 | // GDI for modifiable content. |
| 21 | const base::Feature kUseXpsForPrintingFromPdf{ |
| 22 | "UseXpsForPrintingFromPdf", base::FEATURE_DISABLED_BY_DEFAULT}; |
Alan Screen | c006076 | 2019-11-22 17:52:06 | [diff] [blame] | 23 | #endif |
| 24 | |
Daniel Hosseinian | 7b57a42 | 2019-06-11 23:52:32 | [diff] [blame] | 25 | } // namespace features |
| 26 | } // namespace printing |