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

Side by Side Diff: ui/events/keycodes/dom/dom_key.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: UnitTest updated as MakeKeyboardEvent now adds a value to differentiate Created 5 years, 5 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 #ifndef UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_ 5 #ifndef UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_
6 #define UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_ 6 #define UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_
7 7
8 namespace ui { 8 namespace ui {
9 9
10 // This is specific for Blink Embedded API.
11 // A base of 512 (0x400) is used to differentiate between
12 // DOM |Key| printable and non-printable values.
13 // DOM |Key| printable value is between 0 to 0x110000 and
14 // DOM |Key| non-printable value is over 0x110000.
15 #define DOM_KEY_PRINT_NON_DIFF 0x110000
Wez 2015/07/25 23:12:26 See comments on Blink API impl - I don't think you
Habib Virji 2015/07/31 16:17:29 This is removed now.
16
10 #define DOM_KEY_MAP(key, id) id 17 #define DOM_KEY_MAP(key, id) id
11 #define DOM_KEY_MAP_DECLARATION enum class DomKey 18 #define DOM_KEY_MAP_DECLARATION enum class DomKey
12 #include "ui/events/keycodes/dom/dom_key_data.inc" 19 #include "ui/events/keycodes/dom/dom_key_data.inc"
13 #undef DOM_KEY_MAP 20 #undef DOM_KEY_MAP
14 #undef DOM_KEY_MAP_DECLARATION 21 #undef DOM_KEY_MAP_DECLARATION
15 22
16 } // namespace ui 23 } // namespace ui
17 24
18 #endif // UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_ 25 #endif // UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698