Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_ | |
| 6 #define UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_ | |
| 7 | |
| 8 // TODO(kpschoedel): consider moving this out of Ozone. | |
| 9 | |
| 10 #include "base/strings/string16.h" | |
| 11 #include "ui/events/keycodes/keyboard_codes.h" | |
| 12 | |
| 13 namespace ui { | |
| 14 | |
| 15 enum class DomCode; | |
| 16 enum class DomKey; | |
| 17 | |
| 18 // Returns the Windows-based VKEY value corresponding to a DOM Level 3 |code|. | |
| 19 // The returned VKEY is positional (e.g. VKEY_LSHIFT). | |
| 20 KeyboardCode DomCodeToKeyboardCode(DomCode dom_code); | |
| 21 | |
| 22 // Returns a Windows-based VKEY for a non-printable DOM Level 3 |key|. | |
| 23 // The returned VKEY is non-positional (e.g. VKEY_SHIFT). | |
| 24 KeyboardCode NonPrintableDomKeyToKeyboardCode(DomKey dom_key); | |
| 25 | |
| 26 // Determine the non-located VKEY corresponding to a located VKEY. | |
|
spang
2014/12/05 20:10:47
Above says "positional" but here says "located". C
kpschoedel
2014/12/08 19:54:38
Done.
| |
| 27 KeyboardCode DeLocateKeyboardCode(KeyboardCode key_code); | |
| 28 | |
| 29 // Returns true control character corresponding to a physical key. | |
| 30 // In some contexts this is used instead of the key layout. | |
| 31 bool LookupControlCharacter(DomCode dom_code, | |
| 32 int flags, | |
| 33 DomKey* dom_key, | |
| 34 base::char16* character, | |
| 35 KeyboardCode* key_code); | |
| 36 | |
| 37 } // namespace ui | |
| 38 | |
| 39 #endif // UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_ | |
| OLD | NEW |