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

Unified Diff: ui/events/platform/x11/x11_event_source.h

Issue 2879033002: Keyboard Lock Host implementation
Patch Set: Remove useless files Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/platform/x11/DEPS ('k') | ui/events/platform/x11/x11_event_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/x11/x11_event_source.h
diff --git a/ui/events/platform/x11/x11_event_source.h b/ui/events/platform/x11/x11_event_source.h
index c2744906ab79517ae348e285d392855947dfa110..f0aef38608a21121a922a99fc2cacfdf813b8565 100644
--- a/ui/events/platform/x11/x11_event_source.h
+++ b/ui/events/platform/x11/x11_event_source.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/optional.h"
+#include "components/keyboard_lock/platform_key_event_filter.h"
#include "ui/events/events_export.h"
#include "ui/gfx/x/x11_types.h"
@@ -87,6 +88,9 @@ class EVENTS_EXPORT X11EventSource {
void StopCurrentEventStream();
void OnDispatcherListChanged();
+ void set_platform_key_event_filter(
+ keyboard_lock::PlatformKeyEventFilter* filter);
+
protected:
// Extracts cookie data from |xevent| if it's of GenericType, and dispatches
// the event. This function also frees up the cookie data after dispatch is
@@ -127,6 +131,8 @@ class EVENTS_EXPORT X11EventSource {
std::unique_ptr<X11HotplugEventHandler> hotplug_event_handler_;
+ keyboard_lock::PlatformKeyEventFilter* filter_ = nullptr;
+
DISALLOW_COPY_AND_ASSIGN(X11EventSource);
};
« no previous file with comments | « ui/events/platform/x11/DEPS ('k') | ui/events/platform/x11/x11_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698