| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BACKEND_PRINT_BACKEND_H_ | 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_ |
| 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ | 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "printing/print_job_constants.h" | 13 #include "printing/print_job_constants.h" |
| 14 #include "printing/printing_export.h" | 14 #include "printing/printing_export.h" |
| 15 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class DictionaryValue; | 18 class DictionaryValue; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // This is the interface for platform-specific code for a print backend | 21 // This is the interface for platform-specific code for a print backend |
| 22 namespace printing { | 22 namespace printing { |
| 23 | 23 |
| 24 // Note: There are raw values. The |printer_name| and |printer_description| | 24 // Note: There are raw values. The |printer_name| and |printer_description| |
| 25 // require further interpretation on Mac. See existing callers for examples. | 25 // require further interpretation on Mac and Chrome OS. See existing callers for |
| 26 // examples. |
| 26 struct PRINTING_EXPORT PrinterBasicInfo { | 27 struct PRINTING_EXPORT PrinterBasicInfo { |
| 27 PrinterBasicInfo(); | 28 PrinterBasicInfo(); |
| 28 PrinterBasicInfo(const PrinterBasicInfo& other); | 29 PrinterBasicInfo(const PrinterBasicInfo& other); |
| 29 ~PrinterBasicInfo(); | 30 ~PrinterBasicInfo(); |
| 30 | 31 |
| 31 std::string printer_name; | 32 std::string printer_name; |
| 32 std::string printer_description; | 33 std::string printer_description; |
| 33 int printer_status; | 34 int printer_status; |
| 34 int is_default; | 35 int is_default; |
| 35 std::map<std::string, std::string> options; | 36 std::map<std::string, std::string> options; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 static void SetNativeCupsEnabled(bool enabled); | 130 static void SetNativeCupsEnabled(bool enabled); |
| 130 | 131 |
| 131 protected: | 132 protected: |
| 132 friend class base::RefCountedThreadSafe<PrintBackend>; | 133 friend class base::RefCountedThreadSafe<PrintBackend>; |
| 133 virtual ~PrintBackend(); | 134 virtual ~PrintBackend(); |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace printing | 137 } // namespace printing |
| 137 | 138 |
| 138 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ | 139 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ |
| OLD | NEW |