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

Side by Side Diff: ui/events/keycodes/dom_us_layout_data.h

Issue 929053004: [KeyboardEvent] Add embedder APIs to translate between Dom |key| enum and strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup of the dom_key.h Created 5 years, 4 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_ 5 #ifndef UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_
6 #define UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_ 6 #define UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_
7 7
8 #include "ui/events/keycodes/keyboard_codes.h"
9
8 namespace ui { 10 namespace ui {
9 11
10 // This table maps a DomCode to a printable character, assuming US layout. 12 // This table maps a DomCode to a printable character, assuming US layout.
11 // It is used by DomCodeToUsLayoutMeaning(), which provides a fallback 13 // It is used by DomCodeToUsLayoutMeaning(), which provides a fallback
12 // interpretation when there is no other way to map a physical key. 14 // interpretation when there is no other way to map a physical key.
13 const struct PrintableCodeEntry { 15 const struct PrintableCodeEntry {
14 DomCode dom_code; 16 DomCode dom_code;
15 base::char16 character[2]; // normal, shift 17 base::char16 character[2]; // normal, shift
16 } kPrintableCodeMap[] = { 18 } kPrintableCodeMap[] = {
17 {DomCode::KEY_A, {'a', 'A'}}, 19 {DomCode::KEY_A, {'a', 'A'}},
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 // VKEY_MODECHANGE 624 // VKEY_MODECHANGE
623 // VKEY_NONAME 625 // VKEY_NONAME
624 // VKEY_PA1 626 // VKEY_PA1
625 // VKEY_PACKET 627 // VKEY_PACKET
626 // VKEY_PROCESSKEY 628 // VKEY_PROCESSKEY
627 }; 629 };
628 630
629 } // namespace ui 631 } // namespace ui
630 632
631 #endif // UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_ 633 #endif // UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_
OLDNEW
« ui/events/keycodes/dom/dom_key_data.inc ('K') | « ui/events/keycodes/dom/dom_key_data.inc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698