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 #include "printing/backend/print_backend.h" | 5 #include "printing/backend/print_backend.h" |
6 | 6 |
| 7 namespace { |
| 8 bool g_native_cups_enabled = false; |
| 9 } // namespace |
| 10 |
7 namespace printing { | 11 namespace printing { |
8 | 12 |
9 PrinterBasicInfo::PrinterBasicInfo() | 13 PrinterBasicInfo::PrinterBasicInfo() |
10 : printer_status(0), | 14 : printer_status(0), |
11 is_default(false) {} | 15 is_default(false) {} |
12 | 16 |
13 PrinterBasicInfo::PrinterBasicInfo(const PrinterBasicInfo& other) = default; | 17 PrinterBasicInfo::PrinterBasicInfo(const PrinterBasicInfo& other) = default; |
14 | 18 |
15 PrinterBasicInfo::~PrinterBasicInfo() {} | 19 PrinterBasicInfo::~PrinterBasicInfo() {} |
16 | 20 |
(...skipping 16 matching lines...) Expand all Loading... |
33 | 37 |
34 PrinterCapsAndDefaults::PrinterCapsAndDefaults() {} | 38 PrinterCapsAndDefaults::PrinterCapsAndDefaults() {} |
35 | 39 |
36 PrinterCapsAndDefaults::PrinterCapsAndDefaults( | 40 PrinterCapsAndDefaults::PrinterCapsAndDefaults( |
37 const PrinterCapsAndDefaults& other) = default; | 41 const PrinterCapsAndDefaults& other) = default; |
38 | 42 |
39 PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {} | 43 PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {} |
40 | 44 |
41 PrintBackend::~PrintBackend() {} | 45 PrintBackend::~PrintBackend() {} |
42 | 46 |
| 47 // static |
| 48 bool PrintBackend::GetNativeCupsEnabled() { |
| 49 return g_native_cups_enabled; |
| 50 } |
| 51 |
| 52 // static |
| 53 void PrintBackend::SetNativeCupsEnabled(bool enabled) { |
| 54 g_native_cups_enabled = enabled; |
| 55 } |
| 56 |
43 } // namespace printing | 57 } // namespace printing |
OLD | NEW |