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

Unified Diff: printing/backend/printing_info_win.h

Issue 168003002: Use DocumentProperties to get default DEVMODE instead of PRINTER_INFO_*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/backend/printing_info_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/printing_info_win.h
diff --git a/printing/backend/printing_info_win.h b/printing/backend/printing_info_win.h
index 931ae6df0c4a829f3b372fb416e5908d3ecb2b28..11341943ce2bdd6d508f93263972ab1599743688 100644
--- a/printing/backend/printing_info_win.h
+++ b/printing/backend/printing_info_win.h
@@ -58,34 +58,9 @@ class DriverInfo {
typedef internal::PrinterInfo<PRINTER_INFO_2, 2> PrinterInfo2;
typedef internal::PrinterInfo<PRINTER_INFO_5, 5> PrinterInfo5;
-typedef internal::PrinterInfo<PRINTER_INFO_8, 8> PrinterInfo8;
-typedef internal::PrinterInfo<PRINTER_INFO_9, 9> PrinterInfo9;
typedef internal::DriverInfo<DRIVER_INFO_6, 6> DriverInfo6;
-// Retrieves DEVMODE from PRINTER_INFO_* structures.
-// Requests in following order:
-// 9 (user-default),
-// 8 (admin-default),
-// 2 (printer-default).
-class PRINTING_EXPORT UserDefaultDevMode {
- public:
- UserDefaultDevMode();
- ~UserDefaultDevMode();
-
- bool Init(HANDLE printer);
-
- const DEVMODE* get() const {
- return dev_mode_;
- }
-
- private:
- PrinterInfo2 info_2_;
- PrinterInfo8 info_8_;
- PrinterInfo9 info_9_;
- const DEVMODE* dev_mode_;
-};
-
} // namespace printing
#endif // PRINTING_BACKEND_PRINTING_INFO_WIN_H_
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/backend/printing_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698