Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: printing/page_size_margins.h

Issue 329683002: Improvements in --debug-print switch implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/12/2014 2:53:06.07 Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/BUILD.gn ('k') | printing/page_size_margins.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_PAGE_SIZE_MARGINS_H_ 5 #ifndef PRINTING_PAGE_SIZE_MARGINS_H_
6 #define PRINTING_PAGE_SIZE_MARGINS_H_ 6 #define PRINTING_PAGE_SIZE_MARGINS_H_
7 7
8 #include "printing/printing_export.h" 8 #include "printing/printing_export.h"
9 9
10 namespace base {
11 class DictionaryValue;
12 }
13
14 namespace printing { 10 namespace printing {
15 11
16 // Struct that holds margin and content area sizes of a page. Units are 12 // Struct that holds margin and content area sizes of a page. Units are
17 // arbitrary and can be chosen by the programmer. 13 // arbitrary and can be chosen by the programmer.
18 struct PageSizeMargins { 14 struct PageSizeMargins {
19 double content_width; 15 double content_width;
20 double content_height; 16 double content_height;
21 double margin_top; 17 double margin_top;
22 double margin_right; 18 double margin_right;
23 double margin_bottom; 19 double margin_bottom;
24 double margin_left; 20 double margin_left;
25 }; 21 };
26 22
27 PRINTING_EXPORT void GetCustomMarginsFromJobSettings(
28 const base::DictionaryValue& settings, PageSizeMargins* page_size_margins);
29
30 } // namespace printing 23 } // namespace printing
31 24
32 #endif // PRINTING_PAGE_SIZE_MARGINS_H_ 25 #endif // PRINTING_PAGE_SIZE_MARGINS_H_
OLDNEW
« no previous file with comments | « printing/BUILD.gn ('k') | printing/page_size_margins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698