|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 /** |
|
7 * This header file lists up all event classes and related structs. |
|
8 * Define NS_EVENT_CLASS(aPrefix, aName) and NS_ROOT_EVENT_CLASS(aPrefix, aName) |
|
9 * before including this. |
|
10 * If an event name is WidgetInputEvent, aPrefix is "Widget" and aName is |
|
11 * "InputEvent". NS_ROOT_EVENT_CLASS() is only used for WidgetEvent for |
|
12 * allowing special handling for it. If you don't need such special handling, |
|
13 * you can define it as: |
|
14 * #define NS_ROOT_EVENT_CLASS(aPrefix, aName) NS_EVENT_CLASS(aPrefix, aName) |
|
15 */ |
|
16 |
|
17 // BasicEvents.h |
|
18 NS_ROOT_EVENT_CLASS(Widget, Event) |
|
19 NS_EVENT_CLASS(Widget, GUIEvent) |
|
20 NS_EVENT_CLASS(Widget, InputEvent) |
|
21 NS_EVENT_CLASS(Internal, UIEvent) |
|
22 |
|
23 // TextEvents.h |
|
24 NS_EVENT_CLASS(Widget, KeyboardEvent) |
|
25 NS_EVENT_CLASS(Widget, TextEvent) |
|
26 NS_EVENT_CLASS(Widget, CompositionEvent) |
|
27 NS_EVENT_CLASS(Widget, QueryContentEvent) |
|
28 NS_EVENT_CLASS(Widget, SelectionEvent) |
|
29 NS_EVENT_CLASS(Internal, EditorInputEvent) |
|
30 |
|
31 // MouseEvents.h |
|
32 NS_EVENT_CLASS(Widget, MouseEventBase) |
|
33 NS_EVENT_CLASS(Widget, MouseEvent) |
|
34 NS_EVENT_CLASS(Widget, DragEvent) |
|
35 NS_EVENT_CLASS(Widget, MouseScrollEvent) |
|
36 NS_EVENT_CLASS(Widget, WheelEvent) |
|
37 NS_EVENT_CLASS(Widget, PointerEvent) |
|
38 |
|
39 // TouchEvents.h |
|
40 NS_EVENT_CLASS(Widget, GestureNotifyEvent) |
|
41 NS_EVENT_CLASS(Widget, SimpleGestureEvent) |
|
42 NS_EVENT_CLASS(Widget, TouchEvent) |
|
43 |
|
44 // ContentEvents.h |
|
45 NS_EVENT_CLASS(Internal, ScrollPortEvent) |
|
46 NS_EVENT_CLASS(Internal, ScrollAreaEvent) |
|
47 NS_EVENT_CLASS(Internal, FormEvent) |
|
48 NS_EVENT_CLASS(Internal, ClipboardEvent) |
|
49 NS_EVENT_CLASS(Internal, FocusEvent) |
|
50 NS_EVENT_CLASS(Internal, TransitionEvent) |
|
51 NS_EVENT_CLASS(Internal, AnimationEvent) |
|
52 |
|
53 // MiscEvents.h |
|
54 NS_EVENT_CLASS(Widget, CommandEvent) |
|
55 NS_EVENT_CLASS(Widget, ContentCommandEvent) |
|
56 NS_EVENT_CLASS(Widget, PluginEvent) |
|
57 |
|
58 // InternalMutationEvent.h (dom/events) |
|
59 NS_EVENT_CLASS(Internal, MutationEvent) |