Chromium Code Reviews| Index: ui/events/keycodes/keyboard_code_conversion.h |
| diff --git a/ui/events/keycodes/keyboard_code_conversion.h b/ui/events/keycodes/keyboard_code_conversion.h |
| index 8b92ba16394eaaebd48ccbacd86bed3ec453bc99..c312710b8be1f3dafee726c6e8a377d924083aad 100644 |
| --- a/ui/events/keycodes/keyboard_code_conversion.h |
| +++ b/ui/events/keycodes/keyboard_code_conversion.h |
| @@ -70,6 +70,11 @@ EVENTS_BASE_EXPORT bool DomCodeToControlCharacter(DomCode dom_code, |
| KeyboardCode* key_code) |
| WARN_UNUSED_RESULT; |
| +// Returns the DomKey value associated with an ASCII/Unicode character. |
| +// All printable characters and most other character codes use |
| +// DomKey::CHARACTER, but a few ASCII C0 codes have their own DomKey. |
| +EVENTS_BASE_EXPORT DomKey CharacterToDomKey(base::char16 character); |
|
Wez
2015/05/06 23:51:53
nit: Using char16 here means we're limited to UCS2
kpschoedel
2015/05/07 16:21:33
Done.
|
| + |
| // Returns a Windows-based VKEY for a non-printable DOM Level 3 |key|. |
| // The returned VKEY is non-located (e.g. VKEY_SHIFT). |
| EVENTS_BASE_EXPORT KeyboardCode |