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

Side by Side Diff: ui/events/devices/x11/touch_factory_x11.h

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup leftover stuff Created 6 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DEVICES_X11_TOUCH_FACTORY_X11_H_ 5 #ifndef UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_
6 #define UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ 6 #define UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 23 matching lines...) Expand all
34 static TouchFactory* GetInstance(); 34 static TouchFactory* GetInstance();
35 35
36 // Sets the touch devices from the command line. 36 // Sets the touch devices from the command line.
37 static void SetTouchDeviceListFromCommandLine(); 37 static void SetTouchDeviceListFromCommandLine();
38 38
39 // Updates the list of devices. 39 // Updates the list of devices.
40 void UpdateDeviceList(Display* display); 40 void UpdateDeviceList(Display* display);
41 41
42 // Checks whether an XI2 event should be processed or not (i.e. if the event 42 // Checks whether an XI2 event should be processed or not (i.e. if the event
43 // originated from a device we are interested in). 43 // originated from a device we are interested in).
44 bool ShouldProcessXI2Event(XEvent* xevent); 44 bool ShouldProcessXI2Event(const XEvent* xevent);
45 45
46 // Setup an X Window for XInput2 events. 46 // Setup an X Window for XInput2 events.
47 void SetupXI2ForXWindow(::Window xid); 47 void SetupXI2ForXWindow(::Window xid);
48 48
49 // Keeps a list of touch devices so that it is possible to determine if a 49 // Keeps a list of touch devices so that it is possible to determine if a
50 // pointer event is a touch-event or a mouse-event. The list is reset each 50 // pointer event is a touch-event or a mouse-event. The list is reset each
51 // time this is called. 51 // time this is called.
52 void SetTouchDeviceList(const std::vector<unsigned int>& devices); 52 void SetTouchDeviceList(const std::vector<unsigned int>& devices);
53 53
54 // Is the device a touch-device? 54 // Is the device a touch-device?
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 int virtual_core_keyboard_device_; 147 int virtual_core_keyboard_device_;
148 148
149 SequentialIDGenerator id_generator_; 149 SequentialIDGenerator id_generator_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(TouchFactory); 151 DISALLOW_COPY_AND_ASSIGN(TouchFactory);
152 }; 152 };
153 153
154 } // namespace ui 154 } // namespace ui
155 155
156 #endif // UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_ 156 #endif // UI_EVENTS_DEVICES_X11_TOUCH_FACTORY_X11_H_
OLDNEW
« no previous file with comments | « ui/events/devices/x11/device_data_manager_x11.cc ('k') | ui/events/devices/x11/touch_factory_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698