michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * This header file lists up all event classes and related structs. michael@0: * Define NS_EVENT_CLASS(aPrefix, aName) and NS_ROOT_EVENT_CLASS(aPrefix, aName) michael@0: * before including this. michael@0: * If an event name is WidgetInputEvent, aPrefix is "Widget" and aName is michael@0: * "InputEvent". NS_ROOT_EVENT_CLASS() is only used for WidgetEvent for michael@0: * allowing special handling for it. If you don't need such special handling, michael@0: * you can define it as: michael@0: * #define NS_ROOT_EVENT_CLASS(aPrefix, aName) NS_EVENT_CLASS(aPrefix, aName) michael@0: */ michael@0: michael@0: // BasicEvents.h michael@0: NS_ROOT_EVENT_CLASS(Widget, Event) michael@0: NS_EVENT_CLASS(Widget, GUIEvent) michael@0: NS_EVENT_CLASS(Widget, InputEvent) michael@0: NS_EVENT_CLASS(Internal, UIEvent) michael@0: michael@0: // TextEvents.h michael@0: NS_EVENT_CLASS(Widget, KeyboardEvent) michael@0: NS_EVENT_CLASS(Widget, TextEvent) michael@0: NS_EVENT_CLASS(Widget, CompositionEvent) michael@0: NS_EVENT_CLASS(Widget, QueryContentEvent) michael@0: NS_EVENT_CLASS(Widget, SelectionEvent) michael@0: NS_EVENT_CLASS(Internal, EditorInputEvent) michael@0: michael@0: // MouseEvents.h michael@0: NS_EVENT_CLASS(Widget, MouseEventBase) michael@0: NS_EVENT_CLASS(Widget, MouseEvent) michael@0: NS_EVENT_CLASS(Widget, DragEvent) michael@0: NS_EVENT_CLASS(Widget, MouseScrollEvent) michael@0: NS_EVENT_CLASS(Widget, WheelEvent) michael@0: NS_EVENT_CLASS(Widget, PointerEvent) michael@0: michael@0: // TouchEvents.h michael@0: NS_EVENT_CLASS(Widget, GestureNotifyEvent) michael@0: NS_EVENT_CLASS(Widget, SimpleGestureEvent) michael@0: NS_EVENT_CLASS(Widget, TouchEvent) michael@0: michael@0: // ContentEvents.h michael@0: NS_EVENT_CLASS(Internal, ScrollPortEvent) michael@0: NS_EVENT_CLASS(Internal, ScrollAreaEvent) michael@0: NS_EVENT_CLASS(Internal, FormEvent) michael@0: NS_EVENT_CLASS(Internal, ClipboardEvent) michael@0: NS_EVENT_CLASS(Internal, FocusEvent) michael@0: NS_EVENT_CLASS(Internal, TransitionEvent) michael@0: NS_EVENT_CLASS(Internal, AnimationEvent) michael@0: michael@0: // MiscEvents.h michael@0: NS_EVENT_CLASS(Widget, CommandEvent) michael@0: NS_EVENT_CLASS(Widget, ContentCommandEvent) michael@0: NS_EVENT_CLASS(Widget, PluginEvent) michael@0: michael@0: // InternalMutationEvent.h (dom/events) michael@0: NS_EVENT_CLASS(Internal, MutationEvent)