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

Side by Side Diff: ui/events/ozone/evdev/event_converter_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: rebase 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_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Start reading events. 38 // Start reading events.
39 void Start(); 39 void Start();
40 40
41 // Stop reading events. 41 // Stop reading events.
42 void Stop(); 42 void Stop();
43 43
44 // Returns true if the converter is used for a keyboard device. 44 // Returns true if the converter is used for a keyboard device.
45 virtual bool HasKeyboard() const; 45 virtual bool HasKeyboard() const;
46 46
47 // Returns true if the converter is used for a mouse device;
48 virtual bool HasMouse() const;
49
47 // Returns true if the converter is used for a touchpad device. 50 // Returns true if the converter is used for a touchpad device.
48 virtual bool HasTouchpad() const; 51 virtual bool HasTouchpad() const;
49 52
50 // Returns true if the converter is used for a touchscreen device. 53 // Returns true if the converter is used for a touchscreen device.
51 virtual bool HasTouchscreen() const; 54 virtual bool HasTouchscreen() const;
52 55
53 // Returns the size of the touchscreen device if the converter is used for a 56 // Returns the size of the touchscreen device if the converter is used for a
54 // touchscreen device. 57 // touchscreen device.
55 virtual gfx::Size GetTouchscreenSize() const; 58 virtual gfx::Size GetTouchscreenSize() const;
56 59
(...skipping 25 matching lines...) Expand all
82 // Controller for watching the input fd. 85 // Controller for watching the input fd.
83 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 86 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
84 87
85 private: 88 private:
86 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); 89 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev);
87 }; 90 };
88 91
89 } // namespace ui 92 } // namespace ui
90 93
91 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 94 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_evdev.h ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698