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

Side by Side Diff: printing/print_settings_initializer.h

Issue 47823002: De-duplicate job_settings parsing code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/page_range.h"
Lei Zhang 2013/10/28 23:40:23 You can just forward declare instead.
Vitaly Buka (NO REVIEWS) 2013/10/29 00:36:00 Only PageRange. PageRanges is "typedef vector<>"
10 #include "printing/printing_export.h" 11 #include "printing/printing_export.h"
11 12
12 namespace base { 13 namespace base {
13 class DictionaryValue; 14 class DictionaryValue;
14 } 15 }
15 16
16 namespace printing { 17 namespace printing {
17 18
18 class PrintSettings; 19 class PrintSettings;
19 20
20 // Initializes the header footer strings in the PrintSettings object from the 21 // Initializes the header footer strings in the PrintSettings object from the
21 // provided |job_settings|. 22 // provided |job_settings|.
22 class PRINTING_EXPORT PrintSettingsInitializer { 23 class PRINTING_EXPORT PrintSettingsInitializer {
23 public: 24 public:
24 static void InitHeaderFooterStrings( 25 static bool InitSettings(
25 const base::DictionaryValue& job_settings, 26 const base::DictionaryValue& job_settings,
27 const PageRanges& ranges,
26 PrintSettings* print_settings); 28 PrintSettings* print_settings);
27 29
28 private: 30 private:
29 DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer); 31 DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializer);
30 }; 32 };
31 33
32 } // namespace printing 34 } // namespace printing
33 35
34 #endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_ 36 #endif // PRINTING_PRINT_SETTINGS_INITIALIZER_H_
35 37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698