Merge mozilla-central to autoland on a CLOSED TREE
[gecko.git] / dom / events / InputTypeList.h
blobac5cee25543395f64570b480afe4662c1f4ce3bd
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /**
8 * This header file defines all inputType values which are used for DOM
9 * InputEvent.inputType.
10 * You must define NS_DEFINE_INPUTTYPE macro before including this.
12 * It must have two arguments, (aCPPName, aDOMName)
13 * aCPPName is usable name for a part of C++ constants.
14 * aDOMName is the actual value declared by the specs:
15 * Level 1:
16 * https://rawgit.com/w3c/input-events/v1/index.html#interface-InputEvent-Attributes
17 * Level 2:
18 * https://w3c.github.io/input-events/index.html#interface-InputEvent-Attributes
21 NS_DEFINE_INPUTTYPE(InsertText, "insertText")
22 NS_DEFINE_INPUTTYPE(InsertReplacementText, "insertReplacementText")
23 NS_DEFINE_INPUTTYPE(InsertLineBreak, "insertLineBreak")
24 NS_DEFINE_INPUTTYPE(InsertParagraph, "insertParagraph")
25 NS_DEFINE_INPUTTYPE(InsertOrderedList, "insertOrderedList")
26 NS_DEFINE_INPUTTYPE(InsertUnorderedList, "insertUnorderedList")
27 NS_DEFINE_INPUTTYPE(InsertHorizontalRule, "insertHorizontalRule")
28 NS_DEFINE_INPUTTYPE(InsertFromYank, "insertFromYank")
29 NS_DEFINE_INPUTTYPE(InsertFromDrop, "insertFromDrop")
30 NS_DEFINE_INPUTTYPE(InsertFromPaste, "insertFromPaste")
31 NS_DEFINE_INPUTTYPE(InsertFromPasteAsQuotation, "insertFromPasteAsQuotation")
32 NS_DEFINE_INPUTTYPE(InsertTranspose, "insertTranspose")
33 NS_DEFINE_INPUTTYPE(InsertCompositionText, "insertCompositionText")
34 NS_DEFINE_INPUTTYPE(InsertFromComposition,
35 "insertFromComposition") // Level 2
36 NS_DEFINE_INPUTTYPE(InsertLink, "insertLink")
37 NS_DEFINE_INPUTTYPE(DeleteByComposition,
38 "deleteByComposition") // Level 2
39 NS_DEFINE_INPUTTYPE(DeleteCompositionText,
40 "deleteCompositionText") // Level 2
41 NS_DEFINE_INPUTTYPE(DeleteWordBackward, "deleteWordBackward")
42 NS_DEFINE_INPUTTYPE(DeleteWordForward, "deleteWordForward")
43 NS_DEFINE_INPUTTYPE(DeleteSoftLineBackward, "deleteSoftLineBackward")
44 NS_DEFINE_INPUTTYPE(DeleteSoftLineForward, "deleteSoftLineForward")
45 NS_DEFINE_INPUTTYPE(DeleteEntireSoftLine, "deleteEntireSoftLine")
46 NS_DEFINE_INPUTTYPE(DeleteHardLineBackward, "deleteHardLineBackward")
47 NS_DEFINE_INPUTTYPE(DeleteHardLineForward, "deleteHardLineForward")
48 NS_DEFINE_INPUTTYPE(DeleteByDrag, "deleteByDrag")
49 NS_DEFINE_INPUTTYPE(DeleteByCut, "deleteByCut")
50 NS_DEFINE_INPUTTYPE(DeleteContent, "deleteContent")
51 NS_DEFINE_INPUTTYPE(DeleteContentBackward, "deleteContentBackward")
52 NS_DEFINE_INPUTTYPE(DeleteContentForward, "deleteContentForward")
53 NS_DEFINE_INPUTTYPE(HistoryUndo, "historyUndo")
54 NS_DEFINE_INPUTTYPE(HistoryRedo, "historyRedo")
55 NS_DEFINE_INPUTTYPE(FormatBold, "formatBold")
56 NS_DEFINE_INPUTTYPE(FormatItalic, "formatItalic")
57 NS_DEFINE_INPUTTYPE(FormatUnderline, "formatUnderline")
58 NS_DEFINE_INPUTTYPE(FormatStrikeThrough, "formatStrikeThrough")
59 NS_DEFINE_INPUTTYPE(FormatSuperscript, "formatSuperscript")
60 NS_DEFINE_INPUTTYPE(FormatSubscript, "formatSubscript")
61 NS_DEFINE_INPUTTYPE(FormatJustifyFull, "formatJustifyFull")
62 NS_DEFINE_INPUTTYPE(FormatJustifyCenter, "formatJustifyCenter")
63 NS_DEFINE_INPUTTYPE(FormatJustifyRight, "formatJustifyRight")
64 NS_DEFINE_INPUTTYPE(FormatJustifyLeft, "formatJustifyLeft")
65 NS_DEFINE_INPUTTYPE(FormatIndent, "formatIndent")
66 NS_DEFINE_INPUTTYPE(FormatOutdent, "formatOutdent")
67 NS_DEFINE_INPUTTYPE(FormatRemove, "formatRemove")
68 NS_DEFINE_INPUTTYPE(FormatSetBlockTextDirection, "formatSetBlockTextDirection")
69 NS_DEFINE_INPUTTYPE(FormatSetInlineTextDirection,
70 "formatSetInlineTextDirection")
71 NS_DEFINE_INPUTTYPE(FormatBackColor, "formatBackColor")
72 NS_DEFINE_INPUTTYPE(FormatFontColor, "formatFontColor")
73 NS_DEFINE_INPUTTYPE(FormatFontName, "formatFontName")