// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/351564777): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include "ui/events/keycodes/keysym_to_unicode.h" #include <stddef.h> #include <unordered_map> #include "base/lazy_instance.h" #include "ui/gfx/x/keysyms/keysyms.h" namespace ui { const struct { … } g_keysym_to_unicode_table[] = …; class KeySymToUnicode { … }; static base::LazyInstance<KeySymToUnicode>::Leaky g_keysym_to_unicode = …; uint16_t GetUnicodeCharacterFromXKeySym(unsigned long keysym) { … } } // namespace ui