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 CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_CAPABILITIES_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_CAPABILITIES_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <string> | |
| 10 #include <utility> | |
| 11 | |
| 12 #include "base/values.h" | |
| 13 #include "printing/printing_export.h" | |
|
Lei Zhang
2016/11/02 23:09:22
Nothing is being exported here?
skau
2016/11/03 22:38:08
Done.
| |
| 14 | |
| 15 namespace printing { | |
| 16 | |
| 17 struct PrinterBasicInfo; | |
| 18 | |
| 19 // Printer capability setting keys. | |
| 20 extern const char kPrinterId[]; | |
| 21 extern const char kPrinterCapabilities[]; | |
| 22 | |
| 23 // Extracts the printer display name and description from the | |
| 24 // appropriate fields in |printer| for the platform. | |
| 25 std::pair<std::string, std::string> GetPrinterNameAndDescription( | |
| 26 const PrinterBasicInfo& printer); | |
| 27 | |
| 28 // Constructs the JSON representing printer capabilities information suitable | |
| 29 // for passing to the WebUI. | |
| 30 std::unique_ptr<base::DictionaryValue> GetSettingsDictionary( | |
| 31 const std::string& device_name, | |
|
Lei Zhang
2016/11/02 23:09:22
Please explain what this is exactly, as PrinterBas
skau
2016/11/03 22:38:08
Done.
| |
| 32 const PrinterBasicInfo& basic_info); | |
| 33 | |
| 34 } // namespace printing | |
| 35 | |
| 36 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_CAPABILITIES_H_ | |
| OLD | NEW |