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

Unified Diff: printing/backend/print_backend.h

Issue 9516010: Added PrinterDriverInfo and PrintBackend::GetPrinterDriverInfo for windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 8 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 | « no previous file | printing/backend/print_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/print_backend.h
diff --git a/printing/backend/print_backend.h b/printing/backend/print_backend.h
index c7884997702b926fc21529bc69fb987d45074d85..4bf8ff3904a958b5309633feb87fcbffb9187512 100644
--- a/printing/backend/print_backend.h
+++ b/printing/backend/print_backend.h
@@ -43,6 +43,16 @@ struct PRINTING_EXPORT PrinterCapsAndDefaults {
std::string defaults_mime_type;
};
+struct PRINTING_EXPORT PrinterDriverInfo {
+ PrinterDriverInfo();
+ ~PrinterDriverInfo();
+
+ std::string driver_name;
+ std::string driver_version;
+ std::string product_name;
+ std::string product_version;
+};
+
// PrintBackend class will provide interface for different print backends
// (Windows, CUPS) to implement. User will call CreateInstance() to
// obtain available print backend.
@@ -66,6 +76,11 @@ class PRINTING_EXPORT PrintBackend
const std::string& printer_name,
PrinterCapsAndDefaults* printer_info) = 0;
+ // Gets the information about driver for a specific printer.
+ virtual bool GetPrinterDriverInfo(
+ const std::string& printer_name,
+ PrinterDriverInfo* driver_info) = 0;
+
// Returns true if printer_name points to a valid printer.
virtual bool IsValidPrinter(const std::string& printer_name) = 0;
« no previous file with comments | « no previous file | printing/backend/print_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698