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 #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 0x400 and | |
14 // DOM |Key| non-printable value is over 0x400. | |
15 #define DOM_KEY_PRINT_NON_DIFF 0x400 | |
Wez
2015/06/25 10:40:21
Where does this value come from? DOM |key| could c
Habib Virji
2015/06/26 17:35:38
Updated to 0x110000
| |
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_ |
OLD | NEW |