OLD | NEW |
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 #include "printing/print_settings_initializer_mac.h" | 5 #include "printing/print_settings_initializer_mac.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
8 #include "printing/print_settings.h" | 10 #include "printing/print_settings.h" |
9 #include "printing/units.h" | 11 #include "printing/units.h" |
10 | 12 |
11 namespace printing { | 13 namespace printing { |
12 | 14 |
13 // static | 15 // static |
14 void PrintSettingsInitializerMac::InitPrintSettings( | 16 void PrintSettingsInitializerMac::InitPrintSettings( |
15 PMPrinter printer, | 17 PMPrinter printer, |
16 PMPageFormat page_format, | 18 PMPageFormat page_format, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 (page_rect.right - page_rect.left), | 57 (page_rect.right - page_rect.left), |
56 (page_rect.bottom - page_rect.top)); | 58 (page_rect.bottom - page_rect.top)); |
57 | 59 |
58 DCHECK_EQ(print_settings->device_units_per_inch(), kPointsPerInch); | 60 DCHECK_EQ(print_settings->device_units_per_inch(), kPointsPerInch); |
59 print_settings->SetPrinterPrintableArea(physical_size_device_units, | 61 print_settings->SetPrinterPrintableArea(physical_size_device_units, |
60 printable_area_device_units, | 62 printable_area_device_units, |
61 false); | 63 false); |
62 } | 64 } |
63 | 65 |
64 } // namespace printing | 66 } // namespace printing |
OLD | NEW |