Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: ui/events/ozone/evdev/event_factory_evdev.h

Issue 868043003: [PATCH 8/11] ozone: evdev: Plumb device changes to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates for events_unittests Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698