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

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

Issue 1559163002: Clean up event flags a bit: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment 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 enum EventType { 7 enum EventType {
8 UNKNOWN, 8 UNKNOWN,
9 KEY_PRESSED, 9 KEY_PRESSED,
10 KEY_RELEASED, 10 KEY_RELEASED,
11 POINTER_CANCEL, 11 POINTER_CANCEL,
12 POINTER_DOWN, 12 POINTER_DOWN,
13 POINTER_MOVE, 13 POINTER_MOVE,
14 POINTER_UP, 14 POINTER_UP,
15 WHEEL, 15 WHEEL,
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 enum EventFlags { 20 enum EventFlags {
21 NONE = 0, 21 NONE = 0,
22 CAPS_LOCK_DOWN = 1, 22 IS_SYNTHESIZED = 1,
23 SHIFT_DOWN = 2, 23 SHIFT_DOWN = 2,
24 CONTROL_DOWN = 4, 24 CONTROL_DOWN = 4,
25 ALT_DOWN = 8, 25 ALT_DOWN = 8,
26 LEFT_MOUSE_BUTTON = 16, 26 COMMAND_DOWN = 16,
27 MIDDLE_MOUSE_BUTTON = 32, 27 ALTGR_DOWN = 32,
28 RIGHT_MOUSE_BUTTON = 64, 28 MOD3_DOWN = 64,
29 COMMAND_DOWN = 128, 29 NUM_LOCK_ON = 128,
30 EXTENDED = 256, 30 CAPS_LOCK_ON = 256,
31 IS_SYNTHESIZED = 512, 31 SCROLL_LOCK_ON = 512,
32 ALTGR_DOWN = 1024, 32 LEFT_MOUSE_BUTTON = 1024,
33 MOD3_DOWN = 2048, 33 MIDDLE_MOUSE_BUTTON = 2048,
34 BACK_MOUSE_BUTTON = 4096, 34 RIGHT_MOUSE_BUTTON = 4096,
35 FORWARD_MOUSE_BUTTON = 8192, 35 BACK_MOUSE_BUTTON = 8192,
36 NUM_LOCK_DOWN = 16384, 36 FORWARD_MOUSE_BUTTON = 16384,
37 SCROLL_LOCK_DOWN = 32768,
38 }; 37 };
39 38
40 enum MouseEventFlags { 39 enum MouseEventFlags {
41 IS_DOUBLE_CLICK = 65536, 40 IS_DOUBLE_CLICK = 32768,
42 IS_TRIPLE_CLICK = 131072, 41 IS_TRIPLE_CLICK = 65536,
43 IS_NON_CLIENT = 262144, 42 IS_NON_CLIENT = 131072,
44 43
45 // TODO(erg): Move accessibility flags and maybe synthetic touch events here. 44 // TODO(erg): Move accessibility flags and maybe synthetic touch events here.
46 }; 45 };
47 46
48 enum PointerKind { 47 enum PointerKind {
49 MOUSE, 48 MOUSE,
50 PEN, 49 PEN,
51 TOUCH, 50 TOUCH,
52 }; 51 };
53 52
54 enum WheelMode { 53 enum WheelMode {
55 PIXEL, 54 PIXEL,
56 LINE, 55 LINE,
57 PAGE, 56 PAGE,
58 SCALING, 57 SCALING,
59 }; 58 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/event_matcher.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698