forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscanner.cc
39 lines (25 loc) · 1.15 KB
/
scanner.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/scanning/scanner.h"
namespace chromeos {
ScannerDeviceName::ScannerDeviceName(const std::string& device_name)
: device_name(device_name) {}
ScannerDeviceName::ScannerDeviceName(const std::string& device_name,
bool usable)
: device_name(device_name), usable(usable) {}
ScannerDeviceName::~ScannerDeviceName() = default;
ScannerDeviceName::ScannerDeviceName(const ScannerDeviceName& other) = default;
ScannerDeviceName& ScannerDeviceName::operator=(
const ScannerDeviceName& other) = default;
bool ScannerDeviceName::operator<(const ScannerDeviceName& other) const {
return device_name < other.device_name;
}
bool ScannerDeviceName::operator==(const ScannerDeviceName& other) const {
return device_name == other.device_name;
}
Scanner::Scanner() = default;
Scanner::~Scanner() = default;
Scanner::Scanner(const Scanner& other) = default;
Scanner& Scanner::operator=(const Scanner& other) = default;
} // namespace chromeos