blob: 92e8670c06e6bd4a41322d42e77e09b8e759f1e6 [file] [log] [blame]
[email protected]c95198b2014-06-12 16:56:551// 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/basictypes.h"
9#include "base/logging.h"
10#include "printing/page_range.h"
11#include "printing/printing_export.h"
12
13namespace base {
14class DictionaryValue;
15}
16
17namespace printing {
18
19class PrintSettings;
20
21bool PrintSettingsFromJobSettings(const base::DictionaryValue& job_settings,
22 PrintSettings* print_settings);
23
24// Use for debug only, because output is not completely consistent with format
25// of |PrintSettingsFromJobSettings| input.
26void PrintSettingsToJobSettingsDebug(const PrintSettings& settings,
27 base::DictionaryValue* job_settings);
28
29} // namespace printing
30
31#endif // PRINTING_PRINT_SETTINGS_CONVERSION_H_