Searched refs:printer_name (Results 1 - 25 of 35) sorted by relevance

12

/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()))
77 lppd->hDC = CreateDC(L"WINSPOOL", printer_name.c_str(), NULL, dev_mode);
/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_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.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 Dcups_helper.h40 const std::string& printer_name,
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 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
491 PromptDevMode( HANDLE printer, const base::string16& printer_name, DEVMODE* in, HWND window, bool* canceled) argument
[all...]
H A Dwin_helper.h98 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,
192 const base::string16& printer_name,
/external/chromium_org/chrome/service/
H A Dservice_utility_process_host.h62 const std::string& printer_name,
69 const std::string& printer_name,
101 bool StartGetPrinterCapsAndDefaults(const std::string& printer_name);
107 bool StartGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
136 const std::string& printer_name,
138 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name);
140 const std::string& printer_name,
143 const std::string& printer_name);
60 OnGetPrinterCapsAndDefaults( bool succedded, const std::string& printer_name, const printing::PrinterCapsAndDefaults& caps_and_defaults) argument
67 OnGetPrinterSemanticCapsAndDefaults( bool succedded, const std::string& printer_name, const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults) argument
H A Dservice_utility_process_host.cc186 const std::string& printer_name) {
193 return Send(new ChromeUtilityMsg_GetPrinterCapsAndDefaults(printer_name));
197 const std::string& printer_name) {
205 new ChromeUtilityMsg_GetPrinterSemanticCapsAndDefaults(printer_name));
357 const std::string& printer_name,
367 printer_name, caps_and_defaults));
371 const std::string& printer_name,
381 true, printer_name, caps_and_defaults));
385 const std::string& printer_name) {
394 printer_name, printin
185 StartGetPrinterCapsAndDefaults( const std::string& printer_name) argument
196 StartGetPrinterSemanticCapsAndDefaults( const std::string& printer_name) argument
356 OnGetPrinterCapsAndDefaultsSucceeded( const std::string& printer_name, const printing::PrinterCapsAndDefaults& caps_and_defaults) argument
370 OnGetPrinterSemanticCapsAndDefaultsSucceeded( const std::string& printer_name, const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults) argument
384 OnGetPrinterCapsAndDefaultsFailed( const std::string& printer_name) argument
397 OnGetPrinterSemanticCapsAndDefaultsFailed( const std::string& printer_name) argument
[all...]
/external/chromium_org/chrome/service/cloud_print/
H A Dcdd_conversion_win.h19 const base::string16& printer_name,
H A Dprint_system_cups.cc83 const std::string& printer_name,
85 virtual bool IsValidPrinter(const std::string& printer_name) OVERRIDE;
87 const std::string& printer_name,
90 virtual bool GetJobDetails(const std::string& printer_name,
95 const std::string& printer_name) OVERRIDE;
104 const std::string& printer_name,
108 bool GetPrinterInfo(const std::string& printer_name,
115 const std::string& printer_name,
158 const std::string& printer_name,
228 printers.push_back(it->printer_name);
248 PrinterWatcherCUPS(PrintSystemCUPS* print_system, const std::string& printer_name) argument
528 GetPrinterCapsAndDefaults( const std::string& printer_name, const PrinterCapsAndDefaultsCallback& callback) argument
542 IsValidPrinter(const std::string& printer_name) argument
546 ValidatePrintTicket( const std::string& printer_name, const std::string& print_ticket_data, const std::string& print_ticket_mime_type) argument
581 GetPrinterCapsAndDefaults( const std::string& printer_name, printing::PrinterCapsAndDefaults* printer_info) argument
610 GetJobDetails(const std::string& printer_name, PlatformJobId job_id, PrintJobDetails *job_details) argument
687 GetPrinterInfo(const std::string& printer_name, printing::PrinterBasicInfo* info) argument
718 CreatePrinterWatcher( const std::string& printer_name) argument
769 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
873 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);
258 const std::string& printer_name,
254 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
452 PrintXPSDocument(const std::string& printer_name, const std::string& job_title, const base::FilePath& print_data_file_path, const std::string& print_ticket) argument
519 PrinterCapsHandler( const std::string& printer_name, const PrintSystem::PrinterCapsAndDefaultsCallback& callback) argument
677 GetPrinterCapsAndDefaults( const std::string& printer_name, const PrinterCapsAndDefaultsCallback& callback) argument
691 IsValidPrinter(const std::string& printer_name) argument
695 ValidatePrintTicket( const std::string& printer_name, const std::string& print_ticket_data, const std::string& print_ticket_data_mime_type) argument
742 GetJobDetails(const std::string& printer_name, PlatformJobId job_id, PrintJobDetails *job_details) argument
792 CreatePrinterWatcher( const std::string& printer_name) argument
[all...]
H A Dprint_system.h136 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 Dcloud_print_connector.cc116 if (settings_.ShouldConnect(it->printer_name))
243 std::string printer_name; local
244 printer_data->GetString(kNameValue, &printer_name);
248 if (!settings_.ShouldConnect(printer_name)) {
249 VLOG(1) << "CP_CONNECTOR: Deleting " << printer_name <<
252 } else if (RemovePrinterFromList(printer_name, &local_printers)) {
259 VLOG(1) << "CP_CONNECTOR: Deleting " << printer_name <<
265 LOG(ERROR) << "CP_CONNECTOR: Printer: " << printer_name <<
377 const std::string& printer_name,
381 if (IsSamePrinter(index->printer_name, printer_nam
376 RemovePrinterFromList( const std::string& printer_name, printing::PrinterList* printer_list) argument
580 OnReceivePrinterCaps( bool succeeded, const std::string& printer_name, const printing::PrinterCapsAndDefaults& caps_and_defaults) argument
[all...]
H A Dconnector_settings.h56 bool ShouldConnect(const std::string& printer_name) const;
H A Djob_status_updater.cc28 JobStatusUpdater::JobStatusUpdater(const std::string& printer_name, argument
35 printer_name_(printer_name),
H A Dcdd_conversion_win.cc19 const base::string16& printer_name,
29 if (!printer.OpenPrinter(printer_name.c_str()))
36 dev_mode = printing::CreateDevModeWithColor(printer.Get(), printer_name,
18 CjtToDevMode( const base::string16& printer_name, const std::string& print_ticket) argument
H A Dcloud_print_connector.h90 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 Dconnector_settings.cc97 bool ConnectorSettings::ShouldConnect(const std::string& printer_name) const {
98 Printers::const_iterator printer = printers_.find(printer_name);
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...]
/external/chromium_org/chrome/utility/
H A Dprinting_handler.h66 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
67 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
H A Dprinting_handler.cc490 const std::string& printer_name) {
496 print_backend->GetPrinterDriverInfo(printer_name));
498 if (print_backend->GetPrinterCapsAndDefaults(printer_name, &printer_info)) {
500 printer_name, printer_info));
503 printer_name));
509 const std::string& printer_name) {
515 print_backend->GetPrinterDriverInfo(printer_name));
517 if (print_backend->GetPrinterSemanticCapsAndDefaults(printer_name,
520 printer_name, printer_info));
523 printer_name));
489 OnGetPrinterCapsAndDefaults( const std::string& printer_name) argument
508 OnGetPrinterSemanticCapsAndDefaults( const std::string& printer_name) argument
[all...]
/external/chromium_org/chrome/browser/ui/webui/print_preview/
H A Dprint_preview_handler.cc378 const std::string& printer_name) {
384 VLOG(1) << "Get printer capabilities start for " << printer_name;
386 print_backend->GetPrinterDriverInfo(printer_name));
388 if (!print_backend->IsValidPrinter(printer_name)) {
389 LOG(WARNING) << "Invalid printer " << printer_name;
394 if (!print_backend->GetPrinterSemanticCapsAndDefaults(printer_name, &info)) {
395 LOG(WARNING) << "Failed to get capabilities for " << printer_name;
402 LOG(WARNING) << "Failed to convert capabilities for " << printer_name;
423 std::string printer_name; local
427 // |it->printer_name| specifie
377 GetLocalPrinterCapabilitiesOnFileThread( const std::string& printer_name) argument
462 GetPrinterCapabilitiesOnFileThread( const std::string& printer_name, const std::string& locale, const GetPrinterCapabilitiesSuccessCallback& success_cb, const GetPrinterCapabilitiesFailureCallback& failure_cb) argument
827 std::string printer_name; local
974 std::string printer_name; local
1222 SendFailedToGetPrinterCapabilities( const std::string& printer_name) argument
[all...]

Completed in 318 milliseconds

12