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

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

Issue 867803004: [PATCH 4/11] ozone: evdev: Move EventModifiersEvdev usage to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update per comments on previous patches Created 5 years, 10 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 // Transitional accessors for testing.
82 EventModifiersEvdev* modifiers() { return &modifiers_; }
83
84 // Post events to UI. 81 // Post events to UI.
85 void PostKeyEvent(const KeyEventParams& params); 82 void PostKeyEvent(const KeyEventParams& params);
86 void PostMouseMoveEvent(const MouseMoveEventParams& params); 83 void PostMouseMoveEvent(const MouseMoveEventParams& params);
87 void PostMouseButtonEvent(const MouseButtonEventParams& params); 84 void PostMouseButtonEvent(const MouseButtonEventParams& params);
85 void PostMouseWheelEvent(const MouseWheelEventParams& parms);
86 void PostScrollEvent(const ScrollEventParams& params);
88 void PostTouchEvent(const TouchEventParams& params); 87 void PostTouchEvent(const TouchEventParams& params);
89 88
90 protected: 89 protected:
91 // DeviceEventObserver overrides: 90 // DeviceEventObserver overrides:
92 // 91 //
93 // Callback for device add (on UI thread). 92 // Callback for device add (on UI thread).
94 void OnDeviceEvent(const DeviceEvent& event) override; 93 void OnDeviceEvent(const DeviceEvent& event) override;
95 94
96 // PlatformEventSource: 95 // PlatformEventSource:
97 void OnDispatcherListChanged() override; 96 void OnDispatcherListChanged() override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 152
154 // Support weak pointers for attach & detach callbacks. 153 // Support weak pointers for attach & detach callbacks.
155 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; 154 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_;
156 155
157 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 156 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
158 }; 157 };
159 158
160 } // namespace ui 159 } // namespace ui
161 160
162 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 161 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_dispatch_callback.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698