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

Side by Side Diff: printing/page_size_margins.h

Issue 8564040: Revert 110035 - Print Preview: Making margin selection sticky (part 2/2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/test/data/webui/print_preview.js ('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')
Property Changes:
Deleted: svn:eol-style
- LF
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 namespace base {
9 class DictionaryValue;
10 }
11
12 namespace printing { 8 namespace printing {
13 9
14 // Struct that holds margin and content area sizes of a page. Units are 10 // Struct that holds margin and content area sizes of a page. Units are
15 // arbitrary and can be chosen by the programmer. 11 // arbitrary and can be chosen by the programmer.
16 struct PageSizeMargins { 12 struct PageSizeMargins {
17 double content_width; 13 double content_width;
18 double content_height; 14 double content_height;
19 double margin_top; 15 double margin_top;
20 double margin_right; 16 double margin_right;
21 double margin_bottom; 17 double margin_bottom;
22 double margin_left; 18 double margin_left;
23 }; 19 };
24 20
25 void getCustomMarginsFromJobSettings(const base::DictionaryValue& settings,
26 PageSizeMargins* page_size_margins);
27
28 } // namespace printing 21 } // namespace printing
29 22
30 #endif // PRINTING_PAGE_SIZE_MARGINS_H_ 23 #endif // PRINTING_PAGE_SIZE_MARGINS_H_
24
OLDNEW
« no previous file with comments | « chrome/test/data/webui/print_preview.js ('k') | printing/page_size_margins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698