| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 |
| 11 namespace ui { |
| 12 |
| 13 class Event; |
| 14 |
| 15 // Base class for device-specific evdev event conversion. |
| 16 class EventConverterEvdev { |
| 17 public: |
| 18 EventConverterEvdev(); |
| 19 virtual ~EventConverterEvdev(); |
| 20 |
| 21 protected: |
| 22 // Subclasses should use this method to post a task that will dispatch |
| 23 // |event| from the UI message loop. This method takes ownership of |
| 24 // |event|. |event| will be deleted at the end of the posted task. |
| 25 virtual void DispatchEvent(scoped_ptr<ui::Event> event); |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); |
| 29 }; |
| 30 |
| 31 } // namespace ui |
| 32 |
| 33 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_H_ |
| OLD | NEW |