Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: printing/print_settings_conversion.h

Issue 329683002: Improvements in --debug-print switch implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/12/2014 2:53:06.07 Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/print_settings.h ('k') | printing/print_settings_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_settings_conversion.h
diff --git a/printing/print_settings_initializer.h b/printing/print_settings_conversion.h
similarity index 42%
rename from printing/print_settings_initializer.h
rename to printing/print_settings_conversion.h
index a1093c5a3b8609a93a147329912a525e5f7194ba..e06854f7f28c09f137ce4f662241d1706434cc5b 100644
--- a/printing/print_settings_initializer.h
+++ b/printing/print_settings_conversion.h
@@ -2,8 +2,8 @@
// 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_
+#ifndef PRINTING_PRINT_SETTINGS_CONVERSION_H_
+#define PRINTING_PRINT_SETTINGS_CONVERSION_H_
#include "base/basictypes.h"
#include "base/logging.h"
@@ -18,20 +18,14 @@ namespace printing {
class PrintSettings;
-// Initializes the header footer strings in the PrintSettings object from the
-// provided |job_settings|.
-class PRINTING_EXPORT PrintSettingsInitializer {
- public:
- static bool InitSettings(
- const base::DictionaryValue& job_settings,
- const PageRanges& ranges,
- PrintSettings* print_settings);
+bool PrintSettingsFromJobSettings(const base::DictionaryValue& job_settings,
+ PrintSettings* print_settings);
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer);
-};
+// Use for debug only, because output is not completely consistent with format
+// of |PrintSettingsFromJobSettings| input.
+void PrintSettingsToJobSettingsDebug(const PrintSettings& settings,
+ base::DictionaryValue* job_settings);
} // namespace printing
-#endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_
-
+#endif // PRINTING_PRINT_SETTINGS_CONVERSION_H_
« no previous file with comments | « printing/print_settings.h ('k') | printing/print_settings_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698