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

Side by Side Diff: ui/base/keycodes/keyboard_code_conversion.h

Issue 19776016: Add files. Does not compile yet! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk links, may not work correctly Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_H_ 5 #ifndef UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_H_
6 #define UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_H_ 6 #define UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/base/keycodes/keyboard_codes.h" 9 #include "ui/base/keycodes/keyboard_codes.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
(...skipping 15 matching lines...) Expand all
26 // layouts, that may generate different text for a certain key than on a US 26 // layouts, that may generate different text for a certain key than on a US
27 // keyboard, a special native event object should be introduced to carry extra 27 // keyboard, a special native event object should be introduced to carry extra
28 // information to help determine the correct character. 28 // information to help determine the correct character.
29 // Take XKeyEvent as an example, it contains not only keycode and modifier 29 // Take XKeyEvent as an example, it contains not only keycode and modifier
30 // flags but also group and other extra XKB information to help determine the 30 // flags but also group and other extra XKB information to help determine the
31 // correct character. That's why we can use XLookupString() function to get 31 // correct character. That's why we can use XLookupString() function to get
32 // the correct text generated by a X key event (See how is GetCharacter() 32 // the correct text generated by a X key event (See how is GetCharacter()
33 // implemented in event_x.cc). 33 // implemented in event_x.cc).
34 UI_EXPORT uint16 GetCharacterFromKeyCode(KeyboardCode key_code, int flags); 34 UI_EXPORT uint16 GetCharacterFromKeyCode(KeyboardCode key_code, int flags);
35 35
36 UI_EXPORT KeyboardCode GetWindowsKeyCodeWithoutLocation(KeyboardCode key_code);
37 UI_EXPORT int GetLocationModifiersFromWindowsKeyCode(KeyboardCode key_code);
38
36 } // namespace ui 39 } // namespace ui
37 40
38 #endif // UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_H_ 41 #endif // UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698