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

Side by Side Diff: ui/events/mojo/event_constants.mojom

Issue 2301593002: Add POINTER_WHEEL_CHANGED event to mojo. (Closed)
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/mojo/event_struct_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ui.mojom; 5 module ui.mojom;
6 6
7 // AcceleratorPhase specifies which phase of event matching the matcher should 7 // AcceleratorPhase specifies which phase of event matching the matcher should
8 // be considered for. See WindowTree for details on how it handles the 8 // be considered for. See WindowTree for details on how it handles the
9 // AcceleratorPhase. 9 // AcceleratorPhase.
10 enum AcceleratorPhase { 10 enum AcceleratorPhase {
11 PRE_TARGET, 11 PRE_TARGET,
12 POST_TARGET, 12 POST_TARGET,
13 }; 13 };
14 14
15 enum EventType { 15 enum EventType {
16 UNKNOWN, 16 UNKNOWN,
17 KEY_PRESSED, 17 KEY_PRESSED,
18 KEY_RELEASED, 18 KEY_RELEASED,
19 POINTER_CANCEL, 19 POINTER_CANCEL,
20 POINTER_DOWN, 20 POINTER_DOWN,
21 POINTER_MOVE, 21 POINTER_MOVE,
22 POINTER_UP, 22 POINTER_UP,
23 POINTER_WHEEL_CHANGED,
23 MOUSE_EXIT, 24 MOUSE_EXIT,
24 WHEEL,
25 }; 25 };
26 26
27 // This mirrors ui::EventFlags 27 // This mirrors ui::EventFlags
28 // TODO(morrita): Use shift operator once it is available. 28 // TODO(morrita): Use shift operator once it is available.
29 const int32 kEventFlagNone = 0x00000; 29 const int32 kEventFlagNone = 0x00000;
30 const int32 kEventFlagIsSynthesized = 0x00001; 30 const int32 kEventFlagIsSynthesized = 0x00001;
31 const int32 kEventFlagShiftDown = 0x00002; 31 const int32 kEventFlagShiftDown = 0x00002;
32 const int32 kEventFlagControlDown = 0x00004; 32 const int32 kEventFlagControlDown = 0x00004;
33 const int32 kEventFlagAltDown = 0x00008; 33 const int32 kEventFlagAltDown = 0x00008;
34 const int32 kEventFlagCommandDown = 0x00010; 34 const int32 kEventFlagCommandDown = 0x00010;
(...skipping 19 matching lines...) Expand all
54 PEN, 54 PEN,
55 TOUCH, 55 TOUCH,
56 }; 56 };
57 57
58 enum WheelMode { 58 enum WheelMode {
59 PIXEL, 59 PIXEL,
60 LINE, 60 LINE,
61 PAGE, 61 PAGE,
62 SCALING, 62 SCALING,
63 }; 63 };
OLDNEW
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/mojo/event_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698