| OLD | NEW |
| 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 | |
| 10 namespace ui { | 8 namespace ui { |
| 11 | 9 |
| 12 // This table maps a DomCode to a printable character, assuming US layout. | 10 // This table maps a DomCode to a printable character, assuming US layout. |
| 13 // It is used by DomCodeToUsLayoutMeaning(), which provides a fallback | 11 // It is used by DomCodeToUsLayoutMeaning(), which provides a fallback |
| 14 // interpretation when there is no other way to map a physical key. | 12 // interpretation when there is no other way to map a physical key. |
| 15 const struct PrintableCodeEntry { | 13 const struct PrintableCodeEntry { |
| 16 DomCode dom_code; | 14 DomCode dom_code; |
| 17 base::char16 character[2]; // normal, shift | 15 base::char16 character[2]; // normal, shift |
| 18 } kPrintableCodeMap[] = { | 16 } kPrintableCodeMap[] = { |
| 19 {DomCode::KEY_A, {'a', 'A'}}, | 17 {DomCode::KEY_A, {'a', 'A'}}, |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 // VKEY_MODECHANGE | 622 // VKEY_MODECHANGE |
| 625 // VKEY_NONAME | 623 // VKEY_NONAME |
| 626 // VKEY_PA1 | 624 // VKEY_PA1 |
| 627 // VKEY_PACKET | 625 // VKEY_PACKET |
| 628 // VKEY_PROCESSKEY | 626 // VKEY_PROCESSKEY |
| 629 }; | 627 }; |
| 630 | 628 |
| 631 } // namespace ui | 629 } // namespace ui |
| 632 | 630 |
| 633 #endif // UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_ | 631 #endif // UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_ |
| OLD | NEW |