Searched refs:metafile (Results 1 - 25 of 49) sorted by relevance

12

/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 Dmetafile_skia_wrapper.h18 // 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 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 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 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 Dprinted_page.h10 #include "printing/metafile.h"
26 scoped_ptr<MetafilePlayer> metafile,
32 const MetafilePlayer* metafile() const;
H A Dprint_dialog_gtk_interface.h36 // Prints the document named |document_name| contained in |metafile|.
39 virtual void PrintDocument(const MetafilePlayer& metafile,
H A Dprinted_document_linux.cc31 ->PrintDocument(*page.metafile());
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 Dimage.h33 // 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 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 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 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 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
H A Dprinting_context_linux.h36 // Prints the document contained in |metafile|.
37 void PrintDocument(const MetafilePlayer& metafile);
/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/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.h229 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...]
/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 Dprint_web_view_helper.h217 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...]
/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...]

Completed in 1072 milliseconds

12