From 55b23a0e5ac8b7e29ba56892d302286856b7f98a Mon Sep 17 00:00:00 2001 From: "aayushkumar@chromium.org" Date: Wed, 17 Aug 2011 23:09:36 +0000 Subject: Added Header and Footer support in Linux, Windows and Mac for Skia BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97219 Review URL: http://codereview.chromium.org/7348010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97233 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/print_settings.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'printing/print_settings.h') diff --git a/printing/print_settings.h b/printing/print_settings.h index ee78556..8fea6dd 100644 --- a/printing/print_settings.h +++ b/printing/print_settings.h @@ -7,6 +7,8 @@ #include +#include "base/memory/scoped_ptr.h" +#include "base/string16.h" #include "printing/page_range.h" #include "printing/page_setup.h" #include "ui/gfx/rect.h" @@ -95,6 +97,14 @@ class PrintSettings { // Updates the orientation and flip the page if needed. void SetOrientation(bool landscape); + // Strings to be printed as headers and footers if requested by the user. + string16 date; + string16 title; + string16 url; + + // True if the user wants headers and footers to be displayed. + bool display_header_footer; + private: ////////////////////////////////////////////////////////////////////////////// // Settings that can't be changed without side-effects. -- cgit v1.1