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

Side by Side Diff: printing/print_settings.h

Issue 3522004: FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to non-POD structs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_PRINT_SETTINGS_H_ 5 #ifndef PRINTING_PRINT_SETTINGS_H_
6 #define PRINTING_PRINT_SETTINGS_H_ 6 #define PRINTING_PRINT_SETTINGS_H_
7 7
8 #include "gfx/rect.h" 8 #include "gfx/rect.h"
9 #include "printing/page_overlays.h" 9 #include "printing/page_overlays.h"
10 #include "printing/page_range.h" 10 #include "printing/page_range.h"
11 #include "printing/page_setup.h" 11 #include "printing/page_setup.h"
12 12
13 #if defined(OS_MACOSX) 13 #if defined(OS_MACOSX)
14 #import <ApplicationServices/ApplicationServices.h> 14 #import <ApplicationServices/ApplicationServices.h>
15 #endif 15 #endif
16 16
17 typedef struct HDC__* HDC; 17 typedef struct HDC__* HDC;
18 typedef struct _devicemodeW DEVMODE; 18 typedef struct _devicemodeW DEVMODE;
19 typedef struct _GtkPrintSettings GtkPrintSettings; 19 typedef struct _GtkPrintSettings GtkPrintSettings;
20 typedef struct _GtkPageSetup GtkPageSetup; 20 typedef struct _GtkPageSetup GtkPageSetup;
21 21
22 namespace printing { 22 namespace printing {
23 23
24 // OS-independent print settings. 24 // OS-independent print settings.
25 class PrintSettings { 25 class PrintSettings {
26 public: 26 public:
27 PrintSettings(); 27 PrintSettings();
28 ~PrintSettings();
28 29
29 // Reinitialize the settings to the default values. 30 // Reinitialize the settings to the default values.
30 void Clear(); 31 void Clear();
31 32
32 #ifdef WIN32 33 #ifdef WIN32
33 // Reads the settings from the selected device context. Calculates derived 34 // Reads the settings from the selected device context. Calculates derived
34 // values like printable_area_. 35 // values like printable_area_.
35 void Init(HDC hdc, 36 void Init(HDC hdc,
36 const DEVMODE& dev_mode, 37 const DEVMODE& dev_mode,
37 const PageRanges& new_ranges, 38 const PageRanges& new_ranges,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Printer's device effective dots per inch in both axis. 131 // Printer's device effective dots per inch in both axis.
131 int dpi_; 132 int dpi_;
132 133
133 // Is the orientation landscape or portrait. 134 // Is the orientation landscape or portrait.
134 bool landscape_; 135 bool landscape_;
135 }; 136 };
136 137
137 } // namespace printing 138 } // namespace printing
138 139
139 #endif // PRINTING_PRINT_SETTINGS_H_ 140 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698