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

Side by Side Diff: components/mus/public/interfaces/input_key_codes.mojom

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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 module mus.mojom; 5 module mus.mojom;
6 6
7 // Cross platform keyboard codes. 7 // Cross platform keyboard codes.
8 // 8 //
9 // Because the web has standardized on Win32 keyboard codes, so does mojo. 9 // Because the web has standardized on Win32 keyboard codes, so does mojo.
10 enum KeyboardCode { 10 enum KeyboardCode {
(...skipping 24 matching lines...) Expand all
35 HOME = 0x24, 35 HOME = 0x24,
36 LEFT = 0x25, 36 LEFT = 0x25,
37 UP = 0x26, 37 UP = 0x26,
38 RIGHT = 0x27, 38 RIGHT = 0x27,
39 DOWN = 0x28, 39 DOWN = 0x28,
40 SELECT = 0x29, 40 SELECT = 0x29,
41 PRINT = 0x2A, 41 PRINT = 0x2A,
42 EXECUTE = 0x2B, 42 EXECUTE = 0x2B,
43 SNAPSHOT = 0x2C, 43 SNAPSHOT = 0x2C,
44 INSERT = 0x2D, 44 INSERT = 0x2D,
45 DELETE = 0x2E, 45 KEY_DELETE = 0x2E,
46 HELP = 0x2F, 46 HELP = 0x2F,
47 NUM_0 = 0x30, 47 NUM_0 = 0x30,
48 NUM_1 = 0x31, 48 NUM_1 = 0x31,
49 NUM_2 = 0x32, 49 NUM_2 = 0x32,
50 NUM_3 = 0x33, 50 NUM_3 = 0x33,
51 NUM_4 = 0x34, 51 NUM_4 = 0x34,
52 NUM_5 = 0x35, 52 NUM_5 = 0x35,
53 NUM_6 = 0x36, 53 NUM_6 = 0x36,
54 NUM_7 = 0x37, 54 NUM_7 = 0x37,
55 NUM_8 = 0x38, 55 NUM_8 = 0x38,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 ZOOM = 0xFB, 177 ZOOM = 0xFB,
178 NONAME = 0xFC, 178 NONAME = 0xFC,
179 PA1 = 0xFD, 179 PA1 = 0xFD,
180 OEM_CLEAR = 0xFE, 180 OEM_CLEAR = 0xFE,
181 UNKNOWN = 0, 181 UNKNOWN = 0,
182 182
183 // Windows does not have a specific key code for AltGr. We use the unused 183 // Windows does not have a specific key code for AltGr. We use the unused
184 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux. 184 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux.
185 ALTGR = 0xE1, 185 ALTGR = 0xE1,
186 }; 186 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/input_events.mojom ('k') | components/mus/public/interfaces/window_manager_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698