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

Unified Diff: ui/events/ozone/evdev/input_controller_evdev.cc

Issue 806693009: Port ScopedDisableInternalMouseAndKeyboardX11 to Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/input_controller_evdev.cc
diff --git a/ui/events/ozone/evdev/input_controller_evdev.cc b/ui/events/ozone/evdev/input_controller_evdev.cc
index c7f5967731309733fe10ec66adbf607909f798a3..a1241484c4a9af0af5015dcdc1a23882305ca05b 100644
--- a/ui/events/ozone/evdev/input_controller_evdev.cc
+++ b/ui/events/ozone/evdev/input_controller_evdev.cc
@@ -72,6 +72,23 @@ bool InputControllerEvdev::HasTouchpad() {
return event_factory_->GetDeviceIdsByType(DT_TOUCHPAD, NULL);
}
+void InputControllerEvdev::DisableInternalTouchpad() {
+ event_factory_->DisableInternalTouchpad();
+}
+
+void InputControllerEvdev::EnableInternalTouchpad() {
+ event_factory_->EnableInternalTouchpad();
+}
+
+void InputControllerEvdev::DisableInternalKeyboardExceptKeys(
+ scoped_ptr<std::set<KeyboardCode>> excepted_keys) {
+ event_factory_->DisableInternalKeyboardExceptKeys(excepted_keys.Pass());
+}
+
+void InputControllerEvdev::EnableInternalKeyboard() {
+ event_factory_->EnableInternalKeyboard();
+}
+
void InputControllerEvdev::SetIntPropertyForOneType(const EventDeviceType type,
const std::string& name,
int value) {

Powered by Google App Engine
This is Rietveld 408576698