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

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: Fix build + test Created 3 years, 8 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« ui/base/touch/touch_device_linux.cc ('K') | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698