1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
printing / print_settings_conversion_chromeos.h [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PRINTING_PRINT_SETTINGS_CONVERSION_CHROMEOS_H_
#define PRINTING_PRINT_SETTINGS_CONVERSION_CHROMEOS_H_
#include <vector>
#include "base/values.h"
#include "printing/mojom/print.mojom.h"
// ChromeOS-specific print settings conversion functions.
namespace printing {
COMPONENT_EXPORT(PRINTING)
base::Value::List ConvertClientInfoToJobSetting(
const std::vector<mojom::IppClientInfo>& client_info);
// Assumes that `client_info_job_setting` is valid.
COMPONENT_EXPORT(PRINTING)
std::vector<mojom::IppClientInfo> ConvertJobSettingToClientInfo(
const base::Value::List& client_info_job_setting);
} // namespace printing
#endif // PRINTING_PRINT_SETTINGS_CONVERSION_CHROMEOS_H_