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

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

Issue 878673004: Handle Caps Lock for Ozone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove spurious file Created 5 years, 10 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
« no previous file with comments | « ui/events/ozone/evdev/event_modifiers_evdev.cc ('k') | ui/events/ozone/evdev/keyboard_evdev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 bool InputControllerEvdev::HasMouse() { 69 bool InputControllerEvdev::HasMouse() {
70 return event_factory_->GetDeviceIdsByType(DT_MOUSE, NULL); 70 return event_factory_->GetDeviceIdsByType(DT_MOUSE, NULL);
71 } 71 }
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 keyboard_->IsCapsLockEnabled();
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
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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_modifiers_evdev.cc ('k') | ui/events/ozone/evdev/keyboard_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698