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. Event processing happens in the following order: |
9 // window. POST_TARGET will be notified after the target window, and only if the | 9 // . EventMatcher registered for PRE_TARGET. If the EventMatcher does not |
dcheng
2016/07/07 04:04:21
I was wondering this while reviewing the dragging
sky
2016/07/07 13:38:38
I've moved these comments to clarify they are for
| |
10 // event was not consumed by the target. | 10 // consume the event, then the following are considered. |
11 // . Target window (lookup of the target window depends upon the event type). | |
12 // . EventMatcher registered for POST_TARGET. These matchers are only considered | |
13 // if the target window does not consume the event. | |
11 enum AcceleratorPhase { | 14 enum AcceleratorPhase { |
12 PRE_TARGET, | 15 PRE_TARGET, |
13 POST_TARGET, | 16 POST_TARGET, |
14 }; | 17 }; |
15 | 18 |
16 enum EventType { | 19 enum EventType { |
17 UNKNOWN, | 20 UNKNOWN, |
18 KEY_PRESSED, | 21 KEY_PRESSED, |
19 KEY_RELEASED, | 22 KEY_RELEASED, |
20 POINTER_CANCEL, | 23 POINTER_CANCEL, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 PEN, | 58 PEN, |
56 TOUCH, | 59 TOUCH, |
57 }; | 60 }; |
58 | 61 |
59 enum WheelMode { | 62 enum WheelMode { |
60 PIXEL, | 63 PIXEL, |
61 LINE, | 64 LINE, |
62 PAGE, | 65 PAGE, |
63 SCALING, | 66 SCALING, |
64 }; | 67 }; |
OLD | NEW |