OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module mojo; | |
6 | |
7 // This mirrors ui::EventType | |
8 enum EventType { | |
9 UNKNOWN , | |
10 MOUSE_PRESSED, | |
11 MOUSE_DRAGGED, | |
12 MOUSE_RELEASED, | |
13 MOUSE_MOVED, | |
14 MOUSE_ENTERED, | |
15 MOUSE_EXITED, | |
16 KEY_PRESSED, | |
17 KEY_RELEASED, | |
18 MOUSEWHEEL, | |
19 MOUSE_CAPTURE_CHANGED, | |
20 TOUCH_RELEASED, | |
21 TOUCH_PRESSED, | |
22 TOUCH_MOVED, | |
23 TOUCH_CANCELLED, | |
24 DROP_TARGET_EVENT, | |
25 TRANSLATED_KEY_PRESS, | |
26 TRANSLATED_KEY_RELEASE, | |
27 GESTURE_SCROLL_BEGIN, | |
28 GESTURE_SCROLL_END, | |
29 GESTURE_SCROLL_UPDATE, | |
30 GESTURE_TAP, | |
31 GESTURE_TAP_DOWN, | |
32 GESTURE_TAP_CANCEL, | |
33 GESTURE_TAP_UNCONFIRMED, | |
34 GESTURE_DOUBLE_TAP, | |
35 GESTURE_BEGIN, | |
36 GESTURE_END, | |
37 GESTURE_TWO_FINGER_TAP, | |
38 GESTURE_PINCH_BEGIN, | |
39 GESTURE_PINCH_END, | |
40 GESTURE_PINCH_UPDATE, | |
41 GESTURE_LONG_PRESS, | |
42 GESTURE_LONG_TAP, | |
43 GESTURE_SWIPE, | |
44 GESTURE_SHOW_PRESS, | |
45 GESTURE_WIN8_EDGE_SWIPE, | |
46 SCROLL, | |
47 SCROLL_FLING_START, | |
48 SCROLL_FLING_CANCEL, | |
49 CANCEL_MODE, | |
50 UMA_DATA | |
51 }; | |
52 | |
53 // This mirrors ui::EventFlags | |
54 // TODO(morrita): Use shift operator once it is available. | |
55 enum EventFlags { | |
56 NONE = 0, | |
57 CAPS_LOCK_DOWN = 1, | |
58 SHIFT_DOWN = 2, | |
59 CONTROL_DOWN = 4, | |
60 ALT_DOWN = 8, | |
61 LEFT_MOUSE_BUTTON = 16, | |
62 MIDDLE_MOUSE_BUTTON = 32, | |
63 RIGHT_MOUSE_BUTTON = 64, | |
64 COMMAND_DOWN = 128, | |
65 EXTENDED = 256, | |
66 IS_SYNTHESIZED = 512, | |
67 ALTGR_DOWN = 1024, | |
68 MOD3_DOWN = 2048 | |
69 }; | |
70 | |
71 enum MouseEventFlags { | |
72 IS_DOUBLE_CLICK = 65536, | |
73 IS_TRIPLE_CLICK = 131072, | |
74 IS_NON_CLIENT = 262144, | |
75 | |
76 // TODO(erg): Move accessibility flags and maybe synthetic touch events here. | |
77 }; | |
OLD | NEW |