Upload upstream chromium 73.0.3683.0
[platform/framework/web/chromium-efl.git] / printing / print_settings_conversion.h
1 // Copyright 2014 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
5 #ifndef PRINTING_PRINT_SETTINGS_CONVERSION_H_
6 #define PRINTING_PRINT_SETTINGS_CONVERSION_H_
7
8 #include "base/logging.h"
9 #include "printing/page_range.h"
10 #include "printing/printing_export.h"
11
12 namespace base {
13 class DictionaryValue;
14 class Value;
15 }
16
17 namespace printing {
18
19 class PrintSettings;
20
21 PRINTING_EXPORT bool PrintSettingsFromJobSettings(
22     const base::Value& job_settings,
23     PrintSettings* print_settings);
24
25 // Use for debug only, because output is not completely consistent with format
26 // of |PrintSettingsFromJobSettings| input.
27 void PrintSettingsToJobSettingsDebug(const PrintSettings& settings,
28                                      base::DictionaryValue* job_settings);
29
30 }  // namespace printing
31
32 #endif  // PRINTING_PRINT_SETTINGS_CONVERSION_H_