summaryrefslogtreecommitdiffstats
path: root/ui/events/x/keysym_to_unicode.h
blob: b00ba9a3f16a148576bb85fe4a35f8d9033e857f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_EVENTS_X_KEYSYM_TO_UNICODE_H_
#define UI_EVENTS_X_KEYSYM_TO_UNICODE_H_

#include <stdint.h>

namespace ui {

// Returns a Unicode character corresponding to the given |keysym|.  If the
// |keysym| doesn't represent a printable character, returns zero.  We don't
// support characters outside the Basic Plane, and this function returns zero
// in that case.
uint16_t GetUnicodeCharacterFromXKeySym(unsigned long keysym);

}  // namespace ui

#endif  // UI_EVENTS_X_KEYSYM_TO_UNICODE_H_