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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ash / scanner / scanner_command.cc [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/scanner/scanner_command.h"
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include "ui/base/clipboard/clipboard_data.h"
#include "url/gurl.h"
namespace ash {
OpenUrlCommand::OpenUrlCommand(GURL url) : url(std::move(url)) {}
OpenUrlCommand::OpenUrlCommand(const OpenUrlCommand&) = default;
OpenUrlCommand& OpenUrlCommand::operator=(const OpenUrlCommand&) = default;
OpenUrlCommand::OpenUrlCommand(OpenUrlCommand&&) = default;
OpenUrlCommand& OpenUrlCommand::operator=(OpenUrlCommand&&) = default;
OpenUrlCommand::~OpenUrlCommand() = default;
DriveUploadCommand::DriveUploadCommand(std::string title,
std::string contents,
std::string contents_mime_type,
std::string_view converted_mime_type)
: title(std::move(title)),
contents(std::move(contents)),
contents_mime_type(std::move(contents_mime_type)),
converted_mime_type(std::move(converted_mime_type)) {}
DriveUploadCommand::DriveUploadCommand(const DriveUploadCommand&) = default;
DriveUploadCommand& DriveUploadCommand::operator=(const DriveUploadCommand&) =
default;
DriveUploadCommand::DriveUploadCommand(DriveUploadCommand&&) = default;
DriveUploadCommand& DriveUploadCommand::operator=(DriveUploadCommand&&) =
default;
DriveUploadCommand::~DriveUploadCommand() = default;
CopyToClipboardCommand::CopyToClipboardCommand(
std::unique_ptr<ui::ClipboardData> clipboard_data)
: clipboard_data(std::move(clipboard_data)) {}
CopyToClipboardCommand::CopyToClipboardCommand(CopyToClipboardCommand&&) =
default;
CopyToClipboardCommand& CopyToClipboardCommand::operator=(
CopyToClipboardCommand&&) = default;
CopyToClipboardCommand::~CopyToClipboardCommand() = default;
} // namespace ash