| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void DispatchMouseButtonEvent(int device_id, | 65 void DispatchMouseButtonEvent(int device_id, |
| 66 const gfx::PointF& location, | 66 const gfx::PointF& location, |
| 67 unsigned int button, | 67 unsigned int button, |
| 68 bool down, | 68 bool down, |
| 69 bool allow_remap) override; | 69 bool allow_remap) override; |
| 70 void DispatchMouseWheelEvent(int device_id, | 70 void DispatchMouseWheelEvent(int device_id, |
| 71 const gfx::PointF& location, | 71 const gfx::PointF& location, |
| 72 const gfx::Vector2d& delta) override; | 72 const gfx::Vector2d& delta) override; |
| 73 void DispatchScrollEvent(const ScrollEventParams& params) override; | 73 void DispatchScrollEvent(const ScrollEventParams& params) override; |
| 74 void DispatchTouchEvent(const TouchEventParams& params) override; | 74 void DispatchTouchEvent(const TouchEventParams& params) override; |
| 75 void DispatchKeyboardDevicesUpdated( |
| 76 const std::vector<KeyboardDevice>& devices) override; |
| 77 void DispatchTouchscreenDevicesUpdated( |
| 78 const std::vector<TouchscreenDevice>& devices) override; |
| 79 void DispatchMouseDevicesUpdated( |
| 80 const std::vector<InputDevice>& devices) override; |
| 81 void DispatchTouchpadDevicesUpdated( |
| 82 const std::vector<InputDevice>& devices) override; |
| 75 | 83 |
| 76 protected: | 84 protected: |
| 77 // DeviceEventObserver overrides: | 85 // DeviceEventObserver overrides: |
| 78 // | 86 // |
| 79 // Callback for device add (on UI thread). | 87 // Callback for device add (on UI thread). |
| 80 void OnDeviceEvent(const DeviceEvent& event) override; | 88 void OnDeviceEvent(const DeviceEvent& event) override; |
| 81 | 89 |
| 82 // PlatformEventSource: | 90 // PlatformEventSource: |
| 83 void OnDispatcherListChanged() override; | 91 void OnDispatcherListChanged() override; |
| 84 | 92 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 131 |
| 124 // Support weak pointers for attach & detach callbacks. | 132 // Support weak pointers for attach & detach callbacks. |
| 125 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 133 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
| 126 | 134 |
| 127 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 135 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
| 128 }; | 136 }; |
| 129 | 137 |
| 130 } // namespace ui | 138 } // namespace ui |
| 131 | 139 |
| 132 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 140 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| OLD | NEW |