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

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: 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_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 SetHasMouse(bool has_mouse);
32 void SetHasTouchpad(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 16 matching lines...) Expand all
57 private: 60 private:
58 // Factory for devices. Needed to update device config. 61 // Factory for devices. Needed to update device config.
59 InputDeviceFactoryEvdev* input_device_factory_; 62 InputDeviceFactoryEvdev* input_device_factory_;
60 63
61 // Keyboard state. 64 // Keyboard state.
62 KeyboardEvdev* keyboard_; 65 KeyboardEvdev* keyboard_;
63 66
64 // Mouse button map. 67 // Mouse button map.
65 MouseButtonMapEvdev* button_map_; 68 MouseButtonMapEvdev* button_map_;
66 69
70 // Device presence.
71 bool has_mouse_;
72 bool has_touchpad_;
73
67 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev); 74 DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev);
68 }; 75 };
69 76
70 } // namespace ui 77 } // namespace ui
71 78
72 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_ 79 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_CONTROLLER_EVDEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698