Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PRINTING_PRINT_SETTINGS_INITIALIZER_H_ |
| 6 | #define PRINTING_PRINT_SETTINGS_INITIALIZER_H_ |
| 7 | |
| 8 | #include "base/basictypes.h" |
| 9 | #include "base/logging.h" |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 10 | #include "printing/page_range.h" |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 11 | #include "printing/printing_export.h" |
| 12 | |
| 13 | namespace base { |
| 14 | class DictionaryValue; |
| 15 | } |
| 16 | |
| 17 | namespace printing { |
| 18 | |
| 19 | class PrintSettings; |
| 20 | |
| 21 | // Initializes the header footer strings in the PrintSettings object from the |
| 22 | // provided |job_settings|. |
| 23 | class PRINTING_EXPORT PrintSettingsInitializer { |
| 24 | public: |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 25 | static bool InitSettings( |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 26 | const base::DictionaryValue& job_settings, |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 27 | const PageRanges& ranges, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 28 | PrintSettings* print_settings); |
| 29 | |
| 30 | private: |
| 31 | DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer); |
| 32 | }; |
| 33 | |
| 34 | } // namespace printing |
| 35 | |
| 36 | #endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_ |
| 37 | |