blob: 3a03950347d613032a8e19d3d81df8e3f25392d7 [file] [log] [blame]
[email protected]de6ac322012-03-05 23:17:251// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]8e553f492010-10-25 20:05:442// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "printing/backend/print_backend.h"
6
skau8ffe7752016-06-29 02:10:287namespace {
skaua1e0b7a62016-12-22 23:23:148
9// PrintBackend override for testing.
10printing::PrintBackend* g_print_backend_for_test = nullptr;
11
skau8ffe7752016-06-29 02:10:2812} // namespace
13
[email protected]8e553f492010-10-25 20:05:4414namespace printing {
15
[email protected]3fe291b2011-06-22 06:18:1816PrinterBasicInfo::PrinterBasicInfo()
17 : printer_status(0),
18 is_default(false) {}
[email protected]8e553f492010-10-25 20:05:4419
vmpstr04b8358f2016-02-26 01:38:2920PrinterBasicInfo::PrinterBasicInfo(const PrinterBasicInfo& other) = default;
21
[email protected]8e553f492010-10-25 20:05:4422PrinterBasicInfo::~PrinterBasicInfo() {}
23
[email protected]8b6098e2012-09-07 04:21:2124PrinterSemanticCapsAndDefaults::PrinterSemanticCapsAndDefaults()
[email protected]dfb4a9d2014-06-05 21:44:4525 : collate_capable(false),
[email protected]15b0a342014-02-05 04:11:2226 collate_default(false),
27 copies_capable(false),
[email protected]15b0a342014-02-05 04:11:2228 duplex_capable(false),
[email protected]dfb4a9d2014-06-05 21:44:4529 duplex_default(UNKNOWN_DUPLEX_MODE),
30 color_changeable(false),
[email protected]53ff43d2014-06-08 09:05:4531 color_default(false),
[email protected]dfb4a9d2014-06-05 21:44:4532 color_model(UNKNOWN_COLOR_MODEL),
33 bw_model(UNKNOWN_COLOR_MODEL)
[email protected]dfb4a9d2014-06-05 21:44:4534{}
[email protected]8b6098e2012-09-07 04:21:2135
vmpstrbcdec0d2016-04-14 01:24:5236PrinterSemanticCapsAndDefaults::PrinterSemanticCapsAndDefaults(
37 const PrinterSemanticCapsAndDefaults& other) = default;
38
[email protected]8b6098e2012-09-07 04:21:2139PrinterSemanticCapsAndDefaults::~PrinterSemanticCapsAndDefaults() {}
40
[email protected]d2f05d02011-01-27 18:51:0141PrinterCapsAndDefaults::PrinterCapsAndDefaults() {}
42
vmpstr04b8358f2016-02-26 01:38:2943PrinterCapsAndDefaults::PrinterCapsAndDefaults(
44 const PrinterCapsAndDefaults& other) = default;
45
[email protected]d2f05d02011-01-27 18:51:0146PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {}
47
[email protected]8e553f492010-10-25 20:05:4448PrintBackend::~PrintBackend() {}
49
skau8ffe7752016-06-29 02:10:2850// static
skaua1e0b7a62016-12-22 23:23:1451scoped_refptr<PrintBackend> PrintBackend::CreateInstance(
52 const base::DictionaryValue* print_backend_settings) {
53 return g_print_backend_for_test
54 ? g_print_backend_for_test
55 : PrintBackend::CreateInstanceImpl(print_backend_settings);
56}
57
58// static
59void PrintBackend::SetPrintBackendForTesting(PrintBackend* backend) {
60 g_print_backend_for_test = backend;
61}
62
[email protected]8e553f492010-10-25 20:05:4463} // namespace printing