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

Side by Side Diff: printing/print_settings_initializer_mac.cc

Issue 1544623002: Switch to standard integer types in printing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « printing/print_settings_initializer_mac.h ('k') | printing/print_settings_initializer_win.h » ('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 #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
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
OLDNEW
« no previous file with comments | « printing/print_settings_initializer_mac.h ('k') | printing/print_settings_initializer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698