Chromium Code Reviews| Index: chrome/browser/printing/print_system_task_proxy.h |
| =================================================================== |
| --- chrome/browser/printing/print_system_task_proxy.h (revision 110200) |
| +++ chrome/browser/printing/print_system_task_proxy.h (working copy) |
| @@ -6,6 +6,7 @@ |
| #define CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ |
| #pragma once |
| +#include "base/gtest_prod_util.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "build/build_config.h" |
| @@ -20,6 +21,7 @@ |
| namespace printing { |
| class PrintBackend; |
| +struct PrinterCapsAndDefaults; |
| } |
| #if defined(UNIT_TEST) && defined(USE_CUPS) && !defined(OS_MACOSX) |
| @@ -54,7 +56,32 @@ |
| friend struct content::BrowserThread::DeleteOnThread< |
| content::BrowserThread::UI>; |
| friend class DeleteTask<PrintSystemTaskProxy>; |
| +#if defined(USE_CUPS) |
| + FRIEND_TEST_ALL_PREFIXES(PrintSystemTaskProxyTest, DetectDuplexModeCUPS); |
| +#endif |
| + // Only used for testing. |
| + PrintSystemTaskProxy(); |
|
kmadhusu
2011/11/16 20:43:29
if defined(UNIT_TEST) && defined(USE_CUPS)
Print
Lei Zhang
2011/11/17 00:20:16
Done.
|
| + |
| +#if defined(USE_CUPS) |
| + bool GetPrinterCapabilitiesCUPS( |
| + const printing::PrinterCapsAndDefaults& printer_info, |
| + const std::string& printer_name, |
| + bool* set_color_as_default, |
| + int* printer_color_space_for_color, |
| + int* printer_color_space_for_black, |
| + bool* set_duplex_as_default, |
| + int* default_duplex_setting_value); |
| +#elif defined(OS_WIN) |
| + void GetPrinterCapabilitiesWin( |
| + const printing::PrinterCapsAndDefaults& printer_info, |
| + bool* set_color_as_default, |
| + int* printer_color_space_for_color, |
| + int* printer_color_space_for_black, |
| + bool* set_duplex_as_default, |
| + int* default_duplex_setting_value); |
| +#endif |
| + |
| void SendDefaultPrinter(const std::string* default_printer, |
| const std::string* cloud_print_data); |
| void SetupPrinterList(base::ListValue* printers); |