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.
5 #include "ui/base/ime/chromeos/ime_keymap.h"
8 #include <X11/keysymdef.h>
9 #include <X11/XF86keysym.h>
13 std::string
FromXKeycodeToKeyValue(int keyval
) {
14 // TODO: Ensure all keys are supported.
23 return "HistoryForward";
26 return "BrowserRefresh";
29 return "ChromeOSFullscreen"; // TODO: Check this value
32 return "ChromeOSSwitchWindow"; // TODO: Check this value
34 case XF86XK_MonBrightnessDown
:
35 return "BrightnessDown";
37 case XF86XK_MonBrightnessUp
:
38 return "BrightnessUp";
40 case XF86XK_AudioMute
:
41 return "AudioVolumeMute";
43 case XF86XK_AudioLowerVolume
:
44 return "AudioVolumeDown";
46 case XF86XK_AudioRaiseVolume
:
47 return "AudioVolumeUp";
59 return "BrowserSearch";
92 // TODO: Properly support unicode characters.