Searched defs:metafile (Results 1 - 24 of 24) sorted by relevance

/external/chromium_org/printing/
H A Dimage_android.cc9 bool Image::LoadMetafile(const Metafile& metafile) { argument
H A Dimage_linux.cc9 bool Image::LoadMetafile(const Metafile& metafile) { argument
H A Dimage_mac.cc10 #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 Dprinted_document_mac.cc32 const MetafilePlayer* metafile = page.metafile(); local
37 metafile->RenderPage(page_number, context, content_area.ToCGRect(), params);
H A Dimage_win.cc10 #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 Dmetafile_skia_wrapper.cc23 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 Dprinted_page.cc10 scoped_ptr<MetafilePlayer> metafile,
14 metafile_(metafile.Pass()),
25 const MetafilePlayer* PrintedPage::metafile() const { function in class:printing::PrintedPage
9 PrintedPage(int page_number, scoped_ptr<MetafilePlayer> metafile, const gfx::Size& page_size, const gfx::Rect& page_content_rect) argument
H A Dimage.cc13 #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 Dprinting_context_linux.cc9 #include "printing/metafile.h"
62 void PrintingContextLinux::PrintDocument(const MetafilePlayer& metafile) { argument
64 print_dialog_->PrintDocument(metafile, document_name_);
H A Dpdf_metafile_skia.cc209 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 Dprinted_document.cc59 page->metafile()->SaveTo(&file);
114 scoped_ptr<MetafilePlayer> metafile,
123 new PrintedPage(page_number + 1, metafile.Pass(), paper_size, page_rect));
171 if (metafile_must_be_valid && !itr->second->metafile())
113 SetPage(int page_number, scoped_ptr<MetafilePlayer> metafile, double shrink, const gfx::Size& paper_size, const gfx::Rect& page_rect) argument
/external/chromium_org/android_webview/renderer/
H A Dprint_web_view_helper_linux.cc37 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...]
H A Dprint_web_view_helper.cc1138 // 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...]
/external/chromium_org/chrome/renderer/printing/
H A Dprint_web_view_helper_linux.cc35 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 Dprint_web_view_helper_pdf_win.cc32 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...]
H A Dmock_printer.cc217 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 Dprint_web_view_helper.cc1166 // 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...]
/external/pdfium/core/src/fxge/Microsoft SDK/include/
H A DGdiPlusMetaFile.h23 // Read a metafile
30 // Playback a metafile from a HMETAFILE
31 // If deleteWmf is TRUE, then when the metafile is deleted,
37 GpMetafile * metafile = NULL; local
39 lastResult = DllExports::GdipCreateMetafileFromWmf(hWmf, deleteWmf, apmFileHeader, &metafile);
41 SetNativeImage(metafile);
44 // Playback a metafile from a HENHMETAFILE
45 // If deleteEmf is TRUE, then when the metafile is deleted,
50 GpMetafile * metafile = NULL; local
52 lastResult = DllExports::GdipCreateMetafileFromEmf(hEmf, deleteEmf, &metafile);
60 GpMetafile * metafile = NULL; local
72 GpMetafile * metafile = NULL; local
82 GpMetafile * metafile = NULL; local
96 GpMetafile * metafile = NULL; local
114 GpMetafile * metafile = NULL; local
132 GpMetafile * metafile = NULL; local
149 GpMetafile * metafile = NULL; local
168 GpMetafile * metafile = NULL; local
187 GpMetafile * metafile = NULL; local
204 GpMetafile * metafile = NULL; local
223 GpMetafile * metafile = NULL; local
242 GpMetafile * metafile = NULL; local
[all...]
H A DGdiPlusGraphics.h1925 IN const Metafile * metafile,
1934 (const GpMetafile *)(metafile ? metafile->nativeImage:NULL),
1943 IN const Metafile * metafile,
1952 (const GpMetafile *)(metafile ? metafile->nativeImage:NULL),
1961 IN const Metafile * metafile,
1970 (const GpMetafile *)(metafile ? metafile->nativeImage:NULL),
1979 IN const Metafile * metafile,
1924 EnumerateMetafile( IN const Metafile * metafile, IN const PointF & destPoint, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
1942 EnumerateMetafile( IN const Metafile * metafile, IN const Point & destPoint, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
1960 EnumerateMetafile( IN const Metafile * metafile, IN const RectF & destRect, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
1978 EnumerateMetafile( IN const Metafile * metafile, IN const Rect & destRect, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
1996 EnumerateMetafile( IN const Metafile * metafile, IN const PointF * destPoints, IN INT count, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2016 EnumerateMetafile( IN const Metafile * metafile, IN const Point * destPoints, IN INT count, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2036 EnumerateMetafile( IN const Metafile * metafile, IN const PointF & destPoint, IN const RectF & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2058 EnumerateMetafile( IN const Metafile * metafile, IN const Point & destPoint, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2080 EnumerateMetafile( IN const Metafile * metafile, IN const RectF & destRect, IN const RectF & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2102 EnumerateMetafile( IN const Metafile * metafile, IN const Rect & destRect, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2124 EnumerateMetafile( IN const Metafile * metafile, IN const PointF * destPoints, IN INT count, IN const RectF & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
2148 EnumerateMetafile( IN const Metafile * metafile, IN const Point * destPoints, IN INT count, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) argument
[all...]
/external/chromium_org/chrome/browser/ui/libgtk2ui/
H A Dprint_dialog_gtk2.cc24 #include "printing/metafile.h"
364 void PrintDialogGtk2::PrintDocument(const printing::MetafilePlayer& metafile, argument
379 success = metafile.SaveTo(&file);
386 LOG(ERROR) << "Saving metafile failed";
/external/chromium_org/chrome/utility/
H A Dprinting_handler.cc353 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/chrome/browser/ui/webui/print_preview/
H A Dprint_preview_handler.cc74 #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/content/browser/renderer_host/
H A Drender_message_filter.cc1208 HENHMETAFILE metafile = CloseEnhMetaFile(hdc); local
1210 if (metafile) {
1211 DeleteEnhMetaFile(metafile);
/external/chromium_org/content/renderer/pepper/
H A Dpepper_plugin_instance_impl.cc1794 // 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...]

Completed in 347 milliseconds