| // Copyright 2019 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. |
| |
| #ifndef PRINTING_PRINTING_FEATURES_H_ |
| #define PRINTING_PRINTING_FEATURES_H_ |
| |
| #include "base/feature_list.h" |
| #include "build/build_config.h" |
| #include "build/chromeos_buildflags.h" |
| #include "printing/printing_export.h" |
| |
| namespace printing { |
| namespace features { |
| |
| // The following features are declared alphabetically. The features should be |
| // documented with descriptions of their behaviors in the .cc file. |
| |
| #if defined(OS_MAC) |
| PRINTING_EXPORT extern const base::Feature kCupsIppPrintingBackend; |
| #endif // defined(OS_MAC) |
| |
| #if defined(OS_WIN) |
| PRINTING_EXPORT extern const base::Feature kPrintWithReducedRasterization; |
| PRINTING_EXPORT extern const base::Feature kUseXpsForPrinting; |
| PRINTING_EXPORT extern const base::Feature kUseXpsForPrintingFromPdf; |
| |
| // Helper function to determine if there is any print path which could require |
| // the use of XPS print capabilities. |
| PRINTING_EXPORT bool IsXpsPrintCapabilityRequired(); |
| |
| // Helper function to determine if printing of a document from a particular |
| // source should be done using XPS printing API instead of with GDI. |
| PRINTING_EXPORT bool ShouldPrintUsingXps(bool source_is_pdf); |
| #endif // defined(OS_WIN) |
| |
| #if defined(OS_WIN) || defined(OS_MAC) || defined(OS_LINUX) || \ |
| defined(OS_CHROMEOS) |
| PRINTING_EXPORT extern const base::Feature kEnableOopPrintDrivers; |
| #endif // defined(OS_WIN) || defined(OS_MAC) || defined(OS_LINUX) || |
| // defined(OS_CHROMEOS) |
| |
| } // namespace features |
| } // namespace printing |
| |
| #endif // PRINTING_PRINTING_FEATURES_H_ |