blob: 59db5c5d94c2c99dd00d8a878a9a2eea7371bb95 [file] [log] [blame]
// Copyright 2014 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 "ui/events/ozone/device/device_manager.h"
#include "base/memory/ptr_util.h"
#include "base/trace_event/trace_event.h"
#if defined(USE_UDEV)
#include "ui/events/ozone/device/udev/device_manager_udev.h"
#else
#include "ui/events/ozone/device/device_manager_manual.h"
#endif
namespace ui {
std::unique_ptr<DeviceManager> CreateDeviceManager() {
TRACE_EVENT0("ozone", "CreateDeviceManager");
#if defined(USE_UDEV)
return std::make_unique<DeviceManagerUdev>();
#else
return std::make_unique<DeviceManagerManual>();
#endif
}
} // namespace ui