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

Side by Side Diff: ui/events/keycodes/dom/dom_key_data.inc

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 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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698