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

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

Issue 149503003: Remove common EventConverterOzone class & move to EventConverterEvdev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/event_factory_ozone.h
diff --git a/ui/events/ozone/event_factory_ozone.h b/ui/events/ozone/event_factory_ozone.h
index 8093924f4983268cfe75fc64da2f03e7fef2e45e..a223c4f3d5bc9b7838e5a73498c3172e217a7165 100644
--- a/ui/events/ozone/event_factory_ozone.h
+++ b/ui/events/ozone/event_factory_ozone.h
@@ -10,10 +10,11 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_pump_libevent.h"
#include "ui/events/events_export.h"
-#include "ui/events/ozone/event_converter_ozone.h"
namespace ui {
+class Event;
+
// Creates and dispatches |ui.Event|'s. Ozone assumes that events arrive on file
// descriptors with one |EventConverterOzone| instance for each descriptor.
// Ozone presumes that the set of file desctiprtors can vary at runtime so this
@@ -38,6 +39,11 @@ class EVENTS_EXPORT EventFactoryOzone {
// Sets the implementation delegate. Ownership is retained by the caller.
static void SetInstance(EventFactoryOzone*);
+ // Subclasses should use this method to post a task that will dispatch
+ // |event| from the UI message loop. This method takes ownership of
+ // |event|. |event| will be deleted at the end of the posted task.
+ static void DispatchEvent(scoped_ptr<ui::Event> event);
+
private:
static EventFactoryOzone* impl_; // not owned

Powered by Google App Engine
This is Rietveld 408576698