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

Side by Side Diff: ui/events/ozone/evdev/input_controller_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_INPUT_CONTROLLER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 class EVENTS_OZONE_EVDEV_EXPORT InputControllerEvdev : public InputController { 21 class EVENTS_OZONE_EVDEV_EXPORT InputControllerEvdev : public InputController {
22 public: 22 public:
23 InputControllerEvdev(KeyboardEvdev* keyboard, 23 InputControllerEvdev(KeyboardEvdev* keyboard,
24 MouseButtonMapEvdev* button_map); 24 MouseButtonMapEvdev* button_map);
25 ~InputControllerEvdev() override; 25 ~InputControllerEvdev() override;
26 26
27 // Initialize device factory. This would be in the constructor if it was 27 // Initialize device factory. This would be in the constructor if it was
28 // built early enough for that to be possible. 28 // built early enough for that to be possible.
29 void SetInputDeviceFactory(InputDeviceFactoryEvdev* input_device_factory); 29 void SetInputDeviceFactory(InputDeviceFactoryEvdev* input_device_factory);
30 30
31 void set_has_mouse(bool has_mouse);
32 void set_has_touchpad(bool has_touchpad);
33
31 // InputController: 34 // InputController:
32 bool HasMouse() override; 35 bool HasMouse() override;
33 bool HasTouchpad() override; 36 bool HasTouchpad() override;
34 bool IsCapsLockEnabled() override; 37 bool IsCapsLockEnabled() override;
35 void SetCapsLockEnabled(bool enabled) override; 38 void SetCapsLockEnabled(bool enabled) override;
36 void SetNumLockEnabled(bool enabled) override; 39 void SetNumLockEnabled(bool enabled) override;
37 bool IsAutoRepeatEnabled() override; 40 bool IsAutoRepeatEnabled() override;
38 void SetAutoRepeatEnabled(bool enabled) override; 41 void SetAutoRepeatEnabled(bool enabled) override;
39 void SetAutoRepeatRate(const base::TimeDelta& delay, 42 void SetAutoRepeatRate(const base::TimeDelta& delay,
40 const base::TimeDelta& interval) override; 43 const base::TimeDelta& interval) override;
(...skipping 17 matching lines...) Expand all
58 private: 61 private:
59 // Factory for devices. Needed to update device config. 62 // Factory for devices. Needed to update device config.
60 InputDeviceFactoryEvdev* input_device_factory_; 63 InputDeviceFactoryEvdev* input_device_factory_;
61 64
62 // Keyboard state. 65 // Keyboard state.
63 KeyboardEvdev* keyboard_; 66 KeyboardEvdev* keyboard_;
64 67
65 // Mouse button map. 68 // Mouse button map.
66 MouseButtonMapEvdev* button_map_; 69 MouseButtonMapEvdev* button_map_;
67 70
71 // Device presence.
72 bool has_mouse_;
73 bool has_touchpad_;
74
68 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev); 75 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev);
69 }; 76 };
70 77
71 } // namespace ui 78 } // namespace ui
72 79
73 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ 80 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/evdev/input_controller_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698