OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BACKEND_WIN_HELPER_H_ | 5 #ifndef PRINTING_BACKEND_WIN_HELPER_H_ |
6 #define PRINTING_BACKEND_WIN_HELPER_H_ | 6 #define PRINTING_BACKEND_WIN_HELPER_H_ |
7 | 7 |
8 #include <objidl.h> | 8 #include <objidl.h> |
9 #include <winspool.h> | 9 #include <winspool.h> |
10 #include <prntvpt.h> | 10 #include <prntvpt.h> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 private: | 122 private: |
123 XPSPrintModule() { } | 123 XPSPrintModule() { } |
124 static bool InitImpl(); | 124 static bool InitImpl(); |
125 }; | 125 }; |
126 | 126 |
127 PRINTING_EXPORT bool InitBasicPrinterInfo(HANDLE printer, | 127 PRINTING_EXPORT bool InitBasicPrinterInfo(HANDLE printer, |
128 PrinterBasicInfo* printer_info); | 128 PrinterBasicInfo* printer_info); |
129 | 129 |
130 PRINTING_EXPORT std::string GetDriverInfo(HANDLE printer); | 130 PRINTING_EXPORT std::string GetDriverInfo(HANDLE printer); |
131 | 131 |
| 132 // Simplify title to resolve issue with some drivers on Windows. |
| 133 PRINTING_EXPORT string16 SimplifyDocumentTitle(const string16& title); |
| 134 |
132 } // namespace printing | 135 } // namespace printing |
133 | 136 |
134 #endif // PRINTING_BACKEND_WIN_HELPER_H_ | 137 #endif // PRINTING_BACKEND_WIN_HELPER_H_ |
OLD | NEW |