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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
ash / webui / files_internals / files_internals_page_handler.cc [blame]
// Copyright 2022 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/webui/files_internals/files_internals_page_handler.h"
#include "ash/webui/files_internals/files_internals_ui.h"
namespace ash {
FilesInternalsPageHandler::FilesInternalsPageHandler(
FilesInternalsUI* files_internals_ui,
mojo::PendingReceiver<mojom::files_internals::PageHandler> receiver)
: files_internals_ui_(files_internals_ui),
receiver_(this, std::move(receiver)) {}
FilesInternalsPageHandler::~FilesInternalsPageHandler() = default;
void FilesInternalsPageHandler::GetSmbfsEnableVerboseLogging(
GetSmbfsEnableVerboseLoggingCallback callback) {
std::move(callback).Run(
files_internals_ui_->delegate()->GetSmbfsEnableVerboseLogging());
}
void FilesInternalsPageHandler::SetSmbfsEnableVerboseLogging(bool enabled) {
files_internals_ui_->delegate()->SetSmbfsEnableVerboseLogging(enabled);
}
void FilesInternalsPageHandler::GetOfficeFileHandlers(
GetOfficeFileHandlersCallback callback) {
std::move(callback).Run(
files_internals_ui_->delegate()->GetOfficeFileHandlers());
}
void FilesInternalsPageHandler::ClearOfficeFileHandlers() {
files_internals_ui_->delegate()->ClearOfficeFileHandlers();
}
void FilesInternalsPageHandler::GetMoveConfirmationShownForDrive(
GetMoveConfirmationShownForDriveCallback callback) {
std::move(callback).Run(
files_internals_ui_->delegate()->GetMoveConfirmationShownForDrive());
}
void FilesInternalsPageHandler::GetMoveConfirmationShownForOneDrive(
GetMoveConfirmationShownForOneDriveCallback callback) {
std::move(callback).Run(
files_internals_ui_->delegate()->GetMoveConfirmationShownForOneDrive());
}
void FilesInternalsPageHandler::GetMoveConfirmationShownForLocalToDrive(
GetMoveConfirmationShownForLocalToDriveCallback callback) {
std::move(callback).Run(files_internals_ui_->delegate()
->GetMoveConfirmationShownForLocalToDrive());
}
void FilesInternalsPageHandler::GetMoveConfirmationShownForLocalToOneDrive(
GetMoveConfirmationShownForLocalToOneDriveCallback callback) {
std::move(callback).Run(files_internals_ui_->delegate()
->GetMoveConfirmationShownForLocalToOneDrive());
}
void FilesInternalsPageHandler::GetMoveConfirmationShownForCloudToDrive(
GetMoveConfirmationShownForCloudToDriveCallback callback) {
std::move(callback).Run(files_internals_ui_->delegate()
->GetMoveConfirmationShownForCloudToDrive());
}
void FilesInternalsPageHandler::GetMoveConfirmationShownForCloudToOneDrive(
GetMoveConfirmationShownForCloudToOneDriveCallback callback) {
std::move(callback).Run(files_internals_ui_->delegate()
->GetMoveConfirmationShownForCloudToOneDrive());
}
void FilesInternalsPageHandler::GetAlwaysMoveOfficeFilesToDrive(
GetAlwaysMoveOfficeFilesToDriveCallback callback) {
std::move(callback).Run(
files_internals_ui_->delegate()->GetAlwaysMoveOfficeFilesToDrive());
}
void FilesInternalsPageHandler::SetAlwaysMoveOfficeFilesToDrive(
bool always_move) {
files_internals_ui_->delegate()->SetAlwaysMoveOfficeFilesToDrive(always_move);
}
void FilesInternalsPageHandler::GetAlwaysMoveOfficeFilesToOneDrive(
GetAlwaysMoveOfficeFilesToOneDriveCallback callback) {
std::move(callback).Run(
files_internals_ui_->delegate()->GetAlwaysMoveOfficeFilesToOneDrive());
}
void FilesInternalsPageHandler::SetAlwaysMoveOfficeFilesToOneDrive(
bool always_move) {
files_internals_ui_->delegate()->SetAlwaysMoveOfficeFilesToOneDrive(
always_move);
}
} // namespace ash