| 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
handle 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, |
| 75 // Internal use. |
| 76 MoveByDragDrop, // Combines |InsertFromDrop| and |DeleteByDrag|. |
| 75 | 77 |
| 76 // Add new input types immediately above this line. | 78 // Add new input types immediately above this line. |
| 77 NumberOfInputTypes, | 79 NumberOfInputTypes, |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 enum EventCancelable : bool { | 82 enum EventCancelable : bool { |
| 81 NotCancelable = false, | 83 NotCancelable = false, |
| 82 IsCancelable = true, | 84 IsCancelable = true, |
| 83 }; | 85 }; |
| 84 | 86 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 explicit InputEventDispatchMediator(InputEvent*); | 128 explicit InputEventDispatchMediator(InputEvent*); |
| 127 InputEvent& event() const; | 129 InputEvent& event() const; |
| 128 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 130 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
| 129 }; | 131 }; |
| 130 | 132 |
| 131 DEFINE_EVENT_TYPE_CASTS(InputEvent); | 133 DEFINE_EVENT_TYPE_CASTS(InputEvent); |
| 132 | 134 |
| 133 } // namespace blink | 135 } // namespace blink |
| 134 | 136 |
| 135 #endif // InputEvent_h | 137 #endif // InputEvent_h |
| OLD | NEW |