/external/chromium_org/printing/ |
H A D | image_android.cc | 9 bool Image::LoadMetafile(const Metafile& metafile) { argument
|
H A D | image_linux.cc | 9 bool Image::LoadMetafile(const Metafile& metafile) { argument
|
H A D | image_mac.cc | 10 #include "printing/metafile.h" 15 bool Image::LoadMetafile(const Metafile& metafile) { argument 18 gfx::Rect rect(metafile.GetPageBounds(page_number)); 42 metafile.RenderPage(page_number, bitmap_context,
|
H A D | printed_document_mac.cc | 32 const Metafile* metafile = page.metafile(); local 37 metafile->RenderPage(page_number, context, content_area.ToCGRect(), params);
|
H A D | image_win.cc | 10 #include "printing/metafile.h" 52 bool Image::LoadMetafile(const Metafile& metafile) { argument 53 gfx::Rect rect(metafile.GetPageBounds(1)); 78 bool success = metafile.Playback(hdc, NULL);
|
H A D | metafile_skia_wrapper.cc | 23 Metafile* metafile) { 25 if (metafile) 26 wrapper = skia::AdoptRef(new MetafileSkiaWrapper(metafile)); 61 MetafileSkiaWrapper::MetafileSkiaWrapper(Metafile* metafile) argument 62 : metafile_(metafile) { 22 SetMetafileOnCanvas(const SkCanvas& canvas, Metafile* metafile) argument
|
H A D | printed_page.cc | 10 Metafile* metafile, 15 metafile_(metafile), 24 const Metafile* PrintedPage::metafile() const { function in class:printing::PrintedPage 9 PrintedPage(int page_number, Metafile* metafile, const gfx::Size& page_size, const gfx::Rect& page_content_rect, double shrink_factor) argument
|
H A D | image.cc | 13 #include "printing/metafile.h" 40 Image::Image(const Metafile& metafile) argument 43 LoadMetafile(metafile); 153 NativeMetafile metafile; local 154 if (!metafile.InitFromData(data.data(), 157 return LoadMetafile(metafile);
|
H A D | printing_context_gtk.cc | 12 #include "printing/metafile.h" 54 void PrintingContextGtk::PrintDocument(const Metafile* metafile) { argument 56 DCHECK(metafile); 57 print_dialog_->PrintDocument(metafile, document_name_);
|
H A D | printed_document.cc | 67 Metafile* metafile, 75 metafile, 121 if (metafile_must_be_valid && !itr->second->metafile()) 147 total += pages_copy[i]->metafile()->GetDataSize(); 185 page.metafile()->SaveTo( 189 page.metafile()->SaveTo( 66 SetPage(int page_number, Metafile* metafile, double shrink, const gfx::Size& paper_size, const gfx::Rect& page_rect) argument
|
/external/chromium_org/android_webview/renderer/ |
H A D | print_web_view_helper_linux.cc | 11 #include "printing/metafile.h" 37 Metafile* initial_render_metafile = print_preview_context_.metafile(); 56 print_preview_context_.metafile()->GetMetafileForCurrentPage()); 65 NativeMetafile metafile; local 66 if (!metafile.Init()) 92 PrintPageInternal(page_params, canvas_size, frame, &metafile); 95 // WebKit::printEnd() for PDF should be called before metafile is closed. 98 metafile.FinishDocument(); 100 // Get the size of the resulting metafile. 101 uint32 buf_size = metafile 153 PrintPageInternal( const PrintMsg_PrintPage_Params& params, const gfx::Size& canvas_size, WebFrame* frame, Metafile* metafile) argument [all...] |
H A D | print_web_view_helper.cc | 22 #include "printing/metafile.h" 1119 // Get the size of the resulting metafile. 1120 PreviewMetafile* metafile = print_preview_context_.metafile(); local 1121 uint32 buf_size = metafile->GetDataSize(); 1135 if (!CopyMetafileDataToSharedMem(metafile, 1607 Metafile* metafile, 1609 uint32 buf_size = metafile->GetDataSize(); 1616 metafile->GetData(shared_buf->memory(), buf_size); 1723 Metafile* metafile) { 1606 CopyMetafileDataToSharedMem( Metafile* metafile, base::SharedMemoryHandle* shared_mem_handle) argument 1722 PreviewPageRendered(int page_number, Metafile* metafile) argument 1981 PreviewMetafile* PrintWebViewHelper::PrintPreviewContext::metafile() { function in class:printing::__anon3449::PrintWebViewHelper::PrintPreviewContext [all...] |
/external/chromium_org/chrome/renderer/printing/ |
H A D | print_web_view_helper_linux.cc | 11 #include "printing/metafile.h" 37 Metafile* initial_render_metafile = print_preview_context_.metafile(); 56 print_preview_context_.metafile()->GetMetafileForCurrentPage()); 65 NativeMetafile metafile; local 66 if (!metafile.Init()) 92 PrintPageInternal(page_params, canvas_size, frame, &metafile); 95 // WebKit::printEnd() for PDF should be called before metafile is closed. 98 metafile.FinishDocument(); 100 // Get the size of the resulting metafile. 101 uint32 buf_size = metafile 153 PrintPageInternal( const PrintMsg_PrintPage_Params& params, const gfx::Size& canvas_size, WebFrame* frame, Metafile* metafile) argument [all...] |
H A D | print_web_view_helper_win.cc | 15 #include "printing/metafile.h" 37 // Generate a memory-based metafile. It will use the current screen's DPI. 38 // Each metafile contains a single page. 39 scoped_ptr<NativeMetafile> metafile(new NativeMetafile); 40 metafile->Init(); 41 DCHECK(metafile->context()); 42 skia::InitializeDC(metafile->context()); 56 RenderPage(params.params, page_number, frame, false, metafile.get(), 59 // Close the device context to retrieve the compiled metafile. 60 if (!metafile 122 RenderPage( const PrintMsg_Print_Params& params, int page_number, WebFrame* frame, bool is_preview, Metafile* metafile, double* actual_shrink, gfx::Size* page_size_in_dpi, gfx::Rect* content_area_in_dpi) argument 220 CopyMetafileDataToSharedMem( Metafile* metafile, base::SharedMemoryHandle* shared_mem_handle) argument [all...] |
H A D | print_web_view_helper.cc | 27 #include "printing/metafile.h" 1138 // Get the size of the resulting metafile. 1139 PreviewMetafile* metafile = print_preview_context_.metafile(); local 1140 uint32 buf_size = metafile->GetDataSize(); 1154 if (!CopyMetafileDataToSharedMem(metafile, 1617 Metafile* metafile, 1619 uint32 buf_size = metafile->GetDataSize(); 1626 metafile->GetData(shared_buf->memory(), buf_size); 1758 Metafile* metafile) { 1616 CopyMetafileDataToSharedMem( Metafile* metafile, base::SharedMemoryHandle* shared_mem_handle) argument 1757 PreviewPageRendered(int page_number, Metafile* metafile) argument 2016 PreviewMetafile* PrintWebViewHelper::PrintPreviewContext::metafile() { function in class:printing::__anon6925::PrintWebViewHelper::PrintPreviewContext [all...] |
/external/chromium_org/chrome/service/ |
H A D | service_utility_process_host.h | 55 // successfully into |metafile|. 57 const printing::Emf& metafile, 81 // Invoked when a metafile file is ready. 94 // a metafile. Currently only implemented for Windows. If the PDF has fewer 146 // The path to the temp file where the metafile will be written to. 148 // The temporary folder created for the metafile. 56 OnRenderPDFPagesToMetafileSucceeded( const printing::Emf& metafile, int highest_rendered_page_number, double scale_factor) argument
|
H A D | service_utility_process_host.cc | 214 // If the metafile was successfully created, we need to take our hands off the 215 // scratch metafile directory. The client will delete it when it is done with 216 // metafile. 257 // The metafile was created in a temp folder which needs to get deleted after 261 LOG(WARNING) << "Unable to set scratch metafile directory"; 263 // It's important that metafile is declared after scratch_metafile_dir so 264 // that the metafile destructor closes the file before the base::ScopedTempDir 266 printing::Emf metafile; local 267 if (!metafile.InitFromFile(metafile_path)) { 270 OnRenderPDFPagesToMetafileSucceeded(metafile, [all...] |
/external/chromium/chrome/browser/printing/ |
H A D | print_dialog_gtk.cc | 23 #include "printing/metafile.h" 220 void PrintDialogGtk::PrintDocument(const printing::Metafile* metafile, argument 235 metafile, 307 void PrintDialogGtk::SaveDocumentToDisk(const printing::Metafile* metafile, argument 317 if (!error && !metafile->SaveTo(path_to_pdf_)) { 318 LOG(ERROR) << "Saving metafile failed";
|
/external/chromium_org/chrome/renderer/ |
H A D | mock_printer.cc | 220 printing::PdfMetafileCg metafile; local 222 printing::NativeMetafile metafile; local 224 metafile.InitFromData(metafile_data.memory(), params.data_size); 225 printing::Image image(metafile);
|
/external/chromium/chrome/browser/ui/webui/ |
H A D | print_preview_handler.cc | 27 #include "printing/metafile.h" 192 // Takes ownership of |metafile|. 193 PrintToPdfTask(printing::Metafile* metafile, const FilePath& path) argument 194 : metafile_(metafile), path_(path) { 205 // The metafile holding the PDF data. 366 printing::PreviewMetafile* metafile = new printing::PreviewMetafile; local 367 metafile->InitFromData(data.first->memory(), data.second); 372 PrintToPdfTask* task = new PrintToPdfTask(metafile, path);
|
/external/chromium_org/chrome/browser/printing/ |
H A D | print_dialog_gtk.cc | 22 #include "printing/metafile.h" 261 void PrintDialogGtk::PrintDocument(const printing::Metafile* metafile, argument 276 if (!error && !metafile->SaveTo(path_to_pdf_)) { 277 LOG(ERROR) << "Saving metafile failed";
|
/external/chromium_org/chrome/browser/ui/webui/print_preview/ |
H A D | print_preview_handler.cc | 60 #include "printing/metafile.h" 243 void PrintToPdfCallback(Metafile* metafile, const base::FilePath& path) { argument 244 metafile->SaveTo(path); 245 // |metafile| must be deleted on the UI thread. 248 base::Bind(&base::DeletePointer<Metafile>, metafile)); 252 void PrintToPdfCallbackWithCheck(Metafile* metafile, argument 258 metafile->SaveTo(path); 260 // |metafile| must be deleted on the UI thread. 263 base::Bind(&base::DeletePointer<Metafile>, metafile)); 1033 printing::PreviewMetafile* metafile local [all...] |
/external/chromium_org/content/browser/renderer_host/ |
H A D | render_message_filter.cc | 1148 HENHMETAFILE metafile = CloseEnhMetaFile(hdc); local 1150 if (metafile) { 1151 DeleteEnhMetaFile(metafile);
|
/external/chromium_org/content/renderer/pepper/ |
H A D | pepper_plugin_instance_impl.cc | 83 #include "printing/metafile.h" 1528 // The canvas only has a metafile on it for print preview. 1727 // On Linux we just set the final bits in the native metafile 1730 printing::Metafile* metafile = local 1732 DCHECK(metafile != NULL); 1733 if (metafile) 1734 ret = metafile->InitFromData(mapper.data(), mapper.size()); 1736 printing::Metafile* metafile = local 1738 if (metafile) { 1739 // We only have a metafile whe [all...] |