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

Side by Side Diff: ui/events/keycodes/keysym_to_unicode.cc

Issue 1880313004: Remove X11 deps from //ui/events:events_base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device_refactor
Patch Set: Maybe GYP actually works now? Created 4 years, 8 months 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698