| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" | 5 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <linux/input.h> | 8 #include <linux/input.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 318 |
| 319 if (converter->type() == InputDeviceType::INPUT_DEVICE_INTERNAL && | 319 if (converter->type() == InputDeviceType::INPUT_DEVICE_INTERNAL && |
| 320 converter->HasKeyboard()) { | 320 converter->HasKeyboard()) { |
| 321 converter->SetKeyFilter( | 321 converter->SetKeyFilter( |
| 322 input_device_settings_.enable_internal_keyboard_filter, | 322 input_device_settings_.enable_internal_keyboard_filter, |
| 323 input_device_settings_.internal_keyboard_allowed_keys); | 323 input_device_settings_.internal_keyboard_allowed_keys); |
| 324 } | 324 } |
| 325 | 325 |
| 326 converter->SetTouchEventLoggingEnabled( | 326 converter->SetTouchEventLoggingEnabled( |
| 327 input_device_settings_.touch_event_logging_enabled); | 327 input_device_settings_.touch_event_logging_enabled); |
| 328 |
| 329 UpdateDirtyFlags(converter); |
| 328 } | 330 } |
| 331 NotifyDevicesUpdated(); |
| 329 } | 332 } |
| 330 | 333 |
| 331 void InputDeviceFactoryEvdev::ApplyCapsLockLed() { | 334 void InputDeviceFactoryEvdev::ApplyCapsLockLed() { |
| 332 for (const auto& it : converters_) { | 335 for (const auto& it : converters_) { |
| 333 EventConverterEvdev* converter = it.second.get(); | 336 EventConverterEvdev* converter = it.second.get(); |
| 334 converter->SetCapsLockLed(caps_lock_led_enabled_); | 337 converter->SetCapsLockLed(caps_lock_led_enabled_); |
| 335 } | 338 } |
| 336 } | 339 } |
| 337 | 340 |
| 338 bool InputDeviceFactoryEvdev::IsDeviceEnabled( | 341 bool InputDeviceFactoryEvdev::IsDeviceEnabled( |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 if (enabled == palm_suppression_enabled_) | 476 if (enabled == palm_suppression_enabled_) |
| 474 return; | 477 return; |
| 475 palm_suppression_enabled_ = enabled; | 478 palm_suppression_enabled_ = enabled; |
| 476 | 479 |
| 477 for (const auto& it : converters_) { | 480 for (const auto& it : converters_) { |
| 478 it.second->SetEnabled(IsDeviceEnabled(it.second.get())); | 481 it.second->SetEnabled(IsDeviceEnabled(it.second.get())); |
| 479 } | 482 } |
| 480 } | 483 } |
| 481 | 484 |
| 482 } // namespace ui | 485 } // namespace ui |
| OLD | NEW |