Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / chromeos / system / device_change_handler.h
blob9cfa2c20fe85f272bbc30404764eab0c6080482c
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_DEVICE_CHANGE_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_DEVICE_CHANGE_HANDLER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/chromeos/system/pointer_device_observer.h"
11 namespace chromeos {
12 namespace system {
14 // Observes changes in device hierarchy. When a new touchpad/mouse is attached,
15 // applies the last used touchpad/mouse settings to the system.
16 class DeviceChangeHandler : public PointerDeviceObserver::Observer {
17 public:
18 DeviceChangeHandler();
19 ~DeviceChangeHandler() override;
21 private:
22 // PointerDeviceObserver::Observer implementation.
23 void TouchpadExists(bool exists) override;
24 void MouseExists(bool exists) override;
26 scoped_ptr<PointerDeviceObserver> pointer_device_observer_;
29 } // namespace system
30 } // namespace chromeos
33 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_DEVICE_CHANGE_HANDLER_H_