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

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

Issue 869613003: [PATCH 5/11] ozone: evdev: Replace dispatch callbacks with an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates for events_unittests 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
Index: ui/events/ozone/evdev/event_dispatch_callback.h
diff --git a/ui/events/ozone/evdev/event_dispatch_callback.h b/ui/events/ozone/evdev/event_dispatch_callback.h
index 077e30dd017bc58d3f12914fe18d18c1e5b276ea..ae0781788766ad983bb92b130af5bf28a33b4a00 100644
--- a/ui/events/ozone/evdev/event_dispatch_callback.h
+++ b/ui/events/ozone/evdev/event_dispatch_callback.h
@@ -6,20 +6,6 @@
#define UI_EVENTS_OZONE_EVDEV_EVENT_DISPATCH_CALLBACK_H_
#include "base/callback.h"
-#include "base/time/time.h"
-#include "ui/events/event_constants.h"
-#include "ui/gfx/geometry/point_f.h"
-#include "ui/gfx/geometry/vector2d_f.h"
-
-namespace base {
-class TimeDelta;
-}
-
-namespace gfx {
-class PointF;
-class Vector2d;
-class Vector2dF;
-}
namespace ui {
@@ -27,69 +13,6 @@ class Event;
typedef base::Callback<void(scoped_ptr<Event>)> EventDispatchCallback;
-typedef base::Callback<void(int device_id, unsigned int code, bool down)>
- KeyEventDispatchCallback;
-
-typedef base::Callback<void(int device_id, const gfx::PointF& location)>
- MouseMoveEventDispatchCallback;
-
-typedef base::Callback<void(int device_id,
- const gfx::PointF& location,
- unsigned int button,
- bool down,
- bool allow_remap)> MouseButtonEventDispatchCallback;
-
-typedef base::Callback<void(int device_id,
- const gfx::PointF& location,
- const gfx::Vector2d& delta)>
- MouseWheelEventDispatchCallback;
-
-struct ScrollEventParams {
- ScrollEventParams(int device_id,
- EventType type,
- const gfx::PointF location,
- const gfx::Vector2dF delta,
- const gfx::Vector2dF ordinal_delta,
- int finger_count,
- const base::TimeDelta timestamp);
- ScrollEventParams(const ScrollEventParams& other);
- ~ScrollEventParams();
-
- int device_id;
- EventType type;
- const gfx::PointF location;
- const gfx::Vector2dF delta;
- const gfx::Vector2dF ordinal_delta;
- int finger_count;
- const base::TimeDelta timestamp;
-};
-
-typedef base::Callback<void(const ScrollEventParams& params)>
- ScrollEventDispatchCallback;
-
-struct TouchEventParams {
- TouchEventParams(int device_id,
- int touch_id,
- EventType type,
- const gfx::PointF& location,
- const gfx::Vector2dF& radii,
- float pressure,
- const base::TimeDelta& timestamp);
- TouchEventParams(const TouchEventParams& other);
- ~TouchEventParams();
-
- int device_id;
- int touch_id;
- EventType type;
- gfx::PointF location;
- gfx::Vector2dF radii;
- float pressure;
- base::TimeDelta timestamp;
-};
-
-typedef base::Callback<void(const TouchEventParams& params)>
- TouchEventDispatchCallback;
-
} // namspace ui
#endif // UI_EVENTS_OZONE_EVDEV_EVENT_DISPATCH_CALLBACK_H_

Powered by Google App Engine
This is Rietveld 408576698