OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef InputEvent_h | 5 #ifndef InputEvent_h |
6 #define InputEvent_h | 6 #define InputEvent_h |
7 | 7 |
8 #include "core/clipboard/DataTransfer.h" | 8 #include "core/clipboard/DataTransfer.h" |
9 #include "core/dom/StaticRange.h" | 9 #include "core/dom/StaticRange.h" |
10 #include "core/events/InputEventInit.h" | 10 #include "core/events/InputEventInit.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 None, | 25 None, |
26 // Insertion. | 26 // Insertion. |
27 InsertText, | 27 InsertText, |
28 InsertNonText, | 28 InsertNonText, |
29 InsertLineBreak, | 29 InsertLineBreak, |
30 InsertParagraph, | 30 InsertParagraph, |
31 InsertOrderedList, | 31 InsertOrderedList, |
32 InsertUnorderedList, | 32 InsertUnorderedList, |
33 InsertHorizontalRule, | 33 InsertHorizontalRule, |
34 InsertFromPaste, | 34 InsertFromPaste, |
| 35 InsertFromDrop, |
35 // Deletion. | 36 // Deletion. |
36 DeleteComposedCharacterForward, | 37 DeleteComposedCharacterForward, |
37 DeleteComposedCharacterBackward, | 38 DeleteComposedCharacterBackward, |
38 DeleteWordBackward, | 39 DeleteWordBackward, |
39 DeleteWordForward, | 40 DeleteWordForward, |
40 DeleteLineBackward, | 41 DeleteLineBackward, |
41 DeleteLineForward, | 42 DeleteLineForward, |
42 DeleteContentBackward, | 43 DeleteContentBackward, |
43 DeleteContentForward, | 44 DeleteContentForward, |
44 DeleteByCut, | 45 DeleteByCut, |
| 46 DeleteByDrag, |
45 // Command. | 47 // Command. |
46 Undo, | 48 Undo, |
47 Redo, | 49 Redo, |
48 // Styling. | 50 // Styling. |
49 Bold, | 51 Bold, |
50 Italic, | 52 Italic, |
51 Underline, | 53 Underline, |
52 StrikeThrough, | 54 StrikeThrough, |
53 Superscript, | 55 Superscript, |
54 Subscript, | 56 Subscript, |
55 // Formatting. | 57 // Formatting. |
56 JustifyCenter, | 58 JustifyCenter, |
57 JustifyRight, | 59 JustifyRight, |
58 JustifyLeft, | 60 JustifyLeft, |
59 Indent, | 61 Indent, |
60 Outdent, | 62 Outdent, |
61 RemoveFormat, | 63 RemoveFormat, |
62 // Not on spec. | 64 // Not on spec. |
63 // TODO(chongz): Drag is not on SPEC but it's not decided how we should hand
le it. | |
64 Drag, | |
65 JustifyFull, | 65 JustifyFull, |
66 SetColor, | 66 SetColor, |
67 SetBackgroundColor, | 67 SetBackgroundColor, |
68 SetFont, | 68 SetFont, |
69 ChangeAttributes, | 69 ChangeAttributes, |
70 SetWritingDirection, | 70 SetWritingDirection, |
71 Unscript, | 71 Unscript, |
72 CreateLink, | 72 CreateLink, |
73 Unlink, | 73 Unlink, |
74 FormatBlock, | 74 FormatBlock, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 explicit InputEventDispatchMediator(InputEvent*); | 137 explicit InputEventDispatchMediator(InputEvent*); |
138 InputEvent& event() const; | 138 InputEvent& event() const; |
139 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 139 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
140 }; | 140 }; |
141 | 141 |
142 DEFINE_EVENT_TYPE_CASTS(InputEvent); | 142 DEFINE_EVENT_TYPE_CASTS(InputEvent); |
143 | 143 |
144 } // namespace blink | 144 } // namespace blink |
145 | 145 |
146 #endif // InputEvent_h | 146 #endif // InputEvent_h |
OLD | NEW |