This source file includes following definitions.
- TouchpadExists
- MouseExists
#include "chrome/browser/chromeos/system/device_change_handler.h"
#include "chrome/browser/chromeos/system/input_device_settings.h"
namespace chromeos {
namespace system {
DeviceChangeHandler::DeviceChangeHandler()
: pointer_device_observer_(new PointerDeviceObserver) {
pointer_device_observer_->AddObserver(this);
pointer_device_observer_->Init();
TouchpadExists(true);
MouseExists(true);
}
DeviceChangeHandler::~DeviceChangeHandler() {
pointer_device_observer_->RemoveObserver(this);
}
void DeviceChangeHandler::TouchpadExists(bool exists) {
if (!exists)
return;
system::InputDeviceSettings::Get()->ReapplyTouchpadSettings();
}
void DeviceChangeHandler::MouseExists(bool exists) {
if (!exists)
return;
system::InputDeviceSettings::Get()->ReapplyMouseSettings();
}
}
}