Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: ui/events/ozone/evdev/input_device_factory_evdev.cc

Issue 2827803002: Make Interaction Media Features MQ dynamic on Linux. (Closed)
Patch Set: Rebase and fix test failures Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 324
325 if (converter->type() == InputDeviceType::INPUT_DEVICE_INTERNAL && 325 if (converter->type() == InputDeviceType::INPUT_DEVICE_INTERNAL &&
326 converter->HasKeyboard()) { 326 converter->HasKeyboard()) {
327 converter->SetKeyFilter( 327 converter->SetKeyFilter(
328 input_device_settings_.enable_internal_keyboard_filter, 328 input_device_settings_.enable_internal_keyboard_filter,
329 input_device_settings_.internal_keyboard_allowed_keys); 329 input_device_settings_.internal_keyboard_allowed_keys);
330 } 330 }
331 331
332 converter->SetTouchEventLoggingEnabled( 332 converter->SetTouchEventLoggingEnabled(
333 input_device_settings_.touch_event_logging_enabled); 333 input_device_settings_.touch_event_logging_enabled);
334
335 UpdateDirtyFlags(converter);
spang 2017/05/10 16:03:41 Please update dirtiness conservatively - that's th
334 } 336 }
337 NotifyDevicesUpdated();
335 } 338 }
336 339
337 void InputDeviceFactoryEvdev::ApplyCapsLockLed() { 340 void InputDeviceFactoryEvdev::ApplyCapsLockLed() {
338 for (const auto& it : converters_) { 341 for (const auto& it : converters_) {
339 EventConverterEvdev* converter = it.second.get(); 342 EventConverterEvdev* converter = it.second.get();
340 converter->SetCapsLockLed(caps_lock_led_enabled_); 343 converter->SetCapsLockLed(caps_lock_led_enabled_);
341 } 344 }
342 } 345 }
343 346
344 bool InputDeviceFactoryEvdev::IsDeviceEnabled( 347 bool InputDeviceFactoryEvdev::IsDeviceEnabled(
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 if (enabled == palm_suppression_enabled_) 499 if (enabled == palm_suppression_enabled_)
497 return; 500 return;
498 palm_suppression_enabled_ = enabled; 501 palm_suppression_enabled_ = enabled;
499 502
500 for (const auto& it : converters_) { 503 for (const auto& it : converters_) {
501 it.second->SetEnabled(IsDeviceEnabled(it.second.get())); 504 it.second->SetEnabled(IsDeviceEnabled(it.second.get()));
502 } 505 }
503 } 506 }
504 507
505 } // namespace ui 508 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698