Searched defs:printer_name (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/printing/
H A Dprinting_test.h25 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 Dprinting_context_win_unittest.cc56 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 Dprint_backend_chromeos.cc20 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 Dprint_backend.h28 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 Dprint_backend_cups.cc40 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 Dprint_backend_win.cc163 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 Dcups_helper.cc43 const std::string& printer_name,
83 if (base::strncasecmp(printer_name.c_str(), name.c_str(),
98 void MarkLpOptions(const std::string& printer_name, ppd_file_t** ppd) { argument
116 ParseLpOptions(*it, printer_name, &num_options, &options);
348 const std::string& printer_name,
375 MarkLpOptions(printer_name, &ppd);
42 ParseLpOptions(const base::FilePath& filepath, const std::string& printer_name, int* num_options, cups_option_t** options) argument
347 ParsePpdCapabilities( const std::string& printer_name, const std::string& printer_capabilities, PrinterSemanticCapsAndDefaults* printer_info) argument
H A Dwin_helper.cc24 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...]
/external/chromium_org/chrome/service/cloud_print/
H A Dcdd_conversion_win.cc19 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 Djob_status_updater.cc28 JobStatusUpdater::JobStatusUpdater(const std::string& printer_name, argument
35 printer_name_(printer_name),
H A Dcloud_print_connector.cc115 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 Dprinter_job_handler.cc86 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...]
H A Dprint_system_cups.cc85 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 Dprint_system_win.cc53 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 Dprinter_job_handler_unittest.cc359 const std::string& printer_name,
405 void(const std::string& printer_name,
408 MOCK_METHOD1(IsValidPrinter, bool(const std::string& printer_name));
411 bool(const std::string& printer_name,
415 MOCK_METHOD3(GetJobDetails, bool(const std::string& printer_name,
421 PrintSystem::PrinterWatcher*(const std::string& printer_name));
449 const std::string& printer_name,
476 basic_info_.printer_name = kExamplePrinterName;
620 const std::string& printer_name,
622 callback.Run(true, printer_name, caps_and_defaults
619 SendCapsAndDefaults( const std::string& printer_name, const PrintSystem::PrinterCapsAndDefaultsCallback& callback) argument
[all...]
/external/chromium_org/chrome/service/
H A Dservice_utility_process_host.h67 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 Dservice_utility_process_host.cc129 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/utility/
H A Dprinting_handler.cc500 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/cloud_print/virtual_driver/win/port_monitor/
H A Dport_monitor.cc392 wchar_t* printer_name,
402 if (printer_name == NULL) {
403 LOG(ERROR) << "printer_name should not be NULL.";
413 if (!OpenPrinter(printer_name, &(port_data->printer_handle), NULL)) {
414 LOG(WARNING) << "Unable to open printer " << printer_name << ".";
391 Monitor2StartDocPort(HANDLE port_handle, wchar_t* printer_name, DWORD job_id, DWORD, BYTE*) argument
/external/chromium_org/chrome/browser/ui/webui/print_preview/
H A Dprint_preview_handler.cc359 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...]

Completed in 1250 milliseconds