| 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
|
|
|
|
|