Name Description Size
AnimationEvent.cpp 2300
AnimationEvent.h 1601
AsyncEventDispatcher.cpp mozilla::AsyncEventDispatcher **************************************************************************** 3994
AsyncEventDispatcher.h Use AsyncEventDispatcher to fire a DOM event that requires safe a stable DOM. For example, you may need to fire an event from within layout, but want to ensure that the event handler doesn't mutate the DOM at the wrong time, in order to avoid resulting instability. 5804
BeforeUnloadEvent.cpp 958
BeforeUnloadEvent.h 1498
Clipboard.cpp is external 8285
Clipboard.h 2897
ClipboardEvent.cpp 3279
ClipboardEvent.h 1647
CommandEvent.cpp 1333
CommandEvent.h 1282
CompositionEvent.cpp 4021
CompositionEvent.h 2045
ConstructibleEventTarget.cpp 669
ConstructibleEventTarget.h 1142
ContentEventHandler.cpp / /* ContentEventHandler::RawRange 112036
ContentEventHandler.h Query Content Event Handler ContentEventHandler is a helper class for EventStateManager. The platforms request some content informations, e.g., the selected text, the offset of the selected text and the text for specified range. This class answers to NS_QUERY_* events from actual contents. 19343
crashtests 20
CustomEvent.cpp 3112
CustomEvent.h 1688
DataTransfer.cpp 54215
DataTransfer.h 19685
DataTransferItem.cpp static 17622
DataTransferItem.h mozilla_dom_DataTransferItem_h 4034
DataTransferItemList.cpp 19053
DataTransferItemList.h 5027
DeviceMotionEvent.cpp DeviceMotionEvent *************************************************************************** 5903
DeviceMotionEvent.h 4560
DOMEventTargetHelper.cpp 9682
DOMEventTargetHelper.h 8202
DragEvent.cpp 4186
DragEvent.h 2063
Event.cpp A derived class might want to allocate its own type of aEvent (derived from WidgetEvent). To do this, it should take care to pass a non-nullptr aEvent to this ctor, e.g.: FooEvent::FooEvent(..., WidgetEvent* aEvent) : Event(..., aEvent ? aEvent : new WidgetEvent()) Then, to override the mEventIsInternal assignments done by the base ctor, it should do this in its own ctor: FooEvent::FooEvent(..., WidgetEvent* aEvent) ... { ... if (aEvent) { mEventIsInternal = false; } else { mEventIsInternal = true; } ... } 26397
Event.h 13076
EventDispatcher.cpp 52616
EventDispatcher.h About event dispatching: When either EventDispatcher::Dispatch or EventDispatcher::DispatchDOMEvent is called an event target chain is created. EventDispatcher creates the chain by calling GetEventTargetParent on each event target and the creation continues until either the mCanHandle member of the EventChainPreVisitor object is false or the mParentTarget does not point to a new target. The event target chain is created in the heap. If the event needs retargeting, mEventTargetAtParent must be set in GetEventTargetParent. The capture, target and bubble phases of the event dispatch are handled by iterating through the event target chain. Iteration happens twice, first for the default event group and then for the system event group. While dispatching the event for the system event group PostHandleEvent is called right after calling event listener for the current event target. 13342
EventListenerManager.cpp 62609
EventListenerManager.h Event listener manager 22549
EventListenerService.cpp mozilla::EventListenerChange **************************************************************************** 12651
EventListenerService.h 3321
EventNameList.h This file contains the list of event names that are exposed via IDL on various objects. It is designed to be used as inline input to various consumers through the magic of C preprocessing. Each entry consists of 4 pieces of information: 1) The name of the event 2) The event message 3) The event type (see the EventNameType enum in nsContentUtils.h) 4) The event struct type for this event. Items 2-4 might be empty strings for events for which they don't make sense. Event names that are exposed as content attributes on HTML elements and as IDL attributes on Elements, Documents and Windows and have no forwarding behavior should be enclosed in the EVENT macro. Event names that are exposed as content attributes on HTML elements and as IDL attributes on Elements, Documents and Windows and are forwarded from <body> and <frameset> to the Window should be enclosed in the FORWARDED_EVENT macro. If this macro is not defined, it will be defined to be equivalent to EVENT. Event names that are exposed as IDL attributes on Windows only should be enclosed in the WINDOW_ONLY_EVENT macro. If this macro is not defined, it will be defined to the empty string. Event names that are exposed as content and IDL attributes on <body> and <frameset>, which forward them to the Window, and are exposed as IDL attributes on the Window should be enclosed in the WINDOW_EVENT macro. If this macro is not defined, it will be defined to be equivalent to WINDOW_ONLY_EVENT. Touch-specific event names should be enclosed in TOUCH_EVENT. They are otherwise equivalent to those enclosed in EVENT. If TOUCH_EVENT is not defined, it will be defined to the empty string. Event names that are only exposed as IDL attributes on Documents should be enclosed in the DOCUMENT_ONLY_EVENT macro. If this macro is not defined, it will be defined to the empty string. Event names that are not exposed as IDL attributes at all should be enclosed in NON_IDL_EVENT. If NON_IDL_EVENT is not defined, it will be defined to the empty string. If you change which macros event names are enclosed in, please update the tests for bug 689564 and bug 659350 as needed. 27090
EventStateManager.cpp / /* mozilla::UITimerCallback 237965
EventStateManager.h The PreHandleEvent method is called before event dispatch to either the DOM or frames. Any processing which must not be prevented or cancelled should occur here. Any processing which is intended to be conditional based on either DOM or frame processing should occur in PostHandleEvent. Any centralized event processing which must occur before DOM or frame event handling should occur here as well. aOverrideClickTarget can be used to indicate which element should be used as the *up target when deciding whether to send click event. This is used when releasing pointer capture. Otherwise null. 55723
EventStates.h EventStates is the class used to represent the event states of nsIContent instances. These states are calculated by IntrinsicState() and ContentStatesChanged() has to be called when one of them changes thus informing the layout/style engine of the change. Event states are associated with pseudo-classes. 14102
EventTarget.cpp static 6622
EventTarget.h This method allows addition of event listeners represented by nsIDOMEventListener, with almost the same semantics as the standard AddEventListener. The one difference is that it just has a "use capture" boolean, not an EventListenerOptions. 12245
FocusEvent.cpp 2360
FocusEvent.h 1779
ImageCaptureError.cpp 1502
ImageCaptureError.h This is the implementation of ImageCaptureError on W3C specification https://dvcs.w3.org/hg/dap/raw-file/default/media-stream-capture/ImageCapture.html#idl-def-ImageCaptureError. This object should be generated by ImageCapture object only. 1647
IMEContentObserver.cpp mozilla::IMEContentObserver **************************************************************************** 77046
IMEContentObserver.h OnSelectionChange() is called when selection is changed in the editor. 19063
IMEStateManager.cpp When a method is called, log its arguments and/or related static variables with LogLevel::Info. However, if it puts too many logs like OnDestroyPresContext(), should long only when the method actually does something. In this case, the log should start with "<method name>". When a method quits due to unexpected situation, log the reason with LogLevel::Error. In this case, the log should start with "<method name>(), FAILED". The indent makes the log look easier. When a method does something only in some situations and it may be important for debug, log the information with LogLevel::Debug. In this case, the log should start with " <method name>(),". 75495
IMEStateManager.h IMEStateManager manages InputContext (e.g., active editor type, IME enabled state and IME open state) of nsIWidget instances, manages IMEContentObserver and provides useful API for IME. 15225
InputEvent.cpp 4383
InputEvent.h 1980
InputTypeList.h This header file defines all inputType values which are used for DOM InputEvent.inputType. You must define NS_DEFINE_INPUTTYPE macro before including this. It must have two arguments, (aCPPName, aDOMName) aCPPName is usable name for a part of C++ constants. aDOMName is the actual value declared by the specs: Level 1: https://rawgit.com/w3c/input-events/v1/index.html#interface-InputEvent-Attributes Level 2: https://w3c.github.io/input-events/index.html#interface-InputEvent-Attributes 3907
InternalMutationEvent.h 2293
JSEventHandler.cpp 7719
JSEventHandler.h Implemented by script event listeners. Used to retrieve the script object corresponding to the event target and the handler itself. Note, mTarget is a raw pointer and the owner of the JSEventHandler object is expected to call Disconnect()! 6596
KeyboardEvent.cpp 14813
KeyboardEvent.h ComputeTraditionalKeyCode() computes traditional keyCode value. I.e., returns 0 if this event should return non-zero from CharCode(). In spite of the name containing "traditional", this computes spoof keyCode value if user wants it. @param aKeyboardEvent Should be |*mEvent->AsKeyboardEvent()|. @param aCallerType Set caller type of KeyCode() or CharCode(). @return If traditional charCode value is 0, returns the raw keyCode value or spoof keyCode value. Otherwise, 0. 5326
KeyNameList.h This header file defines all DOM key name which are used for DOM KeyboardEvent.key. You must define NS_DEFINE_KEYNAME macro before including this. It must have two arguments, (aCPPName, aDOMKeyName) aCPPName is usable name for a part of C++ constants. aDOMKeyName is the actual value. 18640
MessageEvent.cpp static 5646
MessageEvent.h Implements the MessageEvent event, used for cross-document messaging and server-sent events. See http://www.whatwg.org/specs/web-apps/current-work/#messageevent for further details. 3244
MouseEvent.cpp 11462
MouseEvent.h 3861
MouseScrollEvent.cpp 2571
MouseScrollEvent.h 1792
moz.build 4137
MutationEvent.cpp 2873
MutationEvent.h 1818
NotifyPaintEvent.cpp 4179
NotifyPaintEvent.h 2459
nsIEventListenerService.idl Contains an event target along with a count of event listener changes affecting accessibility. 4130
PaintRequest.cpp mozilla::dom::PaintRequest *************************************************************************** 2183
PaintRequest.h 2308
PendingFullscreenEvent.h Class for dispatching a fullscreen event. It should be queued and invoked as part of "run the fullscreen steps" algorithm. 1914
PhysicalKeyCodeNameList.h This header file defines all DOM code name which are used for DOM KeyboardEvent.code. You must define NS_DEFINE_PHYSICAL_KEY_CODE_NAME macro before including this. It must have two arguments, (aCPPName, aDOMCodeName) aCPPName is usable name for a part of C++ constants. aDOMCodeName is the actual value. 11245
PointerEvent.cpp 10192
PointerEvent.h 2485
PointerEventHandler.cpp static 24265
PointerEventHandler.h GetPointerCapturingContent returns a target content which captures the pointer. It's applied to mouse or pointer event (except mousedown and pointerdown). When capturing, return the content. Otherwise, nullptr. @param aEvent A mouse event or pointer event which may be captured. @return Target content for aEvent. 7840
RemoteDragStartData.cpp aHidden = 3183
RemoteDragStartData.h This class is used to hold information about a drag when a drag begins in a content process. 1779
ScrollAreaEvent.cpp 2967
ScrollAreaEvent.h 2058
SimpleGestureEvent.cpp 3344
SimpleGestureEvent.h 2186
SpeechRecognitionError.cpp 1622
SpeechRecognitionError.h 1739
StorageEvent.cpp 3065
StorageEvent.h 2415
test 198
TextClause.cpp 1526
TextClause.h 1662
TextComposition.cpp TextComposition **************************************************************************** 35268
TextComposition.h TextComposition represents a text composition. This class stores the composition event target and its presContext. At dispatching the event via this class, the instances use the stored event target. 24305
Touch.cpp 6193
Touch.h 3295
TouchEvent.cpp TouchList *************************************************************************** 12633
TouchEvent.h 4291
TransitionEvent.cpp 2370
TransitionEvent.h 1626
UIEvent.cpp 11096
UIEvent.h 3404
VirtualKeyCodeList.h This header file defines all DOM keys which are defined in KeyboardEvent. You must define NS_DEFINE_VK macro before including this. It must have two arguments, (aDOMKeyName, aDOMKeyCode) aDOMKeyName is a key name in DOM. aDOMKeyCode is one of mozilla::dom::KeyboardEvent_Binding::DOM_VK_*. Optionally, you can define NS_DISALLOW_SAME_KEYCODE. If NS_DISALLOW_SAME_KEYCODE is defined, same keyCode won't listed up. This is useful when you create switch-case statement. 6849
WheelEvent.cpp 4361
WheelEvent.h 2343
WheelHandlingHelper.cpp / /* mozilla::DeltaValues 30131
WheelHandlingHelper.h DeltaValues stores two delta values which are along X and Y axis. This is useful for arguments and results of some methods. 16699
XULCommandEvent.cpp 2518
XULCommandEvent.h 2069