#include "ui/events/ozone/device/device_manager_manual.h"
#include "base/files/file_enumerator.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/observer_list.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "ui/events/ozone/device/device_event.h"
#include "ui/events/ozone/device/device_event_observer.h"
namespace ui {
namespace {
const base::FilePath::CharType kDevInput[] = …);
void ScanDevicesOnWorkerThread(std::vector<base::FilePath>* result) { … }
}
DeviceManagerManual::DeviceManagerManual()
: … { … }
DeviceManagerManual::~DeviceManagerManual() { … }
void DeviceManagerManual::ScanDevices(DeviceEventObserver* observer) { … }
void DeviceManagerManual::AddObserver(DeviceEventObserver* observer) { … }
void DeviceManagerManual::RemoveObserver(DeviceEventObserver* observer) { … }
void DeviceManagerManual::StartWatching() { … }
void DeviceManagerManual::InitiateScanDevices() { … }
void DeviceManagerManual::OnDevicesScanned(
std::vector<base::FilePath>* result) { … }
void DeviceManagerManual::OnWatcherEvent(const base::FilePath& path,
bool error) { … }
void DeviceManagerManual::OnWatcherEventOnUiSequence(
scoped_refptr<base::TaskRunner> ui_thread_runner,
base::WeakPtr<DeviceManagerManual> device_manager,
const base::FilePath& path,
bool error) { … }
}