| OLD | NEW |
| 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 #include "ui/events/x/keysym_to_unicode.h" | 5 #include "ui/events/keycodes/keysym_to_unicode.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 // Define XK_xxx before the #include of <X11/keysym.h> so that <X11/keysym.h> | 9 // Define XK_xxx before the #include of <X11/keysym.h> so that <X11/keysym.h> |
| 10 // defines all KeySyms we need. | 10 // defines all KeySyms we need. |
| 11 #define XK_MISCELLANY | 11 #define XK_MISCELLANY |
| 12 #define XK_LATIN1 | 12 #define XK_LATIN1 |
| 13 #define XK_LATIN2 | 13 #define XK_LATIN2 |
| 14 #define XK_LATIN3 | 14 #define XK_LATIN3 |
| 15 #define XK_LATIN4 | 15 #define XK_LATIN4 |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 | 882 |
| 883 static base::LazyInstance<KeySymToUnicode>::Leaky g_keysym_to_unicode = | 883 static base::LazyInstance<KeySymToUnicode>::Leaky g_keysym_to_unicode = |
| 884 LAZY_INSTANCE_INITIALIZER; | 884 LAZY_INSTANCE_INITIALIZER; |
| 885 | 885 |
| 886 uint16_t GetUnicodeCharacterFromXKeySym(unsigned long keysym) { | 886 uint16_t GetUnicodeCharacterFromXKeySym(unsigned long keysym) { |
| 887 return g_keysym_to_unicode.Get().UnicodeFromKeySym( | 887 return g_keysym_to_unicode.Get().UnicodeFromKeySym( |
| 888 static_cast<KeySym>(keysym)); | 888 static_cast<KeySym>(keysym)); |
| 889 } | 889 } |
| 890 | 890 |
| 891 } // namespace ui | 891 } // namespace ui |
| OLD | NEW |