diff options
Diffstat (limited to 'printing/backend/win_helper.h')
-rw-r--r-- | printing/backend/win_helper.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/printing/backend/win_helper.h b/printing/backend/win_helper.h index db66bf8..9b998d7 100644 --- a/printing/backend/win_helper.h +++ b/printing/backend/win_helper.h @@ -12,6 +12,7 @@ #include <string> +#include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" #include "base/win/scoped_handle.h" #include "printing/printing_export.h" @@ -169,6 +170,21 @@ PRINTING_EXPORT bool InitBasicPrinterInfo(HANDLE printer, PRINTING_EXPORT std::string GetDriverInfo(HANDLE printer); +PRINTING_EXPORT scoped_ptr<DEVMODE[]> XpsTicketToDevMode( + const base::string16& printer_name, + const std::string& print_ticket); + +// Creates default DEVMODE and sets color option. Some devices need special +// workaround for color. +PRINTING_EXPORT scoped_ptr<DEVMODE[]> CreateDevModeWithColor( + HANDLE printer, + const base::string16& printer_name, + bool color); + +// Creates new DEVMODE. If |in| is not NULL copy settings from there. +PRINTING_EXPORT scoped_ptr<DEVMODE[]> CreateDevMode(HANDLE printer, + DEVMODE* in); + } // namespace printing #endif // PRINTING_BACKEND_WIN_HELPER_H_ |