Chromium Code Reviews| 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" | |
|
Wez
2015/07/25 23:12:26
Do you need this?
Habib Virji
2015/07/31 16:17:29
Yes, as VKEY is defined in 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 Loading... | |
| 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_ |
| OLD | NEW |