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

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

Issue 874713002: [PATCH 1/11] ozone: evdev: Move touch ui::Event transformation 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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void DisableInternalKeyboardExceptKeys( 71 void DisableInternalKeyboardExceptKeys(
72 scoped_ptr<std::set<DomCode>> excepted_keys); 72 scoped_ptr<std::set<DomCode>> excepted_keys);
73 73
74 // Enables all keys on the internal keyboard. 74 // Enables all keys on the internal keyboard.
75 void EnableInternalKeyboard(); 75 void EnableInternalKeyboard();
76 76
77 scoped_ptr<SystemInputInjector> CreateSystemInputInjector(); 77 scoped_ptr<SystemInputInjector> CreateSystemInputInjector();
78 78
79 InputController* input_controller() { return &input_controller_; } 79 InputController* input_controller() { return &input_controller_; }
80 80
81 // Post a touch event to UI.
82 void PostTouchEvent(const TouchEventParams& params);
83
81 protected: 84 protected:
82 // DeviceEventObserver overrides: 85 // DeviceEventObserver overrides:
83 // 86 //
84 // Callback for device add (on UI thread). 87 // Callback for device add (on UI thread).
85 void OnDeviceEvent(const DeviceEvent& event) override; 88 void OnDeviceEvent(const DeviceEvent& event) override;
86 89
87 // PlatformEventSource: 90 // PlatformEventSource:
88 void OnDispatcherListChanged() override; 91 void OnDispatcherListChanged() override;
89 92
90 private: 93 private:
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 147
145 // Support weak pointers for attach & detach callbacks. 148 // Support weak pointers for attach & detach callbacks.
146 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; 149 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_;
147 150
148 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 151 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
149 }; 152 };
150 153
151 } // namespace ui 154 } // namespace ui
152 155
153 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 156 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698