| Index: ui/events/ozone/evdev/event_converter_evdev.h
|
| diff --git a/ui/events/ozone/evdev/event_converter_evdev.h b/ui/events/ozone/evdev/event_converter_evdev.h
|
| index e67d36d32338c0144c2a2acd0c7becd1e3698635..a9cd95efbe7bee3e75ef69412e98bcce8b84bfd6 100644
|
| --- a/ui/events/ozone/evdev/event_converter_evdev.h
|
| +++ b/ui/events/ozone/evdev/event_converter_evdev.h
|
| @@ -5,10 +5,13 @@
|
| #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
|
| #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
|
|
|
| +#include <set>
|
| +
|
| #include "base/callback.h"
|
| #include "base/files/file_path.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "ui/events/devices/input_device.h"
|
| +#include "ui/events/keycodes/keyboard_codes.h"
|
| #include "ui/events/ozone/evdev/event_dispatch_callback.h"
|
| #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
|
| #include "ui/gfx/geometry/size.h"
|
| @@ -30,18 +33,29 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev
|
|
|
| InputDeviceType type() const { return type_; }
|
|
|
| + void set_ignore_events(bool ignore_events) { ignore_events_ = ignore_events; }
|
| +
|
| // Start reading events.
|
| void Start();
|
|
|
| // Stop reading events.
|
| void Stop();
|
|
|
| - // Returns true of the converter is used for a keyboard device.
|
| + // Returns true if the converter is used for a keyboard device.
|
| virtual bool HasKeyboard() const;
|
|
|
| - // Returns true of the converter is used for a touchscreen device.
|
| + // Returns true if the converter is used for a touchpad device.
|
| + virtual bool HasTouchpad() const;
|
| +
|
| + // Returns true if the converter is used for a touchscreen device.
|
| virtual bool HasTouchscreen() const;
|
|
|
| + // Sets which keyboard keys should be processed.
|
| + virtual void SetAllowedKeys(scoped_ptr<std::set<KeyboardCode>> allowed_keys);
|
| +
|
| + // Allows all keys to be processed.
|
| + virtual void AllowAllKeys();
|
| +
|
| // Returns the size of the touchscreen device if the converter is used for a
|
| // touchscreen device.
|
| virtual gfx::Size GetTouchscreenSize() const;
|
| @@ -62,6 +76,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev
|
| // Type (internal or external).
|
| InputDeviceType type_;
|
|
|
| + // Whether events from the device should be ignored.
|
| + bool ignore_events_;
|
| +
|
| // Controller for watching the input fd.
|
| base::MessagePumpLibevent::FileDescriptorWatcher controller_;
|
|
|
|
|