Chromium Code Reviews| 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 CHROMEOS_PRINTING_PRINTER_TRANSLATOR_H_ | |
| 6 #define CHROMEOS_PRINTING_PRINTER_TRANSLATOR_H_ | |
| 7 | |
| 8 #include "chromeos/printing/printer_configuration.h" | |
| 9 | |
| 10 namespace base { | |
| 11 class DictionaryValue; | |
| 12 } | |
| 13 | |
| 14 namespace chromeos { | |
| 15 namespace printing { | |
| 16 | |
| 17 extern const char kPrinterId[]; | |
| 18 | |
| 19 // Merge the fields in |pref| into |printer|. Returns false if a required field | |
| 20 // is missing. | |
| 21 bool MergePrinterPreference(const base::DictionaryValue& pref, | |
|
Lei Zhang
2016/08/02 02:35:53
Same as below.
skau
2016/08/02 20:17:22
There could be instances where we would want to ap
| |
| 22 Printer* printer); | |
| 23 | |
| 24 // Updates the dictionary |pref| with the attributes of |printer|. | |
| 25 void PrinterToPref(const Printer& printer, base::DictionaryValue* pref); | |
|
Lei Zhang
2016/08/02 02:35:52
Are there any situations where you actually want t
skau
2016/08/02 20:17:22
This should return a new dictionary. In the case
| |
| 26 | |
| 27 } // namespace printing | |
| 28 } // namespace chromeos | |
| 29 | |
| 30 #endif // CHROMEOS_PRINTING_PRINTER_TRANSLATOR_H_ | |
| OLD | NEW |