/external/chromium_org/android_webview/renderer/ |
H A D | print_web_view_helper.cc | 1138 // Get the size of the resulting metafile. 1139 PdfMetafileSkia* metafile = print_preview_context_.metafile(); local 1140 uint32 buf_size = metafile->GetDataSize(); 1154 if (!CopyMetafileDataToSharedMem(metafile, 1605 PdfMetafileSkia* metafile, 1607 uint32 buf_size = metafile->GetDataSize(); 1614 metafile->GetData(shared_buf->memory(), buf_size); 1744 PdfMetafileSkia* metafile) { 1747 // For non-modifiable files, |metafile| shoul 1604 CopyMetafileDataToSharedMem( PdfMetafileSkia* metafile, base::SharedMemoryHandle* shared_mem_handle) argument 1743 PreviewPageRendered(int page_number, PdfMetafileSkia* metafile) argument 2003 PdfMetafileSkia* PrintWebViewHelper::PrintPreviewContext::metafile() { function in class:printing::__anon1835::PrintWebViewHelper::PrintPreviewContext [all...] |
H A D | print_web_view_helper.h | 229 PdfMetafileSkia* metafile); 240 // Platform specific helper function for rendering page(s) to |metafile|. 246 PdfMetafileSkia* metafile, 255 PdfMetafileSkia* metafile, 273 bool CopyMetafileDataToSharedMem(PdfMetafileSkia* metafile, 329 // |metafile| is the rendered page. Otherwise |metafile| is NULL. 331 bool PreviewPageRendered(int page_number, PdfMetafileSkia* metafile); 423 PdfMetafileSkia* metafile(); 457 // Specifies the total number of pages in the print ready metafile [all...] |
H A D | print_web_view_helper_linux.cc | 37 PdfMetafileSkia* initial_render_metafile = print_preview_context_.metafile(); 56 print_preview_context_.metafile()->GetMetafileForCurrentPage(); 64 PdfMetafileSkia metafile; local 65 if (!metafile.Init()) 91 PrintPageInternal(page_params, canvas_size, frame, &metafile); 94 // blink::printEnd() for PDF should be called before metafile is closed. 97 metafile.FinishDocument(); 99 // Get the size of the resulting metafile. 100 uint32 buf_size = metafile.GetDataSize(); 111 if (!metafile 152 PrintPageInternal( const PrintMsg_PrintPage_Params& params, const gfx::Size& canvas_size, WebFrame* frame, PdfMetafileSkia* metafile) argument [all...] |
/external/chromium_org/chrome/browser/printing/ |
H A D | print_view_manager_base.cc | 149 scoped_ptr<PdfMetafileSkia> metafile(new PdfMetafileSkia); 151 if (!metafile->InitFromData(shared_buf.memory(), params.data_size)) { 152 NOTREACHED() << "Invalid metafile header"; 161 metafile.PassAs<MetafilePlayer>(), 399 // We don't need the metafile data anymore because the printing is canceled.
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
H A D | print_dialog_gtk2.cc | 24 #include "printing/metafile.h" 364 void PrintDialogGtk2::PrintDocument(const printing::MetafilePlayer& metafile, argument 379 success = metafile.SaveTo(&file); 386 LOG(ERROR) << "Saving metafile failed";
|
H A D | print_dialog_gtk2.h | 46 virtual void PrintDocument(const printing::MetafilePlayer& metafile,
|
/external/chromium_org/chrome/browser/ui/webui/print_preview/ |
H A D | print_preview_handler.cc | 74 #include "printing/metafile.h" 281 printing::PdfMetafileSkia metafile; local 282 metafile.InitFromData(static_cast<const void*>(data->front()), data->size()); 285 metafile.SaveTo(&file);
|
/external/chromium_org/chrome/renderer/printing/ |
H A D | mock_printer.cc | 217 printing::PdfMetafileCg metafile; local 219 printing::PdfMetafileSkia metafile; local 221 metafile.InitFromData(metafile_data.memory(), params.data_size); 222 printing::Image image(metafile);
|
H A D | print_web_view_helper.cc | 1166 // Get the size of the resulting metafile. 1167 PdfMetafileSkia* metafile = print_preview_context_.metafile(); local 1168 uint32 buf_size = metafile->GetDataSize(); 1181 if (!CopyMetafileDataToSharedMem(metafile, 1590 PdfMetafileSkia* metafile, 1592 uint32 buf_size = metafile->GetDataSize(); 1599 metafile->GetData(shared_buf->memory(), buf_size); 1703 PdfMetafileSkia* metafile) { 1706 // For non-modifiable files, |metafile| shoul 1589 CopyMetafileDataToSharedMem( PdfMetafileSkia* metafile, base::SharedMemoryHandle* shared_mem_handle) argument 1702 PreviewPageRendered(int page_number, PdfMetafileSkia* metafile) argument 1962 PdfMetafileSkia* PrintWebViewHelper::PrintPreviewContext::metafile() { function in class:printing::__anon5835::PrintWebViewHelper::PrintPreviewContext [all...] |
H A D | print_web_view_helper.h | 217 PdfMetafileSkia* metafile); 221 PdfMetafileSkia* metafile, 233 // Platform specific helper function for rendering page(s) to |metafile|. 239 PdfMetafileSkia* metafile, 257 bool CopyMetafileDataToSharedMem(PdfMetafileSkia* metafile, 301 // |metafile| is the rendered page. Otherwise |metafile| is NULL. 303 bool PreviewPageRendered(int page_number, PdfMetafileSkia* metafile); 389 PdfMetafileSkia* metafile(); 422 // Specifies the total number of pages in the print ready metafile [all...] |
H A D | print_web_view_helper_linux.cc | 35 PdfMetafileSkia* initial_render_metafile = print_preview_context_.metafile(); 53 print_preview_context_.metafile()->GetMetafileForCurrentPage(); 60 PdfMetafileSkia metafile; local 61 if (!metafile.Init()) 87 PrintPageInternal(page_params, frame, &metafile); 90 // blink::printEnd() for PDF should be called before metafile is closed. 93 metafile.FinishDocument(); 95 // Get the size of the resulting metafile. 96 uint32 buf_size = metafile.GetDataSize(); 107 if (!metafile 148 PrintPageInternal( const PrintMsg_PrintPage_Params& params, WebFrame* frame, PdfMetafileSkia* metafile) argument [all...] |
H A D | print_web_view_helper_pdf_win.cc | 32 PdfMetafileSkia* initial_render_metafile = print_preview_context_.metafile(); 52 print_preview_context_.metafile()->GetMetafileForCurrentPage(); 59 PdfMetafileSkia metafile; local 60 if (!metafile.Init()) 89 &metafile, 94 // blink::printEnd() for PDF should be called before metafile is closed. 97 metafile.FinishDocument(); 99 // Get the size of the resulting metafile. 100 uint32 buf_size = metafile.GetDataSize(); 111 // Allocate a shared memory buffer to hold the generated metafile dat 144 PrintPageInternal( const PrintMsg_PrintPage_Params& params, WebFrame* frame, PdfMetafileSkia* metafile, gfx::Size* page_size_in_dpi, gfx::Rect* content_area_in_dpi) argument 218 CopyMetafileDataToSharedMem( PdfMetafileSkia* metafile, base::SharedMemoryHandle* shared_mem_handle) argument [all...] |
/external/chromium_org/chrome/utility/ |
H A D | printing_handler.cc | 353 printing::Emf metafile; local 354 metafile.Init(); 357 // Current metafile is based on screen DC and have current screen size. 364 gfx::CalculatePageScale(metafile.context(), 367 gfx::ScaleDC(metafile.context(), *scale_factor); 369 // The underlying metafile is of type Emf and ignores the arguments passed 371 metafile.StartPage(gfx::Size(), gfx::Rect(), 1); 376 metafile.context(), 390 metafile.FinishPage(); 391 metafile [all...] |
/external/chromium_org/content/browser/renderer_host/ |
H A D | render_message_filter.cc | 1208 HENHMETAFILE metafile = CloseEnhMetaFile(hdc); local 1210 if (metafile) { 1211 DeleteEnhMetaFile(metafile);
|
/external/chromium_org/content/renderer/pepper/ |
H A D | pepper_plugin_instance_impl.cc | 1794 // The canvas only has a metafile on it for print preview. 1997 printing::PdfMetafileSkia* metafile = local 1999 DCHECK(metafile != NULL); 2000 if (metafile) 2001 ret = metafile->InitFromData(mapper.data(), mapper.size()); 2003 printing::PdfMetafileSkia* metafile = local 2005 if (metafile) { 2006 // We only have a metafile when doing print preview, so we just want to 2008 ret = metafile->InitFromData(mapper.data(), mapper.size()); 2027 // Current metafile i [all...] |
/external/chromium_org/printing/ |
H A D | image.cc | 13 #include "printing/metafile.h" 40 Image::Image(const Metafile& metafile) argument 43 LoadMetafile(metafile); 153 PdfMetafileSkia metafile; local 154 if (!metafile.InitFromData(data.data(), 157 return LoadMetafile(metafile);
|
H A D | image.h | 33 // Creates the image from the metafile. Deduces bounds based on bounds in 34 // metafile. If loading fails size().IsEmpty() will be true. 35 explicit Image(const Metafile& metafile); 72 // Construct from metafile. This is kept internal since it's ambiguous what 73 // kind of data is used (png, bmp, metafile etc). 80 bool LoadMetafile(const Metafile& metafile);
|
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 | 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.Get(), NULL);
|
H A D | metafile_skia_wrapper.cc | 23 PdfMetafileSkia* metafile) { 25 if (metafile) 26 wrapper = skia::AdoptRef(new MetafileSkiaWrapper(metafile)); 62 MetafileSkiaWrapper::MetafileSkiaWrapper(PdfMetafileSkia* metafile) argument 63 : metafile_(metafile) { 22 SetMetafileOnCanvas(const SkCanvas& canvas, PdfMetafileSkia* metafile) argument
|
H A D | metafile_skia_wrapper.h | 18 // on an SkCanvas. The ownership of the metafile is not affected and it 19 // is the caller's responsibility to ensure that the metafile remains valid 24 PdfMetafileSkia* metafile); 28 // Methods to set and retrieve custom scale factor for metafile from canvas. 33 explicit MetafileSkiaWrapper(PdfMetafileSkia* metafile);
|
H A D | pdf_metafile_skia.cc | 209 scoped_ptr<PdfMetafileSkia> metafile; local 212 return metafile.Pass(); 216 return metafile.Pass(); 222 metafile.reset(new PdfMetafileSkia); 223 if (!metafile->InitFromData(data_copy->bytes(), 225 metafile.reset(); 227 return metafile.Pass();
|
H A D | print_dialog_gtk_interface.h | 36 // Prints the document named |document_name| contained in |metafile|. 39 virtual void PrintDocument(const MetafilePlayer& metafile,
|