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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.h

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/event_factory_evdev.h
diff --git a/ui/events/ozone/evdev/event_factory_evdev.h b/ui/events/ozone/evdev/event_factory_evdev.h
index e1960029030757b57878651522647282f0c2e42c..c8b27d041c803d23ddbc5de6a717f0eb47c1707b 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.h
+++ b/ui/events/ozone/evdev/event_factory_evdev.h
@@ -5,6 +5,7 @@
#ifndef UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
#define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
+#include <set>
#include <vector>
#include "base/callback.h"
@@ -12,6 +13,7 @@
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/task_runner.h"
+#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/events/ozone/device/device_event_observer.h"
#include "ui/events/ozone/evdev/event_converter_evdev.h"
#include "ui/events/ozone/evdev/event_device_info.h"
@@ -58,6 +60,19 @@ class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver,
void WarpCursorTo(gfx::AcceleratedWidget widget,
const gfx::PointF& location);
+ // Disables the internal touchpad.
+ void DisableInternalTouchpad();
+
+ // Enables the internal touchpad.
+ void EnableInternalTouchpad();
+
+ // Disables all keys on the internal keyboard except |excepted_keys|.
+ void DisableInternalKeyboardExceptKeys(
+ scoped_ptr<std::set<KeyboardCode>> excepted_keys);
+
+ // Enables all keys on the internal keyboard.
+ void EnableInternalKeyboard();
+
scoped_ptr<SystemInputInjector> CreateSystemInputInjector();
InputController* input_controller() { return &input_controller_; }

Powered by Google App Engine
This is Rietveld 408576698