summaryrefslogtreecommitdiffstats
path: root/printing/printed_page.h
diff options
context:
space:
mode:
authorhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 07:04:05 +0000
committerhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 07:04:05 +0000
commit40c7cfe39957248d38d8c376fbfc7d332c796741 (patch)
tree1e9cbc2bda99a4b4bc3286504dbca59a7542fb70 /printing/printed_page.h
parent829c9bbc87035a0e6a5606ff7654b761a2d9d0bf (diff)
downloadchromium_src-40c7cfe39957248d38d8c376fbfc7d332c796741.zip
chromium_src-40c7cfe39957248d38d8c376fbfc7d332c796741.tar.gz
chromium_src-40c7cfe39957248d38d8c376fbfc7d332c796741.tar.bz2
Implement limited paged media support for mac.
BUG=47277 TEST=none Review URL: http://codereview.chromium.org/2876020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_page.h')
-rw-r--r--printing/printed_page.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/printing/printed_page.h b/printing/printed_page.h
index f7d2f7d..83425ba 100644
--- a/printing/printed_page.h
+++ b/printing/printed_page.h
@@ -23,12 +23,14 @@ class PrintedPage : public base::RefCountedThreadSafe<PrintedPage> {
public:
PrintedPage(int page_number,
NativeMetafile* native_metafile,
- const gfx::Size& page_size);
+ const gfx::Size& page_size,
+ const gfx::Rect& page_content_rect);
// Getters
int page_number() const { return page_number_; }
const NativeMetafile* native_metafile() const;
const gfx::Size& page_size() const { return page_size_; }
+ const gfx::Rect& page_content_rect() const { return page_content_rect_; }
private:
friend class base::RefCountedThreadSafe<PrintedPage>;
@@ -45,6 +47,9 @@ class PrintedPage : public base::RefCountedThreadSafe<PrintedPage> {
// job.
const gfx::Size page_size_;
+ // The printable area of the page.
+ const gfx::Rect page_content_rect_;
+
DISALLOW_COPY_AND_ASSIGN(PrintedPage);
};