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_proxy.h" | 5 #include "ui/events/ozone/evdev/input_device_factory_evdev_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" | 9 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 base::Bind(&InputDeviceFactoryEvdev::DisableInternalKeyboardExceptKeys, | 73 base::Bind(&InputDeviceFactoryEvdev::DisableInternalKeyboardExceptKeys, |
74 input_device_factory_, base::Passed(&excepted_keys))); | 74 input_device_factory_, base::Passed(&excepted_keys))); |
75 } | 75 } |
76 | 76 |
77 void InputDeviceFactoryEvdevProxy::EnableInternalKeyboard() { | 77 void InputDeviceFactoryEvdevProxy::EnableInternalKeyboard() { |
78 task_runner_->PostTask( | 78 task_runner_->PostTask( |
79 FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::EnableInternalKeyboard, | 79 FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::EnableInternalKeyboard, |
80 input_device_factory_)); | 80 input_device_factory_)); |
81 } | 81 } |
82 | 82 |
| 83 void InputDeviceFactoryEvdevProxy::SetCapsLockLed(bool enabled) { |
| 84 task_runner_->PostTask(FROM_HERE, |
| 85 base::Bind(&InputDeviceFactoryEvdev::SetCapsLockLed, |
| 86 input_device_factory_, enabled)); |
| 87 } |
| 88 |
83 void InputDeviceFactoryEvdevProxy::UpdateInputDeviceSettings( | 89 void InputDeviceFactoryEvdevProxy::UpdateInputDeviceSettings( |
84 const InputDeviceSettingsEvdev& settings) { | 90 const InputDeviceSettingsEvdev& settings) { |
85 task_runner_->PostTask( | 91 task_runner_->PostTask( |
86 FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::UpdateInputDeviceSettings, | 92 FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::UpdateInputDeviceSettings, |
87 input_device_factory_, settings)); | 93 input_device_factory_, settings)); |
88 } | 94 } |
89 | 95 |
90 void InputDeviceFactoryEvdevProxy::GetTouchDeviceStatus( | 96 void InputDeviceFactoryEvdevProxy::GetTouchDeviceStatus( |
91 const GetTouchDeviceStatusReply& reply) { | 97 const GetTouchDeviceStatusReply& reply) { |
92 task_runner_->PostTask( | 98 task_runner_->PostTask( |
93 FROM_HERE, | 99 FROM_HERE, |
94 base::Bind(&InputDeviceFactoryEvdev::GetTouchDeviceStatus, | 100 base::Bind(&InputDeviceFactoryEvdev::GetTouchDeviceStatus, |
95 input_device_factory_, | 101 input_device_factory_, |
96 base::Bind(&ForwardGetTouchDeviceStatusReply, | 102 base::Bind(&ForwardGetTouchDeviceStatusReply, |
97 base::ThreadTaskRunnerHandle::Get(), reply))); | 103 base::ThreadTaskRunnerHandle::Get(), reply))); |
98 } | 104 } |
99 | 105 |
100 void InputDeviceFactoryEvdevProxy::GetTouchEventLog( | 106 void InputDeviceFactoryEvdevProxy::GetTouchEventLog( |
101 const base::FilePath& out_dir, | 107 const base::FilePath& out_dir, |
102 const GetTouchEventLogReply& reply) { | 108 const GetTouchEventLogReply& reply) { |
103 task_runner_->PostTask( | 109 task_runner_->PostTask( |
104 FROM_HERE, | 110 FROM_HERE, |
105 base::Bind(&InputDeviceFactoryEvdev::GetTouchEventLog, | 111 base::Bind(&InputDeviceFactoryEvdev::GetTouchEventLog, |
106 input_device_factory_, out_dir, | 112 input_device_factory_, out_dir, |
107 base::Bind(&ForwardGetTouchEventLogReply, | 113 base::Bind(&ForwardGetTouchEventLogReply, |
108 base::ThreadTaskRunnerHandle::Get(), reply))); | 114 base::ThreadTaskRunnerHandle::Get(), reply))); |
109 } | 115 } |
110 | 116 |
111 } // namespace ui | 117 } // namespace ui |
OLD | NEW |