| Index: ui/ozone/public/event_factory_ozone.h
|
| diff --git a/ui/ozone/public/event_factory_ozone.h b/ui/ozone/public/event_factory_ozone.h
|
| index bbca9fdf107cb5674a630f25db93534276ae5983..b77237b7ae838cff327f6dc972d8aadbc045a882 100644
|
| --- a/ui/ozone/public/event_factory_ozone.h
|
| +++ b/ui/ozone/public/event_factory_ozone.h
|
| @@ -27,6 +27,25 @@ class Event;
|
| // instances as necessary.
|
| class OZONE_BASE_EXPORT EventFactoryOzone {
|
| public:
|
| +
|
| + // Settings for IndirectTouch (e.g. touchpad) event conversion..
|
| + struct IndirectTouchConfiguration {
|
| + int sensitivity_;
|
| + bool tap_to_click_;
|
| + bool three_finger_click_;
|
| + bool tap_dragging_;
|
| + bool natural_scroll_;
|
| + IndirectTouchConfiguration();
|
| + };
|
| +
|
| + // Settings for RelXY event (e.g. mice) event conversion.
|
| + struct RelXYConfiguration {
|
| + int sensitivity_;
|
| + bool primary_button_right_;
|
| + RelXYConfiguration();
|
| + };
|
| +
|
| +
|
| EventFactoryOzone();
|
| virtual ~EventFactoryOzone();
|
|
|
| @@ -36,6 +55,18 @@ class OZONE_BASE_EXPORT EventFactoryOzone {
|
| virtual void WarpCursorTo(gfx::AcceleratedWidget widget,
|
| const gfx::PointF& location);
|
|
|
| + // Indicates if there is a device of the designated type that produces indirect touch events such as a touchpad.
|
| + virtual bool HasIndirectTouch();
|
| +
|
| + // Sets all IndirectTouch event converters to use the conversion properties specificed by |config| where |mask| is true.
|
| + virtual void ConfigureIndirectTouchEventConverters(const IndirectTouchConfiguration& config, const IndirectTouchConfiguration& mask);
|
| +
|
| + // Indicates if there is a device of the designated type that produces relative x/y motion input such as a mouse.
|
| + virtual bool HasRelXY();
|
| +
|
| + // Sets all RelXY event converters to use the conversion properties specified by |config| where |mask| is true.
|
| + virtual void ConfigureRelXYEventConverters(const RelXYConfiguration& config, const RelXYConfiguration& mask);
|
| +
|
| // Returns the singleton instance.
|
| static EventFactoryOzone* GetInstance();
|
|
|
|
|