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

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

Issue 742103002: Ozone keyboard layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lite-code
Patch Set: works on link 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 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_KEYBOARD_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_KEYBOARD_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_KEYBOARD_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_KEYBOARD_EVDEV_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <linux/input.h> 9 #include <linux/input.h>
10 10
11 #include "ui/events/ozone/evdev/event_device_util.h" 11 #include "ui/events/ozone/evdev/event_device_util.h"
12 #include "ui/events/ozone/evdev/event_dispatch_callback.h" 12 #include "ui/events/ozone/evdev/event_dispatch_callback.h"
13 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" 13 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class EventModifiersEvdev; 17 class EventModifiersEvdev;
18 18
19 // Keyboard for evdev. 19 // Keyboard for evdev.
20 // 20 //
21 // This object is responsible for combining all attached keyboards into 21 // This object is responsible for combining all attached keyboards into
22 // one logical keyboard, applying modifiers & implementing key repeat. 22 // one logical keyboard, applying modifiers & implementing key repeat.
23 // 23 //
24 // It also currently also applies the layout (hardcoded as US). 24 // It also currently also applies the layout.
25 // 25 //
26 // TODO(spang): Implement key repeat & turn off kernel repeat. 26 // TODO(spang): Implement key repeat & turn off kernel repeat.
27 class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev { 27 class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev {
28 public: 28 public:
29 KeyboardEvdev(EventModifiersEvdev* modifiers, 29 KeyboardEvdev(EventModifiersEvdev* modifiers,
30 const EventDispatchCallback& callback); 30 const EventDispatchCallback& callback);
31 ~KeyboardEvdev(); 31 ~KeyboardEvdev();
32 32
33 // Handlers for raw key presses & releases. 33 // Handlers for raw key presses & releases.
34 void OnKeyChange(unsigned int code, bool down); 34 void OnKeyChange(unsigned int code, bool down);
(...skipping 16 matching lines...) Expand all
51 51
52 // Shared modifier state. 52 // Shared modifier state.
53 EventModifiersEvdev* modifiers_; 53 EventModifiersEvdev* modifiers_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(KeyboardEvdev); 55 DISALLOW_COPY_AND_ASSIGN(KeyboardEvdev);
56 }; 56 };
57 57
58 } // namespace ui 58 } // namespace ui
59 59
60 #endif // UI_EVENTS_OZONE_EVDEV_KEYBOARD_EVDEV_H_ 60 #endif // UI_EVENTS_OZONE_EVDEV_KEYBOARD_EVDEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698