Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cfe5bf0b51
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (33 sloc) 1.22 kb
// Copyright (c) 2011 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 "base/tuple.h"
#include "ipc/ipc_param_traits.h"
#include "printing/printing_export.h"
#include "ui/gfx/rect.h"
namespace printing {
// Defining PDF rendering settings here as a Tuple as following:
// gfx::Rect - render area
// int - render dpi
// bool - autorotate pages to fit paper
typedef Tuple3<gfx::Rect, int, bool> PdfRenderSettingsBase;
struct PdfRenderSettings : public PdfRenderSettingsBase {
PdfRenderSettings() : PdfRenderSettingsBase() {}
PdfRenderSettings(gfx::Rect area, int dpi, bool autorotate)
: PdfRenderSettingsBase(area, dpi, autorotate) {}
~PdfRenderSettings() {}
const gfx::Rect& area() const { return a; }
int dpi() const { return b; }
bool autorotate() const { return c; }
} // namespace printing
namespace IPC {
template <>
struct SimilarTypeTraits<printing::PdfRenderSettings> {
typedef printing::PdfRenderSettingsBase Type;
} // namespace IPC
Jump to Line
Something went wrong with that request. Please try again.