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

Side by Side Diff: printing/printing_context.h

Issue 3292019: Printing: Convert several wstrings to string16. (Closed)
Patch Set: Review fixes. Created 10 years, 3 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 | « printing/printed_pages_source.h ('k') | 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)
11 #include <ocidl.h> 11 #include <ocidl.h>
12 #include <commdlg.h> 12 #include <commdlg.h>
13 #endif 13 #endif
14 14
15 #include <string> 15 #include <string>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #if !(defined(OS_WIN) || defined(OS_MACOSX)) 18 #if !(defined(OS_WIN) || defined(OS_MACOSX))
19 // TODO(port) Remove after implementing PrintingContext::context() 19 // TODO(port) Remove after implementing PrintingContext::context()
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #endif 21 #endif
22 #include "base/scoped_ptr.h" 22 #include "base/scoped_ptr.h"
23 #include "base/string16.h"
23 #include "gfx/native_widget_types.h" 24 #include "gfx/native_widget_types.h"
24 #include "printing/print_settings.h" 25 #include "printing/print_settings.h"
25 26
26 #if defined(OS_MACOSX) 27 #if defined(OS_MACOSX)
27 #include "base/scoped_cftyperef.h" 28 #include "base/scoped_cftyperef.h"
28 #ifdef __OBJC__ 29 #ifdef __OBJC__
29 @class NSPrintInfo; 30 @class NSPrintInfo;
30 #else 31 #else
31 class NSPrintInfo; 32 class NSPrintInfo;
32 #endif // __OBJC__ 33 #endif // __OBJC__
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 86
86 // Reinitializes the settings to uninitialized for object reuse. 87 // Reinitializes the settings to uninitialized for object reuse.
87 void ResetSettings(); 88 void ResetSettings();
88 89
89 // Does platform specific setup of the printer before the printing. Signal the 90 // Does platform specific setup of the printer before the printing. Signal the
90 // printer that a document is about to be spooled. 91 // printer that a document is about to be spooled.
91 // Warning: This function enters a message loop. That may cause side effects 92 // Warning: This function enters a message loop. That may cause side effects
92 // like IPC message processing! Some printers have side-effects on this call 93 // like IPC message processing! Some printers have side-effects on this call
93 // like virtual printers that ask the user for the path of the saved document; 94 // like virtual printers that ask the user for the path of the saved document;
94 // for example a PDF printer. 95 // for example a PDF printer.
95 Result NewDocument(const std::wstring& document_name); 96 Result NewDocument(const string16& document_name);
96 97
97 // Starts a new page. 98 // Starts a new page.
98 Result NewPage(); 99 Result NewPage();
99 100
100 // Closes the printed page. 101 // Closes the printed page.
101 Result PageDone(); 102 Result PageDone();
102 103
103 // Closes the printing job. After this call the object is ready to start a new 104 // Closes the printing job. After this call the object is ready to start a new
104 // document. 105 // document.
105 Result DocumentDone(); 106 Result DocumentDone();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 193
193 // Did the user cancel the print job. 194 // Did the user cancel the print job.
194 volatile bool abort_printing_; 195 volatile bool abort_printing_;
195 196
196 DISALLOW_COPY_AND_ASSIGN(PrintingContext); 197 DISALLOW_COPY_AND_ASSIGN(PrintingContext);
197 }; 198 };
198 199
199 } // namespace printing 200 } // namespace printing
200 201
201 #endif // PRINTING_PRINTING_CONTEXT_H_ 202 #endif // PRINTING_PRINTING_CONTEXT_H_
OLDNEW
« no previous file with comments | « printing/printed_pages_source.h ('k') | printing/printing_context_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698