| // Copyright 2022 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 COMPONENTS_PRINTING_BROWSER_PRINT_TO_PDF_PDF_PRINT_RESULT_H_ |
| #define COMPONENTS_PRINTING_BROWSER_PRINT_TO_PDF_PDF_PRINT_RESULT_H_ |
| |
| #include <string> |
| |
| namespace print_to_pdf { |
| |
| enum class PdfPrintResult { |
| kPrintSuccess, |
| kPrintFailure, |
| kInvalidPrinterSettings, |
| kInvalidMemoryHandle, |
| kMetafileMapError, |
| kSimultaneousPrintActive, |
| kPageRangeSyntaxError, |
| kPageRangeInvalidRange, |
| kPageCountExceeded, |
| }; |
| |
| std::string PdfPrintResultToString(PdfPrintResult result); |
| |
| } // namespace print_to_pdf |
| |
| #endif // COMPONENTS_PRINTING_BROWSER_PRINT_TO_PDF_PDF_PRINT_RESULT_H_ |