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

Unified Diff: ui/events/ozone/evdev/keyboard_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/keyboard_evdev.h
diff --git a/ui/events/ozone/evdev/keyboard_evdev.h b/ui/events/ozone/evdev/keyboard_evdev.h
index 45b8b9908deeadbf2961f5aef2efa2a604b075ae..a9a26a08bd9ed23c66889263c3d3f122b15e8372 100644
--- a/ui/events/ozone/evdev/keyboard_evdev.h
+++ b/ui/events/ozone/evdev/keyboard_evdev.h
@@ -8,6 +8,7 @@
#include <bitset>
#include <linux/input.h>
+#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/events/ozone/evdev/event_device_util.h"
#include "ui/events/ozone/evdev/event_dispatch_callback.h"
#include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
@@ -30,6 +31,9 @@ class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev {
const EventDispatchCallback& callback);
~KeyboardEvdev();
+ // Returns the ui::KeyboardCode for the given evdev keycode.
+ static KeyboardCode KeyboardCodeFromEvdevKey(unsigned int code);
+
static int NativeCodeToEvdevCode(int native_code);
// Handlers for raw key presses & releases.

Powered by Google App Engine
This is Rietveld 408576698