| Index: ui/events/ozone/evdev/event_converter.h
|
| diff --git a/ui/events/ozone/evdev/event_converter.h b/ui/events/ozone/evdev/event_converter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3e1d349972fe847ea07b5b91101547362e3ebb81
|
| --- /dev/null
|
| +++ b/ui/events/ozone/evdev/event_converter.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2014 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_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_H_
|
| +#define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +namespace ui {
|
| +
|
| +class Event;
|
| +
|
| +// Base class for device-specific evdev event conversion.
|
| +class EventConverterEvdev {
|
| + public:
|
| + EventConverterEvdev();
|
| + virtual ~EventConverterEvdev();
|
| +
|
| + 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.
|
| + virtual void DispatchEvent(scoped_ptr<ui::Event> event);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_H_
|
|
|