blob: a553525b930d4c58e60a550b913398459010366f [file] [log] [blame]
// Copyright 2017 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.
#include "chrome/services/printing/public/mojom/pdf_render_settings_mojom_traits.h"
#include "ui/gfx/geometry/mojom/geometry_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<printing::mojom::PdfRenderSettingsDataView,
printing::PdfRenderSettings>::
Read(printing::mojom::PdfRenderSettingsDataView data,
printing::PdfRenderSettings* out) {
out->autorotate = data.autorotate();
out->use_color = data.use_color();
return data.ReadArea(&out->area) && data.ReadOffsets(&out->offsets) &&
data.ReadDpi(&out->dpi) && data.ReadMode(&out->mode);
}
} // namespace mojo