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

Side by Side Diff: printing/printing_context.h

Issue 3417025: Printing: Remove the debug-only |page_number_| from PrintingContext, which has (Closed)
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
« no previous file with comments | « no previous file | printing/printing_context_cairo.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PRINTING_CONTEXT_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_H_
6 #define PRINTING_PRINTING_CONTEXT_H_ 6 #define PRINTING_PRINTING_CONTEXT_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 gfx::NativeDrawingContext context_; 173 gfx::NativeDrawingContext context_;
174 174
175 #if defined(OS_MACOSX) 175 #if defined(OS_MACOSX)
176 // The native print info object. 176 // The native print info object.
177 NSPrintInfo* print_info_; 177 NSPrintInfo* print_info_;
178 #endif 178 #endif
179 179
180 // Complete print context settings. 180 // Complete print context settings.
181 PrintSettings settings_; 181 PrintSettings settings_;
182 182
183 #ifndef NDEBUG
184 // Current page number in the print job.
185 int page_number_;
186 #endif
187
188 #if defined(OS_WIN) 183 #if defined(OS_WIN)
189 // The dialog box for the time it is shown. 184 // The dialog box for the time it is shown.
190 volatile HWND dialog_box_; 185 volatile HWND dialog_box_;
191 186
192 // Function pointer that defaults to PrintDlgEx. It can be changed using 187 // Function pointer that defaults to PrintDlgEx. It can be changed using
193 // SetPrintDialog() in tests. 188 // SetPrintDialog() in tests.
194 HRESULT (__stdcall *print_dialog_func_)(LPPRINTDLGEX); 189 HRESULT (__stdcall *print_dialog_func_)(LPPRINTDLGEX);
195 #endif 190 #endif
196 191
197 // The dialog box has been dismissed. 192 // The dialog box has been dismissed.
198 volatile bool dialog_box_dismissed_; 193 volatile bool dialog_box_dismissed_;
199 194
200 // Is a print job being done. 195 // Is a print job being done.
201 volatile bool in_print_job_; 196 volatile bool in_print_job_;
202 197
203 // Did the user cancel the print job. 198 // Did the user cancel the print job.
204 volatile bool abort_printing_; 199 volatile bool abort_printing_;
205 200
206 DISALLOW_COPY_AND_ASSIGN(PrintingContext); 201 DISALLOW_COPY_AND_ASSIGN(PrintingContext);
207 }; 202 };
208 203
209 } // namespace printing 204 } // namespace printing
210 205
211 #endif // PRINTING_PRINTING_CONTEXT_H_ 206 #endif // PRINTING_PRINTING_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | printing/printing_context_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698