/external/chromium_org/printing/ |
H A D | printing_test.h | 25 wchar_t printer_name[MAX_PATH]; local 26 DWORD size = arraysize(printer_name); 27 BOOL result = ::GetDefaultPrinter(printer_name, &size); 36 return printer_name;
|
H A D | printing_context_win_unittest.cc | 56 base::string16 printer_name = PrintingContextTest::GetDefaultPrinter(); variable 58 if (!printer.OpenPrinter(printer_name.c_str())) 78 printer_name, dev_mode, &lppd->hDC)) {
|
/external/chromium_org/printing/backend/ |
H A D | print_backend_chromeos.cc | 20 const std::string& printer_name, 23 const std::string& printer_name, 26 const std::string& printer_name) OVERRIDE; 27 virtual bool IsValidPrinter(const std::string& printer_name) OVERRIDE; 40 const std::string& printer_name, 47 const std::string& printer_name, 54 const std::string& printer_name) { 63 bool PrintBackendChromeOS::IsValidPrinter(const std::string& printer_name) { argument 39 GetPrinterSemanticCapsAndDefaults( const std::string& printer_name, PrinterSemanticCapsAndDefaults* printer_info) argument 46 GetPrinterCapsAndDefaults( const std::string& printer_name, PrinterCapsAndDefaults* printer_info) argument 53 GetPrinterDriverInfo( const std::string& printer_name) argument
|
H A D | print_backend_cups.cc | 40 const std::string& printer_name, 43 const std::string& printer_name, 46 const std::string& printer_name) OVERRIDE; 47 virtual bool IsValidPrinter(const std::string& printer_name) OVERRIDE; 100 printer_info.printer_name = printer.name; 147 const std::string& printer_name, 150 if (!GetPrinterCapsAndDefaults(printer_name, &info) ) 154 printer_name, info.printer_capabilities, printer_info); 158 const std::string& printer_name, 163 << ", printer name: " << printer_name; 146 GetPrinterSemanticCapsAndDefaults( const std::string& printer_name, PrinterSemanticCapsAndDefaults* printer_info) argument 157 GetPrinterCapsAndDefaults( const std::string& printer_name, PrinterCapsAndDefaults* printer_info) argument 188 GetPrinterDriverInfo( const std::string& printer_name) argument 208 IsValidPrinter(const std::string& printer_name) argument [all...] |
H A D | print_backend.h | 28 std::string printer_name; member in struct:printing::PrinterBasicInfo 97 const std::string& printer_name, 102 const std::string& printer_name, 107 const std::string& printer_name) = 0; 109 // Returns true if printer_name points to a valid printer. 110 virtual bool IsValidPrinter(const std::string& printer_name) = 0;
|
H A D | cups_helper.h | 40 const std::string& printer_name,
|
H A D | print_backend_win.cc | 163 const std::string& printer_name, 166 const std::string& printer_name, 169 const std::string& printer_name) OVERRIDE; 170 virtual bool IsValidPrinter(const std::string& printer_name) OVERRIDE; 201 info.is_default = (info.printer_name == default_printer); 217 const std::string& printer_name, 220 if (!printer_handle.OpenPrinter(base::UTF8ToWide(printer_name).c_str())) { 230 DCHECK_EQ(name, base::UTF8ToUTF16(printer_name)); 288 const std::string& printer_name, 295 if (!IsValidPrinter(printer_name)) { 216 GetPrinterSemanticCapsAndDefaults( const std::string& printer_name, PrinterSemanticCapsAndDefaults* printer_info) argument 287 GetPrinterCapsAndDefaults( const std::string& printer_name, PrinterCapsAndDefaults* printer_info) argument 351 GetPrinterDriverInfo( const std::string& printer_name) argument 360 IsValidPrinter(const std::string& printer_name) argument [all...] |
H A D | win_helper.cc | 24 typedef HRESULT (WINAPI* PTOpenProviderProc)(PCWSTR printer_name, 62 const LPCWSTR printer_name, 182 HRESULT XPSModule::OpenProvider(const base::string16& printer_name, argument 185 return g_open_provider_proc(printer_name.c_str(), version, provider); 300 const LPCWSTR printer_name, 310 return g_start_xps_print_job_proc(printer_name, 332 printer_info->printer_name = base::WideToUTF8(info_2.get()->pPrinterName); 389 const base::string16& printer_name, 399 if (!printer.OpenPrinter(printer_name.c_str())) 408 hr = printing::XPSModule::OpenProvider(printer_name, 299 StartXpsPrintJob( const LPCWSTR printer_name, const LPCWSTR job_name, const LPCWSTR output_file_name, HANDLE progress_event, HANDLE completion_event, UINT8* printable_pages_on, UINT32 printable_pages_on_count, IXpsPrintJob** xps_print_job, IXpsPrintJobStream** document_stream, IXpsPrintJobStream** print_ticket_stream) argument 388 XpsTicketToDevMode( const base::string16& printer_name, const std::string& print_ticket) argument 431 CreateDevModeWithColor( HANDLE printer, const base::string16& printer_name, bool color) argument [all...] |
H A D | win_helper.h | 98 static HRESULT OpenProvider(const base::string16& printer_name, 153 const LPCWSTR printer_name, 174 const base::string16& printer_name, 181 const base::string16& printer_name,
|
/external/chromium_org/chrome/service/ |
H A D | service_utility_process_host.h | 67 const std::string& printer_name, 74 const std::string& printer_name, 108 bool StartGetPrinterCapsAndDefaults(const std::string& printer_name); 114 bool StartGetPrinterSemanticCapsAndDefaults(const std::string& printer_name); 147 const std::string& printer_name, 149 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name); 151 const std::string& printer_name, 154 const std::string& printer_name); 65 OnGetPrinterCapsAndDefaults( bool succedded, const std::string& printer_name, const printing::PrinterCapsAndDefaults& caps_and_defaults) argument 72 OnGetPrinterSemanticCapsAndDefaults( bool succedded, const std::string& printer_name, const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults) argument
|
H A D | service_utility_process_host.cc | 129 const std::string& printer_name) { 140 new ChromeUtilityMsg_GetPrinterCapsAndDefaults(printer_name)); 144 const std::string& printer_name) { 155 new ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults(printer_name)); 307 const std::string& printer_name, 319 printer_name, caps_and_defaults)); 323 const std::string& printer_name, 335 true, printer_name, caps_and_defaults)); 339 const std::string& printer_name) { 350 printer_name, printin 128 StartGetPrinterCapsAndDefaults( const std::string& printer_name) argument 143 StartGetPrinterSemanticCapsAndDefaults( const std::string& printer_name) argument 306 OnGetPrinterCapsAndDefaultsSucceeded( const std::string& printer_name, const printing::PrinterCapsAndDefaults& caps_and_defaults) argument 322 OnGetPrinterSemanticCapsAndDefaultsSucceeded( const std::string& printer_name, const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults) argument 338 OnGetPrinterCapsAndDefaultsFailed( const std::string& printer_name) argument 353 OnGetPrinterSemanticCapsAndDefaultsFailed( const std::string& printer_name) argument [all...] |
/external/chromium_org/chrome/service/cloud_print/ |
H A D | cdd_conversion_win.h | 19 const base::string16& printer_name,
|
H A D | print_system_cups.cc | 85 const std::string& printer_name, 87 virtual bool IsValidPrinter(const std::string& printer_name) OVERRIDE; 89 const std::string& printer_name, 92 virtual bool GetJobDetails(const std::string& printer_name, 97 const std::string& printer_name) OVERRIDE; 106 const std::string& printer_name, 110 bool GetPrinterInfo(const std::string& printer_name, 117 const std::string& printer_name, 160 const std::string& printer_name, 230 printers.push_back(it->printer_name); 250 PrinterWatcherCUPS(PrintSystemCUPS* print_system, const std::string& printer_name) argument 530 GetPrinterCapsAndDefaults( const std::string& printer_name, const PrinterCapsAndDefaultsCallback& callback) argument 544 IsValidPrinter(const std::string& printer_name) argument 548 ValidatePrintTicket( const std::string& printer_name, const std::string& print_ticket_data, const std::string& print_ticket_mime_type) argument 583 GetPrinterCapsAndDefaults( const std::string& printer_name, printing::PrinterCapsAndDefaults* printer_info) argument 612 GetJobDetails(const std::string& printer_name, PlatformJobId job_id, PrintJobDetails *job_details) argument 689 GetPrinterInfo(const std::string& printer_name, printing::PrinterBasicInfo* info) argument 720 CreatePrinterWatcher( const std::string& printer_name) argument 771 SpoolPrintJob( const std::string& print_ticket, const base::FilePath& print_data_file_path, const std::string& print_data_mime_type, const std::string& printer_name, const std::string& job_title, const std::vector<std::string>& tags, bool* dry_run) argument 875 RunCapsCallback( const PrinterCapsAndDefaultsCallback& callback, bool succeeded, const std::string& printer_name, const printing::PrinterCapsAndDefaults& printer_info) argument [all...] |
H A D | print_system_win.cc | 53 bool Start(const std::string& printer_name, Delegate* delegate) { argument 56 printer_info_ = print_backend->GetPrinterDriverInfo(printer_name); 64 if (!printer_name.empty()) { 65 printer_name_wide = base::UTF8ToWide(printer_name); 170 explicit PrinterWatcherWin(const std::string& printer_name) argument 171 : printer_name_(printer_name), 227 const std::string& printer_name, 235 print_backend->GetPrinterDriverInfo(printer_name)); 238 printer_name, job_title, delegate); 263 const std::string& printer_name, 259 Spool(const std::string& print_ticket, const std::string& print_ticket_mime_type, const base::FilePath& print_data_file_path, const std::string& print_data_mime_type, const std::string& printer_name, const std::string& job_title, JobSpooler::Delegate* delegate) argument 467 PrintXPSDocument(const std::string& printer_name, const std::string& job_title, const base::FilePath& print_data_file_path, const std::string& print_ticket) argument 542 PrinterCapsHandler( const std::string& printer_name, const PrintSystem::PrinterCapsAndDefaultsCallback& callback) argument 700 GetPrinterCapsAndDefaults( const std::string& printer_name, const PrinterCapsAndDefaultsCallback& callback) argument 714 IsValidPrinter(const std::string& printer_name) argument 718 ValidatePrintTicket( const std::string& printer_name, const std::string& print_ticket_data, const std::string& print_ticket_data_mime_type) argument 765 GetJobDetails(const std::string& printer_name, PlatformJobId job_id, PrintJobDetails *job_details) argument 815 CreatePrinterWatcher( const std::string& printer_name) argument [all...] |
H A D | print_system.h | 136 const std::string& printer_name, 174 const std::string& printer_name, 177 // Returns true if printer_name points to a valid printer. 178 virtual bool IsValidPrinter(const std::string& printer_name) = 0; 182 const std::string& printer_name, 187 virtual bool GetJobDetails(const std::string& printer_name, 195 const std::string& printer_name) = 0;
|
H A D | cloud_print_connector.cc | 115 if (settings_.ShouldConnect(it->printer_name)) 242 std::string printer_name; local 243 printer_data->GetString(kNameValue, &printer_name); 247 if (!settings_.ShouldConnect(printer_name)) { 248 VLOG(1) << "CP_CONNECTOR: Deleting " << printer_name << 251 } else if (RemovePrinterFromList(printer_name, &local_printers)) { 258 VLOG(1) << "CP_CONNECTOR: Deleting " << printer_name << 264 LOG(ERROR) << "CP_CONNECTOR: Printer: " << printer_name << 376 const std::string& printer_name, 380 if (IsSamePrinter(index->printer_name, printer_nam 375 RemovePrinterFromList( const std::string& printer_name, printing::PrinterList* printer_list) argument 579 OnReceivePrinterCaps( bool succeeded, const std::string& printer_name, const printing::PrinterCapsAndDefaults& caps_and_defaults) argument [all...] |
H A D | connector_settings.h | 56 bool ShouldConnect(const std::string& printer_name) const;
|
H A D | job_status_updater.cc | 28 JobStatusUpdater::JobStatusUpdater(const std::string& printer_name, argument 35 printer_name_(printer_name),
|
H A D | cdd_conversion_win.cc | 19 const base::string16& printer_name, 29 if (!printer.OpenPrinter(printer_name.c_str())) 36 dev_mode = CreateDevModeWithColor(printer, printer_name, is_color); 18 CjtToDevMode( const base::string16& printer_name, const std::string& print_ticket) argument
|
H A D | cloud_print_connector.h | 90 virtual void OnPrinterDeleted(const std::string& printer_name) OVERRIDE; 147 bool RemovePrinterFromList(const std::string& printer_name, 166 const std::string& printer_name,
|
H A D | connector_settings.cc | 97 bool ConnectorSettings::ShouldConnect(const std::string& printer_name) const { 98 Printers::const_iterator printer = printers_.find(printer_name);
|
H A D | printer_job_handler.cc | 86 if (!print_system_->IsValidPrinter(printer_info_.printer_name)) 90 printer_info_.printer_name); 97 return printer_info_.printer_name; 359 if (print_system_->ValidatePrintTicket(printer_info_.printer_name, data, 486 << ", printer name: " << printer_info_.printer_name.c_str() 526 printer_info_.printer_name)); 619 new JobStatusUpdater(printer_info_.printer_name, job_details_.job_id_, 654 printer_info.printer_name.c_str(), 670 << ", printer name: " << printer_info_.printer_name 678 const std::string& printer_name, 676 OnReceivePrinterCaps( bool succeeded, const std::string& printer_name, const printing::PrinterCapsAndDefaults& caps_and_defaults) argument 786 DoPrint(const JobDetails& job_details, const std::string& printer_name) argument [all...] |
/external/chromium_org/chrome/utility/ |
H A D | printing_handler.h | 70 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 71 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
|
H A D | printing_handler.cc | 500 const std::string& printer_name) { 506 print_backend->GetPrinterDriverInfo(printer_name)); 508 if (print_backend->GetPrinterCapsAndDefaults(printer_name, &printer_info)) { 510 printer_name, printer_info)); 513 printer_name)); 519 const std::string& printer_name) { 525 print_backend->GetPrinterDriverInfo(printer_name)); 527 if (print_backend->GetPrinterSemanticCapsAndDefaults(printer_name, 530 printer_name, printer_info)); 533 printer_name)); 499 OnGetPrinterCapsAndDefaults( const std::string& printer_name) argument 518 OnGetPrinterSemanticCapsAndDefaults( const std::string& printer_name) argument [all...] |
/external/chromium_org/chrome/browser/ui/webui/print_preview/ |
H A D | print_preview_handler.cc | 359 const std::string& printer_name) { 365 VLOG(1) << "Get printer capabilities start for " << printer_name; 367 print_backend->GetPrinterDriverInfo(printer_name)); 369 if (!print_backend->IsValidPrinter(printer_name)) { 370 LOG(WARNING) << "Invalid printer " << printer_name; 375 if (!print_backend->GetPrinterSemanticCapsAndDefaults(printer_name, &info)) { 376 LOG(WARNING) << "Failed to get capabilities for " << printer_name; 383 LOG(WARNING) << "Failed to convert capabilities for " << printer_name; 404 std::string printer_name; local 408 // |it->printer_name| specifie 358 GetLocalPrinterCapabilitiesOnFileThread( const std::string& printer_name) argument 443 GetPrinterCapabilitiesOnFileThread( const std::string& printer_name, const std::string& locale, const GetPrinterCapabilitiesSuccessCallback& success_cb, const GetPrinterCapabilitiesFailureCallback& failure_cb) argument 819 std::string printer_name; local 950 std::string printer_name; local 1226 SendFailedToGetPrinterCapabilities( const std::string& printer_name) argument [all...] |