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

Side by Side Diff: mojo/services/input_events/interfaces/input_event_constants.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo; 6 module mojo;
7 7
8 enum EventType { 8 enum EventType {
9 UNKNOWN, 9 UNKNOWN,
10 KEY_PRESSED, 10 KEY_PRESSED,
11 KEY_RELEASED, 11 KEY_RELEASED,
12 POINTER_CANCEL, 12 POINTER_CANCEL,
13 POINTER_DOWN, 13 POINTER_DOWN,
14 POINTER_MOVE, 14 POINTER_MOVE,
15 POINTER_UP, 15 POINTER_UP,
16 }; 16 };
17 17
18 // This mirrors ui::EventFlags 18 // This mirrors ui::EventFlags
19 // TODO(morrita): Use shift operator once it is available. 19 // TODO(morrita): Use shift operator once it is available.
20 // no-format
20 enum EventFlags { 21 enum EventFlags {
21 NONE = 0, 22 NONE = 0,
22 CAPS_LOCK_DOWN = 1, 23 CAPS_LOCK_DOWN = 1,
23 SHIFT_DOWN = 2, 24 SHIFT_DOWN = 2,
24 CONTROL_DOWN = 4, 25 CONTROL_DOWN = 4,
25 ALT_DOWN = 8, 26 ALT_DOWN = 8,
26 LEFT_MOUSE_BUTTON = 16, 27 LEFT_MOUSE_BUTTON = 16,
27 MIDDLE_MOUSE_BUTTON = 32, 28 MIDDLE_MOUSE_BUTTON = 32,
28 RIGHT_MOUSE_BUTTON = 64, 29 RIGHT_MOUSE_BUTTON = 64,
29 COMMAND_DOWN = 128, 30 COMMAND_DOWN = 128,
30 EXTENDED = 256, 31 EXTENDED = 256,
31 IS_SYNTHESIZED = 512, 32 IS_SYNTHESIZED = 512,
32 ALTGR_DOWN = 1024, 33 ALTGR_DOWN = 1024,
33 MOD3_DOWN = 2048 34 MOD3_DOWN = 2048
34 }; 35 };
35 36
36 enum MouseEventFlags { 37 enum MouseEventFlags {
37 IS_DOUBLE_CLICK = 65536, 38 IS_DOUBLE_CLICK = 65536,
38 IS_TRIPLE_CLICK = 131072, 39 IS_TRIPLE_CLICK = 131072,
39 IS_NON_CLIENT = 262144, 40 IS_NON_CLIENT = 262144,
40 41
41 // TODO(erg): Move accessibility flags and maybe synthetic touch events here. 42 // TODO(erg): Move accessibility flags and maybe synthetic touch events here.
42 }; 43 };
43 44
44 enum PointerKind { 45 enum PointerKind {
45 TOUCH, 46 TOUCH,
46 MOUSE, 47 MOUSE,
47 }; 48 };
49 // end-no-format
OLDNEW
« no previous file with comments | « mojo/services/gpu/interfaces/command_buffer.mojom ('k') | mojo/services/input_events/interfaces/input_key_codes.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698