| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 InputController* input_controller() { return &input_controller_; } | 59 InputController* input_controller() { return &input_controller_; } |
| 60 | 60 |
| 61 // DeviceEventDispatchEvdev: | 61 // DeviceEventDispatchEvdev: |
| 62 void DispatchKeyEvent(const KeyEventParams& params) override; | 62 void DispatchKeyEvent(const KeyEventParams& params) override; |
| 63 void DispatchMouseMoveEvent(const MouseMoveEventParams& params) override; | 63 void DispatchMouseMoveEvent(const MouseMoveEventParams& params) override; |
| 64 void DispatchMouseButtonEvent(const MouseButtonEventParams& params) override; | 64 void DispatchMouseButtonEvent(const MouseButtonEventParams& params) override; |
| 65 void DispatchMouseWheelEvent(const MouseWheelEventParams& params) override; | 65 void DispatchMouseWheelEvent(const MouseWheelEventParams& params) override; |
| 66 void DispatchScrollEvent(const ScrollEventParams& params) override; | 66 void DispatchScrollEvent(const ScrollEventParams& params) override; |
| 67 void DispatchTouchEvent(const TouchEventParams& params) override; | 67 void DispatchTouchEvent(const TouchEventParams& params) override; |
| 68 void DispatchKeyboardDevicesUpdated( |
| 69 const std::vector<KeyboardDevice>& devices) override; |
| 70 void DispatchTouchscreenDevicesUpdated( |
| 71 const std::vector<TouchscreenDevice>& devices) override; |
| 72 void DispatchMouseDevicesUpdated( |
| 73 const std::vector<InputDevice>& devices) override; |
| 74 void DispatchTouchpadDevicesUpdated( |
| 75 const std::vector<InputDevice>& devices) override; |
| 68 | 76 |
| 69 protected: | 77 protected: |
| 70 // DeviceEventObserver overrides: | 78 // DeviceEventObserver overrides: |
| 71 // | 79 // |
| 72 // Callback for device add (on UI thread). | 80 // Callback for device add (on UI thread). |
| 73 void OnDeviceEvent(const DeviceEvent& event) override; | 81 void OnDeviceEvent(const DeviceEvent& event) override; |
| 74 | 82 |
| 75 // PlatformEventSource: | 83 // PlatformEventSource: |
| 76 void OnDispatcherListChanged() override; | 84 void OnDispatcherListChanged() override; |
| 77 | 85 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 124 |
| 117 // Support weak pointers for attach & detach callbacks. | 125 // Support weak pointers for attach & detach callbacks. |
| 118 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 126 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
| 119 | 127 |
| 120 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 128 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
| 121 }; | 129 }; |
| 122 | 130 |
| 123 } // namespace ui | 131 } // namespace ui |
| 124 | 132 |
| 125 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 133 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| OLD | NEW |