Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: printing/pdf_metafile_cairo_linux.h

Issue 6879098: Fix print preview clipping issues due to scaling. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix mac build. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/metafile.h ('k') | printing/pdf_metafile_cairo_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_PDF_METAFILE_CAIRO_LINUX_H_ 5 #ifndef PRINTING_PDF_METAFILE_CAIRO_LINUX_H_
6 #define PRINTING_PDF_METAFILE_CAIRO_LINUX_H_ 6 #define PRINTING_PDF_METAFILE_CAIRO_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // Metafile methods. 31 // Metafile methods.
32 virtual bool Init(); 32 virtual bool Init();
33 33
34 // Calling InitFromData() sets the data for this metafile and masks data 34 // Calling InitFromData() sets the data for this metafile and masks data
35 // induced by previous calls to Init() or InitFromData(), even if drawing 35 // induced by previous calls to Init() or InitFromData(), even if drawing
36 // continues on the surface returned by a previous call to Init(). 36 // continues on the surface returned by a previous call to Init().
37 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); 37 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
38 38
39 virtual skia::PlatformDevice* StartPageForVectorCanvas( 39 virtual skia::PlatformDevice* StartPageForVectorCanvas(
40 const gfx::Size& page_size, const gfx::Point& content_origin, 40 const gfx::Size& page_size, const gfx::Rect& content_area,
41 const float& scale_factor); 41 const float& scale_factor);
42 virtual bool StartPage(const gfx::Size& page_size, 42 virtual bool StartPage(const gfx::Size& page_size,
43 const gfx::Point& content_origin, 43 const gfx::Rect& content_area,
44 const float& scale_factor); 44 const float& scale_factor);
45 virtual bool FinishPage(); 45 virtual bool FinishPage();
46 virtual bool FinishDocument(); 46 virtual bool FinishDocument();
47 47
48 virtual uint32 GetDataSize() const; 48 virtual uint32 GetDataSize() const;
49 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; 49 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const;
50 50
51 virtual bool SaveTo(const FilePath& file_path) const; 51 virtual bool SaveTo(const FilePath& file_path) const;
52 52
53 virtual gfx::Rect GetPageBounds(unsigned int page_number) const; 53 virtual gfx::Rect GetPageBounds(unsigned int page_number) const;
(...skipping 24 matching lines...) Expand all
78 // Points to the appropriate buffer depending on the way the object was 78 // Points to the appropriate buffer depending on the way the object was
79 // initialized (Init() vs InitFromData()). 79 // initialized (Init() vs InitFromData()).
80 std::string* current_data_; 80 std::string* current_data_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCairo); 82 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCairo);
83 }; 83 };
84 84
85 } // namespace printing 85 } // namespace printing
86 86
87 #endif // PRINTING_PDF_METAFILE_CAIRO_LINUX_H_ 87 #endif // PRINTING_PDF_METAFILE_CAIRO_LINUX_H_
OLDNEW
« no previous file with comments | « printing/metafile.h ('k') | printing/pdf_metafile_cairo_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698