| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PRINTING_PRINT_SETTINGS_INITIALIZER_H_ | 5 #ifndef PRINTING_PRINT_SETTINGS_INITIALIZER_H_ |
| 6 #define PRINTING_PRINT_SETTINGS_INITIALIZER_H_ | 6 #define PRINTING_PRINT_SETTINGS_INITIALIZER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "printing/printing_export.h" |
| 10 | 11 |
| 11 namespace base { | 12 namespace base { |
| 12 class DictionaryValue; | 13 class DictionaryValue; |
| 13 } | 14 } |
| 14 | 15 |
| 15 namespace printing { | 16 namespace printing { |
| 16 | 17 |
| 17 class PrintSettings; | 18 class PrintSettings; |
| 18 | 19 |
| 19 // Initializes the header footer strings in the PrintSettings object from the | 20 // Initializes the header footer strings in the PrintSettings object from the |
| 20 // provided |job_settings|. | 21 // provided |job_settings|. |
| 21 class PrintSettingsInitializer { | 22 class PRINTING_EXPORT PrintSettingsInitializer { |
| 22 public: | 23 public: |
| 23 static void InitHeaderFooterStrings( | 24 static void InitHeaderFooterStrings( |
| 24 const base::DictionaryValue& job_settings, | 25 const base::DictionaryValue& job_settings, |
| 25 PrintSettings* print_settings); | 26 PrintSettings* print_settings); |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer); | 29 DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } // namespace printing | 32 } // namespace printing |
| 32 | 33 |
| 33 #endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_ | 34 #endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_ |
| 34 | 35 |
| OLD | NEW |