blob: 7408872e895a8957e83a1531bf82bf11ab5779ae [file] [log] [blame]
// Copyright 2021 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 PDF_PPAPI_MIGRATION_PRINTING_CONVERSIONS_H_
#define PDF_PPAPI_MIGRATION_PRINTING_CONVERSIONS_H_
#include <stdint.h>
#include <vector>
struct PP_PrintPageNumberRange_Dev;
struct PP_PrintSettings_Dev;
struct PP_PdfPrintPresetOptions_Dev;
struct PP_PdfPrintSettings_Dev;
namespace blink {
struct WebPrintParams;
struct WebPrintPresetOptions;
} // namespace blink
namespace chrome_pdf {
std::vector<int> PageNumbersFromPPPrintPageNumberRange(
const PP_PrintPageNumberRange_Dev* page_ranges,
uint32_t page_range_count);
PP_PdfPrintPresetOptions_Dev PPPdfPrintPresetOptionsFromWebPrintPresetOptions(
const blink::WebPrintPresetOptions& print_preset_options);
blink::WebPrintParams WebPrintParamsFromPPPrintSettings(
const PP_PrintSettings_Dev& print_settings,
const PP_PdfPrintSettings_Dev& pdf_print_settings);
} // namespace chrome_pdf
#endif // PDF_PPAPI_MIGRATION_PRINTING_CONVERSIONS_H_