| 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 0x110000 and | |
| 14 // DOM |Key| non-printable value is over 0x110000. | |
| 15 #define DOM_KEY_PRINT_NON_DIFF 0x110000 | |
| 16 | |
| 17 #define DOM_KEY_MAP(key, id) id | 10 #define DOM_KEY_MAP(key, id) id |
| 18 #define DOM_KEY_MAP_DECLARATION enum class DomKey | 11 #define DOM_KEY_MAP_DECLARATION enum class DomKey |
| 19 #include "ui/events/keycodes/dom/dom_key_data.inc" | 12 #include "ui/events/keycodes/dom/dom_key_data.inc" |
| 20 #undef DOM_KEY_MAP | 13 #undef DOM_KEY_MAP |
| 21 #undef DOM_KEY_MAP_DECLARATION | 14 #undef DOM_KEY_MAP_DECLARATION |
| 22 | 15 |
| 23 } // namespace ui | 16 } // namespace ui |
| 24 | 17 |
| 25 #endif // UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_ | 18 #endif // UI_EVENTS_KEYCODES_DOM3_DOM_KEY_H_ |
| OLD | NEW |