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

Unified Diff: ui/ozone/public/event_factory_ozone.h

Issue 397063004: wip: not complete. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/ozone/evdev/touch_event_converter_evdev.cc ('k') | ui/ozone/public/event_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ui/events/ozone/evdev/touch_event_converter_evdev.cc ('k') | ui/ozone/public/event_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698