blob: b6913724a90bb233583b49750a5a34074ca84790 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001// Copyright (c) 2011 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_PAGE_SIZE_MARGINS_H_
6#define PRINTING_PAGE_SIZE_MARGINS_H_
7
8#include "printing/printing_export.h"
9
10namespace base {
11class DictionaryValue;
12}
13
14namespace printing {
15
16// Struct that holds margin and content area sizes of a page. Units are
17// arbitrary and can be chosen by the programmer.
18struct PageSizeMargins {
19 double content_width;
20 double content_height;
21 double margin_top;
22 double margin_right;
23 double margin_bottom;
24 double margin_left;
25};
26
27PRINTING_EXPORT void GetCustomMarginsFromJobSettings(
28 const base::DictionaryValue& settings, PageSizeMargins* page_size_margins);
29
30} // namespace printing
31
32#endif // PRINTING_PAGE_SIZE_MARGINS_H_