OLD | NEW |
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 // Denotes during which phase of event targeting that an accelerator will be | 7 // AcceleratorPhase specifies which phase of event matching the matcher should |
8 // notified of an event. PRE_TARGET will be notified instead of the target | 8 // be considered for. See WindowTree for details on how it handles the |
9 // window. POST_TARGET will be notified after the target window, and only if the | 9 // AcceleratorPhase. |
10 // event was not consumed by the target. | |
11 enum AcceleratorPhase { | 10 enum AcceleratorPhase { |
12 PRE_TARGET, | 11 PRE_TARGET, |
13 POST_TARGET, | 12 POST_TARGET, |
14 }; | 13 }; |
15 | 14 |
16 enum EventType { | 15 enum EventType { |
17 UNKNOWN, | 16 UNKNOWN, |
18 KEY_PRESSED, | 17 KEY_PRESSED, |
19 KEY_RELEASED, | 18 KEY_RELEASED, |
20 POINTER_CANCEL, | 19 POINTER_CANCEL, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 PEN, | 54 PEN, |
56 TOUCH, | 55 TOUCH, |
57 }; | 56 }; |
58 | 57 |
59 enum WheelMode { | 58 enum WheelMode { |
60 PIXEL, | 59 PIXEL, |
61 LINE, | 60 LINE, |
62 PAGE, | 61 PAGE, |
63 SCALING, | 62 SCALING, |
64 }; | 63 }; |
OLD | NEW |