diff options
Diffstat (limited to 'printing/printed_document.h')
-rw-r--r-- | printing/printed_document.h | 12 |
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 |