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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.h

Issue 872683006: [PATCH 3/11] ozone: evdev: Move MouseButtonMap usage during dispatch to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update per comments on previous patches Created 5 years, 11 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/event_dispatch_callback.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_factory_evdev.h
diff --git a/ui/events/ozone/evdev/event_factory_evdev.h b/ui/events/ozone/evdev/event_factory_evdev.h
index f27c9931421a5c5c0a5f994bc0ec342f1bad71c5..eb1f00de850fd1fa1867f7bac29cd8044d879634 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.h
+++ b/ui/events/ozone/evdev/event_factory_evdev.h
@@ -78,10 +78,13 @@ class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver,
InputController* input_controller() { return &input_controller_; }
- // Post a key event to the unified keyboard (KeyboardEvdev).
- void PostKeyEvent(const KeyEventParams& params);
+ // Transitional accessors for testing.
+ EventModifiersEvdev* modifiers() { return &modifiers_; }
- // Post a touch event to UI.
+ // Post events to UI.
+ void PostKeyEvent(const KeyEventParams& params);
+ void PostMouseMoveEvent(const MouseMoveEventParams& params);
+ void PostMouseButtonEvent(const MouseButtonEventParams& params);
void PostTouchEvent(const TouchEventParams& params);
protected:
@@ -95,7 +98,7 @@ class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver,
private:
// Post a task to dispatch an event.
- void PostUiEvent(scoped_ptr<Event> event);
+ virtual void PostUiEvent(scoped_ptr<Event> event);
// Dispatch event via PlatformEventSource.
void DispatchUiEventTask(scoped_ptr<Event> event);
« no previous file with comments | « ui/events/ozone/evdev/event_dispatch_callback.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698