summaryrefslogtreecommitdiffstats
path: root/printing/printed_document.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 22:01:52 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 22:01:52 +0000
commite059878de96a6fcdc70dfc3bf13d37be6d1a697a (patch)
tree4387419d69b2946a556e43d52596c78c07582e17 /printing/printed_document.h
parentcceaf8512b4cb70a81db1f371ae094e2f2d3f645 (diff)
downloadchromium_src-e059878de96a6fcdc70dfc3bf13d37be6d1a697a.zip
chromium_src-e059878de96a6fcdc70dfc3bf13d37be6d1a697a.tar.gz
chromium_src-e059878de96a6fcdc70dfc3bf13d37be6d1a697a.tar.bz2
Printing: Refactor a few helper methods implemented per-platform to clean up
ifdef mess in PrintedDocument implementation. BUG=none TEST=none Review URL: http://codereview.chromium.org/3564016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document.h')
-rw-r--r--printing/printed_document.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/printing/printed_document.h b/printing/printed_document.h
index dfab7a5..f42e075 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -149,6 +149,9 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
int cookie);
~Immutable();
+ // Sets the document's |date_| and |time_|.
+ void SetDocumentDate();
+
// Print settings used to generate this document. Immutable.
PrintSettings settings_;
@@ -184,6 +187,15 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
PageOverlays::VerticalPosition y,
const gfx::Font& font) const;
+ // Draws the computed |text| into |context| taking into account the bounding
+ // region |bounds|. |bounds| is the position in which to draw |text| and
+ // the minimum area needed to contain |text| which may not be larger than the
+ // header or footer itself.
+ // TODO(jhawkins): string16.
+ void DrawHeaderFooter(gfx::NativeDrawingContext context,
+ std::wstring text,
+ gfx::Rect bounds) const;
+
void DebugDump(const PrintedPage& page);
// All writable data member access must be guarded by this lock. Needs to be