UNPKG

1.96 kBJavaScriptView Raw
1/**
2 * Copyright 2013-present, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 */
10
11'use strict';
12
13/**
14 * Types of raw signals from the browser caught at the top level.
15 */
16var topLevelTypes = {
17 topAbort: null,
18 topAnimationEnd: null,
19 topAnimationIteration: null,
20 topAnimationStart: null,
21 topBlur: null,
22 topCanPlay: null,
23 topCanPlayThrough: null,
24 topChange: null,
25 topClick: null,
26 topCompositionEnd: null,
27 topCompositionStart: null,
28 topCompositionUpdate: null,
29 topContextMenu: null,
30 topCopy: null,
31 topCut: null,
32 topDoubleClick: null,
33 topDrag: null,
34 topDragEnd: null,
35 topDragEnter: null,
36 topDragExit: null,
37 topDragLeave: null,
38 topDragOver: null,
39 topDragStart: null,
40 topDrop: null,
41 topDurationChange: null,
42 topEmptied: null,
43 topEncrypted: null,
44 topEnded: null,
45 topError: null,
46 topFocus: null,
47 topInput: null,
48 topInvalid: null,
49 topKeyDown: null,
50 topKeyPress: null,
51 topKeyUp: null,
52 topLoad: null,
53 topLoadedData: null,
54 topLoadedMetadata: null,
55 topLoadStart: null,
56 topMouseDown: null,
57 topMouseMove: null,
58 topMouseOut: null,
59 topMouseOver: null,
60 topMouseUp: null,
61 topPaste: null,
62 topPause: null,
63 topPlay: null,
64 topPlaying: null,
65 topProgress: null,
66 topRateChange: null,
67 topReset: null,
68 topScroll: null,
69 topSeeked: null,
70 topSeeking: null,
71 topSelectionChange: null,
72 topStalled: null,
73 topSubmit: null,
74 topSuspend: null,
75 topTextInput: null,
76 topTimeUpdate: null,
77 topTouchCancel: null,
78 topTouchEnd: null,
79 topTouchMove: null,
80 topTouchStart: null,
81 topTransitionEnd: null,
82 topVolumeChange: null,
83 topWaiting: null,
84 topWheel: null
85};
86
87var EventConstants = {
88 topLevelTypes: topLevelTypes
89};
90
91module.exports = EventConstants;
\No newline at end of file