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

Side by Side Diff: ui/events/ozone/evdev/event_converter_test_util.cc

Issue 2019413002: Remove KeyboardDevice class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ui/events/ozone/evdev/event_converter_test_util.h" 5 #include "ui/events/ozone/evdev/event_converter_test_util.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "ui/events/ozone/device/device_manager.h" 10 #include "ui/events/ozone/device/device_manager.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void DispatchScrollEvent(const ScrollEventParams& params) override { 57 void DispatchScrollEvent(const ScrollEventParams& params) override {
58 event_factory_evdev_->DispatchScrollEvent(params); 58 event_factory_evdev_->DispatchScrollEvent(params);
59 } 59 }
60 60
61 void DispatchTouchEvent(const TouchEventParams& params) override { 61 void DispatchTouchEvent(const TouchEventParams& params) override {
62 event_factory_evdev_->DispatchTouchEvent(params); 62 event_factory_evdev_->DispatchTouchEvent(params);
63 } 63 }
64 64
65 void DispatchKeyboardDevicesUpdated( 65 void DispatchKeyboardDevicesUpdated(
66 const std::vector<KeyboardDevice>& devices) override { 66 const std::vector<InputDevice>& devices) override {
67 event_factory_evdev_->DispatchKeyboardDevicesUpdated(devices); 67 event_factory_evdev_->DispatchKeyboardDevicesUpdated(devices);
68 } 68 }
69 void DispatchTouchscreenDevicesUpdated( 69 void DispatchTouchscreenDevicesUpdated(
70 const std::vector<TouchscreenDevice>& devices) override { 70 const std::vector<TouchscreenDevice>& devices) override {
71 event_factory_evdev_->DispatchTouchscreenDevicesUpdated(devices); 71 event_factory_evdev_->DispatchTouchscreenDevicesUpdated(devices);
72 } 72 }
73 void DispatchMouseDevicesUpdated( 73 void DispatchMouseDevicesUpdated(
74 const std::vector<InputDevice>& devices) override { 74 const std::vector<InputDevice>& devices) override {
75 event_factory_evdev_->DispatchMouseDevicesUpdated(devices); 75 event_factory_evdev_->DispatchMouseDevicesUpdated(devices);
76 } 76 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest( 120 std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest(
121 CursorDelegateEvdev* cursor, 121 CursorDelegateEvdev* cursor,
122 DeviceManager* device_manager, 122 DeviceManager* device_manager,
123 KeyboardLayoutEngine* keyboard_layout_engine, 123 KeyboardLayoutEngine* keyboard_layout_engine,
124 const EventDispatchCallback& callback) { 124 const EventDispatchCallback& callback) {
125 return base::WrapUnique(new TestEventFactoryEvdev( 125 return base::WrapUnique(new TestEventFactoryEvdev(
126 cursor, device_manager, keyboard_layout_engine, callback)); 126 cursor, device_manager, keyboard_layout_engine, callback));
127 } 127 }
128 128
129 } // namespace ui 129 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698