blob: 9cfa2c20fe85f272bbc30404764eab0c6080482c [file] [log] [blame]
// Copyright 2013 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.
#ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_DEVICE_CHANGE_HANDLER_H_
#define CHROME_BROWSER_CHROMEOS_SYSTEM_DEVICE_CHANGE_HANDLER_H_
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/system/pointer_device_observer.h"
namespace chromeos {
namespace system {
// Observes changes in device hierarchy. When a new touchpad/mouse is attached,
// applies the last used touchpad/mouse settings to the system.
class DeviceChangeHandler : public PointerDeviceObserver::Observer {
public:
DeviceChangeHandler();
~DeviceChangeHandler() override;
private:
// PointerDeviceObserver::Observer implementation.
void TouchpadExists(bool exists) override;
void MouseExists(bool exists) override;
scoped_ptr<PointerDeviceObserver> pointer_device_observer_;
};
} // namespace system
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_DEVICE_CHANGE_HANDLER_H_