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

Side by Side Diff: ui/events/ozone/layout/layout_util.h

Issue 778503002: XKB implementation of Ozone key layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x430194-layout
Patch Set: fix boneheaded license paste Created 6 years 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
« no previous file with comments | « ui/events/ozone/events_ozone.gyp ('k') | ui/events/ozone/layout/layout_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 located (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-located (e.g. VKEY_SHIFT).
24 KeyboardCode NonPrintableDomKeyToKeyboardCode(DomKey dom_key);
25
26 // Determine the non-located VKEY corresponding to a located VKEY.
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_
OLDNEW
« no previous file with comments | « ui/events/ozone/events_ozone.gyp ('k') | ui/events/ozone/layout/layout_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698