OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_TRANSLATOR_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_TRANSLATOR_H_ | |
7 | |
8 #include "chrome/browser/chromeos/printing/printer_configuration.h" | |
9 | |
10 namespace base { | |
11 class DictionaryValue; | |
12 } | |
13 | |
14 namespace chromeos { | |
15 | |
16 extern const char kPrinterId[]; | |
17 | |
18 // Merge the fields in |pref| into |printer|. Returns false if a required field | |
19 // is missing. | |
20 bool MergePrinterPreference(const base::DictionaryValue& pref, | |
21 Printer* printer); | |
22 | |
23 // Updates the dictionary |pref| with the attributes of |printer|. | |
24 void PrinterToPref(const Printer& printer, base::DictionaryValue* pref); | |
stevenjb
2016/07/29 16:56:51
These should be in their own namespace, e.g. 'prin
skau
2016/08/01 19:37:21
Just this or the Printer class too?
stevenjb
2016/08/01 20:48:16
Classes are a namespace unto themselves, so puttin
| |
25 | |
26 } // namespace chromeos | |
27 | |
28 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_TRANSLATOR_H_ | |
OLD | NEW |