OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 // This file has no header guard because it is explicily intended | 5 // This file has no header guard because it is explicily intended |
6 // to be included more than once with different definitions of the | 6 // to be included more than once with different definitions of the |
7 // macros DOM_KEY_MAP and DOM_KEY_MAP_DECLARATION. | 7 // macros DOM_KEY_MAP and DOM_KEY_MAP_DECLARATION. |
8 | 8 |
9 // This is a table of DOM Level 3 .key values, used to generate identifiers | 9 // This is a table of DOM Level 3 .key values, used to generate identifiers |
10 // (enums) and string tables. These names are defined by: | 10 // (enums) and string tables. These names are defined by: |
(...skipping 10 matching lines...) Expand all Loading... | |
21 | 21 |
22 DOM_KEY_MAP_DECLARATION { | 22 DOM_KEY_MAP_DECLARATION { |
23 | 23 |
24 // The first entry, whose enum value will be zero, is reserved to mean | 24 // The first entry, whose enum value will be zero, is reserved to mean |
25 // no value; there is no corresponding DOM string. (This is not the same | 25 // no value; there is no corresponding DOM string. (This is not the same |
26 // as the valid DOM .key value 'Unidentified'.) | 26 // as the valid DOM .key value 'Unidentified'.) |
27 | 27 |
28 // Key Enum | 28 // Key Enum |
29 DOM_KEY_MAP(nullptr, NONE), // No value | 29 DOM_KEY_MAP(nullptr, NONE), // No value |
30 | 30 |
31 // A value of DomKey::CHARACTER indicates that the KeyboardEvent |key| | |
32 // string is determined by the Unicode character interpretation and is | |
33 // not one of the fixed string values. | |
34 DOM_KEY_MAP(nullptr, CHARACTER), | |
35 | |
36 // ========================================================= | 31 // ========================================================= |
37 // Special Key Values | 32 // Special Key Values |
38 // http://www.w3.org/TR/DOM-Level-3-Events-key/#keys-special | 33 // http://www.w3.org/TR/DOM-Level-3-Events-key/#keys-special |
39 // ========================================================= | 34 // ========================================================= |
40 | 35 |
41 // Unable to identify another key value | 36 // Unable to identify another key value |
42 DOM_KEY_MAP("Unidentified", UNIDENTIFIED), | 37 DOM_KEY_MAP("Unidentified", UNIDENTIFIED), |
43 | 38 |
44 // ========================================================== | 39 // ========================================================== |
45 // Modifier Keys | 40 // Modifier Keys |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
372 DOM_KEY_MAP("STBInput", STB_INPUT), | 367 DOM_KEY_MAP("STBInput", STB_INPUT), |
373 DOM_KEY_MAP("STBPower", STB_POWER), | 368 DOM_KEY_MAP("STBPower", STB_POWER), |
374 DOM_KEY_MAP("Subtitle", SUBTITLE), | 369 DOM_KEY_MAP("Subtitle", SUBTITLE), |
375 DOM_KEY_MAP("Teletext", TELETEXT), | 370 DOM_KEY_MAP("Teletext", TELETEXT), |
376 DOM_KEY_MAP("TV", T_V), | 371 DOM_KEY_MAP("TV", T_V), |
377 DOM_KEY_MAP("TVInput", TV_INPUT), | 372 DOM_KEY_MAP("TVInput", TV_INPUT), |
378 DOM_KEY_MAP("TVPower", TV_POWER), | 373 DOM_KEY_MAP("TVPower", TV_POWER), |
379 DOM_KEY_MAP("VideoModeNext", VIDEO_MODE_NEXT), | 374 DOM_KEY_MAP("VideoModeNext", VIDEO_MODE_NEXT), |
380 DOM_KEY_MAP("Wink", WINK), | 375 DOM_KEY_MAP("Wink", WINK), |
381 DOM_KEY_MAP("ZoomToggle", ZOOM_TOGGLE), | 376 DOM_KEY_MAP("ZoomToggle", ZOOM_TOGGLE), |
377 | |
378 // A value of DomKey::CHARACTER indicates that the KeyboardEvent |key| | |
379 // string is determined by the Unicode character interpretation and is | |
380 // not one of the fixed string values. | |
381 DOM_KEY_MAP(nullptr, CHARACTER), | |
dtapuska
2015/08/13 13:36:48
Should a comment be added here that CHARACTER is a
| |
382 }; | 382 }; |
OLD | NEW |