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

Side by Side Diff: ui/events/ozone/layout/xkb/xkb_evdev_codes.cc

Issue 778503002: XKB implementation of Ozone key layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x430194-layout
Patch Set: fix boneheaded license paste 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/events/ozone/layout/xkb/xkb_evdev_codes.h"
6
7 #include "ui/events/keycodes/dom4/keycode_converter.h"
8
9 namespace ui {
10
11 XkbEvdevCodes::XkbEvdevCodes() {
12 invalid_xkb_keycode_ =
13 static_cast<xkb_keycode_t>(KeycodeConverter::InvalidNativeKeycode());
14 }
15
16 XkbEvdevCodes::~XkbEvdevCodes() {
17 }
18
19 xkb_keycode_t XkbEvdevCodes::DomCodeToXkbKeyCode(DomCode dom_code) const {
20 // This assumes KeycodeConverter has been built with evdev/xkb codes.
21 return static_cast<xkb_keycode_t>(
22 KeycodeConverter::DomCodeToNativeKeycode(dom_code));
23 }
24
25 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/layout/xkb/xkb_evdev_codes.h ('k') | ui/events/ozone/layout/xkb/xkb_key_code_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698