EventClassList.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. * This header file lists up all event classes and related structs.
  7. * Define NS_EVENT_CLASS(aPrefix, aName) and NS_ROOT_EVENT_CLASS(aPrefix, aName)
  8. * before including this.
  9. * If an event name is WidgetInputEvent, aPrefix is "Widget" and aName is
  10. * "InputEvent". NS_ROOT_EVENT_CLASS() is only used for WidgetEvent for
  11. * allowing special handling for it. If you don't need such special handling,
  12. * you can define it as:
  13. * #define NS_ROOT_EVENT_CLASS(aPrefix, aName) NS_EVENT_CLASS(aPrefix, aName)
  14. */
  15. // BasicEvents.h
  16. NS_ROOT_EVENT_CLASS(Widget, Event)
  17. NS_EVENT_CLASS(Widget, GUIEvent)
  18. NS_EVENT_CLASS(Widget, InputEvent)
  19. NS_EVENT_CLASS(Internal, UIEvent)
  20. // TextEvents.h
  21. NS_EVENT_CLASS(Widget, KeyboardEvent)
  22. NS_EVENT_CLASS(Widget, CompositionEvent)
  23. NS_EVENT_CLASS(Widget, QueryContentEvent)
  24. NS_EVENT_CLASS(Widget, SelectionEvent)
  25. NS_EVENT_CLASS(Internal, EditorInputEvent)
  26. NS_EVENT_CLASS(Internal, BeforeAfterKeyboardEvent)
  27. // MouseEvents.h
  28. NS_EVENT_CLASS(Widget, MouseEventBase)
  29. NS_EVENT_CLASS(Widget, MouseEvent)
  30. NS_EVENT_CLASS(Widget, DragEvent)
  31. NS_EVENT_CLASS(Widget, MouseScrollEvent)
  32. NS_EVENT_CLASS(Widget, WheelEvent)
  33. NS_EVENT_CLASS(Widget, PointerEvent)
  34. // TouchEvents.h
  35. NS_EVENT_CLASS(Widget, GestureNotifyEvent)
  36. NS_EVENT_CLASS(Widget, SimpleGestureEvent)
  37. NS_EVENT_CLASS(Widget, TouchEvent)
  38. // ContentEvents.h
  39. NS_EVENT_CLASS(Internal, ScrollPortEvent)
  40. NS_EVENT_CLASS(Internal, ScrollAreaEvent)
  41. NS_EVENT_CLASS(Internal, FormEvent)
  42. NS_EVENT_CLASS(Internal, ClipboardEvent)
  43. NS_EVENT_CLASS(Internal, FocusEvent)
  44. NS_EVENT_CLASS(Internal, TransitionEvent)
  45. NS_EVENT_CLASS(Internal, AnimationEvent)
  46. NS_EVENT_CLASS(Internal, SVGZoomEvent)
  47. NS_EVENT_CLASS(Internal, SMILTimeEvent)
  48. // MiscEvents.h
  49. NS_EVENT_CLASS(Widget, CommandEvent)
  50. NS_EVENT_CLASS(Widget, ContentCommandEvent)
  51. NS_EVENT_CLASS(Widget, PluginEvent)
  52. // InternalMutationEvent.h (dom/events)
  53. NS_EVENT_CLASS(Internal, MutationEvent)