/external/chromium_org/printing/ |
image_android.cc | 9 bool Image::LoadMetafile(const Metafile& metafile) {
|
image_linux.cc | 9 bool Image::LoadMetafile(const Metafile& metafile) {
|
metafile_skia_wrapper.h | 15 class Metafile; 17 // A wrapper class with static methods to set and retrieve a Metafile 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 23 static void SetMetafileOnCanvas(const SkCanvas& canvas, Metafile* metafile); 25 static Metafile* GetMetafileFromCanvas(const SkCanvas& canvas); 27 // Methods to set and retrieve custom scale factor for metafile from canvas. 32 explicit MetafileSkiaWrapper(Metafile* metafile); [all...] |
metafile_skia_wrapper.cc | 23 Metafile* metafile) { 25 if (metafile) 26 wrapper = skia::AdoptRef(new MetafileSkiaWrapper(metafile)); 33 Metafile* MetafileSkiaWrapper::GetMetafileFromCanvas(const SkCanvas& canvas) { 61 MetafileSkiaWrapper::MetafileSkiaWrapper(Metafile* metafile) 62 : metafile_(metafile) {
|
image_mac.cc | 10 #include "printing/metafile.h" 15 bool Image::LoadMetafile(const Metafile& metafile) { 18 gfx::Rect rect(metafile.GetPageBounds(page_number)); 40 struct Metafile::MacRenderPageParams params; 42 metafile.RenderPage(page_number, bitmap_context,
|
printed_document_mac.cc | 32 const Metafile* metafile = page.metafile(); local 33 // Each Metafile is a one-page PDF, and pages use 1-based indexing. 35 struct Metafile::MacRenderPageParams params; 37 metafile->RenderPage(page_number, context, content_area.ToCGRect(), params);
|
printed_page.cc | 10 Metafile* metafile, 15 metafile_(metafile), 24 const Metafile* PrintedPage::metafile() const { function in class:printing::PrintedPage
|
print_dialog_gtk_interface.h | 14 class Metafile; 40 // Prints the document named |document_name| contained in |metafile|. 43 virtual void PrintDocument(const Metafile* metafile,
|
printed_page.h | 10 #include "printing/metafile.h" 26 Metafile* metafile, 33 const Metafile* metafile() const; 52 const scoped_ptr<Metafile> metafile_;
|
printed_document_gtk.cc | 30 page.metafile());
|
image_win.cc | 10 #include "printing/metafile.h" 52 bool Image::LoadMetafile(const Metafile& metafile) { 53 gfx::Rect rect(metafile.GetPageBounds(1)); 61 DCHECK_GE(rect.width(), 0); // Metafile could be empty. 78 bool success = metafile.Playback(hdc, NULL);
|
image.h | 22 class Metafile; 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);
|
image.cc | 13 #include "printing/metafile.h" 40 Image::Image(const Metafile& metafile) 43 LoadMetafile(metafile); 153 NativeMetafile metafile; local 154 if (!metafile.InitFromData(data.data(), 157 return LoadMetafile(metafile);
|
printing_context_gtk.cc | 12 #include "printing/metafile.h" 54 void PrintingContextGtk::PrintDocument(const Metafile* metafile) { 56 DCHECK(metafile); 57 print_dialog_->PrintDocument(metafile, document_name_);
|
printing_context_gtk.h | 18 class Metafile; 31 // Prints the document contained in |metafile|. 32 void PrintDocument(const Metafile* metafile);
|
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(
|
printed_document_win.cc | 72 if (!page.metafile()->SafePlayback(context)) {
|
/external/chromium_org/chrome/renderer/printing/ |
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->FinishDocument() [all...] |
print_web_view_helper_linux.cc | 11 #include "printing/metafile.h" 36 scoped_ptr<Metafile> draft_metafile; 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() [all...] |
print_web_view_helper.h | 241 Metafile* metafile); 252 // Platform specific helper function for rendering page(s) to |metafile|. 258 Metafile* metafile, 267 Metafile* metafile, 285 bool CopyMetafileDataToSharedMem(Metafile* metafile, 344 // |metafile| is the rendered page. Otherwise |metafile| is NULL [all...] |
/external/chromium_org/android_webview/renderer/ |
print_web_view_helper_linux.cc | 11 #include "printing/metafile.h" 36 scoped_ptr<Metafile> draft_metafile; 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() [all...] |
print_web_view_helper.h | 241 Metafile* metafile); 252 // Platform specific helper function for rendering page(s) to |metafile|. 258 Metafile* metafile, 267 Metafile* metafile, 285 bool CopyMetafileDataToSharedMem(Metafile* metafile, 341 // |metafile| is the rendered page. Otherwise |metafile| is NULL [all...] |
/external/chromium/chrome/browser/printing/ |
print_dialog_gtk.h | 25 class Metafile; 46 virtual void PrintDocument(const printing::Metafile* metafile, 61 // Saves data in |metafile| to disk for document named |document_name|. 62 void SaveDocumentToDisk(const printing::Metafile* metafile,
|
/external/chromium_org/chrome/browser/printing/ |
print_dialog_gtk.h | 21 class Metafile; 46 virtual void PrintDocument(const printing::Metafile* metafile,
|
/external/chromium/chrome/browser/ui/webui/ |
print_preview_handler.cc | 27 #include "printing/metafile.h" 192 // Takes ownership of |metafile|. 193 PrintToPdfTask(printing::Metafile* metafile, const FilePath& path) 194 : metafile_(metafile), path_(path) { 205 // The metafile holding the PDF data. 206 scoped_ptr<printing::Metafile> metafile_; 366 printing::PreviewMetafile* metafile = new printing::PreviewMetafile; local 367 metafile->InitFromData(data.first->memory(), data.second); 372 PrintToPdfTask* task = new PrintToPdfTask(metafile, path) [all...] |