Chromium Code Reviews| Index: ui/base/ozone/event_converter_ozone.h |
| diff --git a/ui/base/ozone/event_converter_ozone.h b/ui/base/ozone/event_converter_ozone.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..95ee86103967c604dd3fbd02072f9235d48bdcfd |
| --- /dev/null |
| +++ b/ui/base/ozone/event_converter_ozone.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_BASE_OZONE_EVENT_CONVERTER_OZONE_H_ |
| +#define UI_BASE_OZONE_EVENT_CONVERTER_OZONE_H_ |
| + |
| +#include "base/message_pump_libevent.h" |
| + |
| +namespace ui { |
| +class Event; |
| + |
| +class EventConverterOzone : public base::MessagePumpLibevent::Watcher { |
|
sadrul
2013/06/06 16:54:30
Doc
rjkroege
2013/06/06 23:05:05
Done.
|
| + public: |
| + EventConverterOzone() {} |
| + virtual ~EventConverterOzone() {} |
| + |
| + protected: |
| + // 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. |
| + void DispatchEvent(ui::Event* event); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(EventConverterOzone); |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_BASE_OZONE_EVENT_CONVERTER_OZONE_H_ |