| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_controller_evdev.h" | 5 #include "ui/events/ozone/evdev/input_controller_evdev.h" |
| 6 | 6 |
| 7 #include <linux/input.h> | 7 #include <linux/input.h> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 10 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 bool InputControllerEvdev::HasTouchpad() { | 73 bool InputControllerEvdev::HasTouchpad() { |
| 74 return event_factory_->GetDeviceIdsByType(DT_TOUCHPAD, NULL); | 74 return event_factory_->GetDeviceIdsByType(DT_TOUCHPAD, NULL); |
| 75 } | 75 } |
| 76 | 76 |
| 77 bool InputControllerEvdev::IsCapsLockEnabled() { | 77 bool InputControllerEvdev::IsCapsLockEnabled() { |
| 78 return false; | 78 return false; |
| 79 } | 79 } |
| 80 | 80 |
| 81 void InputControllerEvdev::SetCapsLockEnabled(bool enabled) { | 81 void InputControllerEvdev::SetCapsLockEnabled(bool enabled) { |
| 82 NOTIMPLEMENTED(); | 82 keyboard_->SetCapsLockEnabled(enabled); |
| 83 } | 83 } |
| 84 | 84 |
| 85 void InputControllerEvdev::SetNumLockEnabled(bool enabled) { | 85 void InputControllerEvdev::SetNumLockEnabled(bool enabled) { |
| 86 NOTIMPLEMENTED(); | 86 NOTIMPLEMENTED(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 bool InputControllerEvdev::IsAutoRepeatEnabled() { | 89 bool InputControllerEvdev::IsAutoRepeatEnabled() { |
| 90 return keyboard_->IsAutoRepeatEnabled(); | 90 return keyboard_->IsAutoRepeatEnabled(); |
| 91 } | 91 } |
| 92 | 92 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 void InputControllerEvdev::SetPrimaryButtonRight(bool right) { | 178 void InputControllerEvdev::SetPrimaryButtonRight(bool right) { |
| 179 button_map_->UpdateButtonMap(BTN_LEFT, right ? BTN_RIGHT : BTN_LEFT); | 179 button_map_->UpdateButtonMap(BTN_LEFT, right ? BTN_RIGHT : BTN_LEFT); |
| 180 button_map_->UpdateButtonMap(BTN_RIGHT, right ? BTN_LEFT : BTN_RIGHT); | 180 button_map_->UpdateButtonMap(BTN_RIGHT, right ? BTN_LEFT : BTN_RIGHT); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void InputControllerEvdev::SetTapToClickPaused(bool state) { | 183 void InputControllerEvdev::SetTapToClickPaused(bool state) { |
| 184 SetBoolPropertyForOneType(DT_TOUCHPAD, "Tap Paused", state); | 184 SetBoolPropertyForOneType(DT_TOUCHPAD, "Tap Paused", state); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace ui | 187 } // namespace ui |
| OLD | NEW |