diff options
author | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 22:04:58 +0000 |
---|---|---|
committer | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 22:04:58 +0000 |
commit | 540ac80c83db3f4865d007288a4f1b8524e0aa86 (patch) | |
tree | 949f85a92cd501baef2827c063e3476ae27bb97c /printing/print_settings_initializer.h | |
parent | 6895bf926cba01ef455bb7327703aa5378a46488 (diff) | |
download | chromium_src-540ac80c83db3f4865d007288a4f1b8524e0aa86.zip chromium_src-540ac80c83db3f4865d007288a4f1b8524e0aa86.tar.gz chromium_src-540ac80c83db3f4865d007288a4f1b8524e0aa86.tar.bz2 |
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.
Review URL: http://codereview.chromium.org/7348010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/print_settings_initializer.h')
-rw-r--r-- | printing/print_settings_initializer.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/printing/print_settings_initializer.h b/printing/print_settings_initializer.h new file mode 100644 index 0000000..de2e3cd --- /dev/null +++ b/printing/print_settings_initializer.h @@ -0,0 +1,34 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PRINTING_PRINT_SETTINGS_INITIALIZER_H_ +#define PRINTING_PRINT_SETTINGS_INITIALIZER_H_ + +#include "base/basictypes.h" +#include "base/logging.h" + +namespace base { +class DictionaryValue; +} + +namespace printing { + +class PrintSettings; + +// Initializes the header footer strings in the PrintSettings object from the +// provided |job_settings|. +class PrintSettingsInitializer { + public: + static void InitHeaderFooterStrings( + const base::DictionaryValue& job_settings, + PrintSettings* print_settings); + + private: + DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer); +}; + +} // namespace printing + +#endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_ + |