1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 2003
20 * the Initial Developer. All Rights Reserved.
23 * Original Author: Aaron Leventhal (aaronl@netscape.com)
25 * Alternatively, the contents of this file may be used under the terms of
26 * either of the GNU General Public License Version 2 or later (the "GPL"),
27 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
41 This file contains the list of all accessibility nsIAtoms and their values
43 It is designed to be used as inline input to nsAccessibilityAtoms.cpp *only*
44 through the magic of C preprocessing.
46 All entires must be enclosed in the macro ACCESSIBILITY_ATOM which will have cruel
47 and unusual things done to it
49 It is recommended (but not strictly necessary) to keep all entries
52 The first argument to ACCESSIBILITY_ATOM is the C++ identifier of the atom
53 The second argument is the string value of the atom
58 // Alphabetical list of generic atoms
59 ACCESSIBILITY_ATOM(_empty
, "")
60 ACCESSIBILITY_ATOM(button
, "button")
61 ACCESSIBILITY_ATOM(_false
, "false")
62 ACCESSIBILITY_ATOM(image
, "image")
63 ACCESSIBILITY_ATOM(password
, "password")
64 ACCESSIBILITY_ATOM(reset
, "reset")
65 ACCESSIBILITY_ATOM(submit
, "submit")
66 ACCESSIBILITY_ATOM(_true
, "true")
69 ACCESSIBILITY_ATOM(headerContentLanguage
, "content-language")
71 // Alphabetical list of frame types
72 ACCESSIBILITY_ATOM(areaFrame
, "AreaFrame")
73 ACCESSIBILITY_ATOM(blockFrame
, "BlockFrame")
74 ACCESSIBILITY_ATOM(boxFrame
, "BoxFrame")
75 ACCESSIBILITY_ATOM(brFrame
, "BRFrame")
76 ACCESSIBILITY_ATOM(deckFrame
, "DeckFrame")
77 ACCESSIBILITY_ATOM(inlineBlockFrame
, "InlineBlockFrame")
78 ACCESSIBILITY_ATOM(inlineFrame
, "InlineFrame")
79 ACCESSIBILITY_ATOM(objectFrame
, "ObjectFrame")
80 ACCESSIBILITY_ATOM(scrollFrame
, "ScrollFrame")
81 ACCESSIBILITY_ATOM(textFrame
, "TextFrame")
82 ACCESSIBILITY_ATOM(tableCaptionFrame
, "TableCaptionFrame")
83 ACCESSIBILITY_ATOM(tableCellFrame
, "TableCellFrame")
84 ACCESSIBILITY_ATOM(tableOuterFrame
, "TableOuterFrame")
85 ACCESSIBILITY_ATOM(tableRowGroupFrame
, "TableRowGroupFrame")
86 ACCESSIBILITY_ATOM(tableRowFrame
, "TableRowFrame")
88 // Alphabetical list of tag names
89 ACCESSIBILITY_ATOM(a
, "a")
90 ACCESSIBILITY_ATOM(abbr
, "abbr")
91 ACCESSIBILITY_ATOM(acronym
, "acronym")
92 ACCESSIBILITY_ATOM(area
, "area")
93 ACCESSIBILITY_ATOM(autocomplete
, "autocomplete")
94 ACCESSIBILITY_ATOM(blockquote
, "blockquote")
95 ACCESSIBILITY_ATOM(br
, "br")
96 ACCESSIBILITY_ATOM(body
, "body")
97 ACCESSIBILITY_ATOM(caption
, "caption") // XUL
98 ACCESSIBILITY_ATOM(choices
, "choices") // XForms
99 ACCESSIBILITY_ATOM(description
, "description") // XUL
100 ACCESSIBILITY_ATOM(dd
, "dd")
101 ACCESSIBILITY_ATOM(div
, "div")
102 ACCESSIBILITY_ATOM(dl
, "dl")
103 ACCESSIBILITY_ATOM(dt
, "dt")
104 ACCESSIBILITY_ATOM(form
, "form")
105 ACCESSIBILITY_ATOM(h1
, "h1")
106 ACCESSIBILITY_ATOM(h2
, "h2")
107 ACCESSIBILITY_ATOM(h3
, "h3")
108 ACCESSIBILITY_ATOM(h4
, "h4")
109 ACCESSIBILITY_ATOM(h5
, "h5")
110 ACCESSIBILITY_ATOM(h6
, "h6")
111 ACCESSIBILITY_ATOM(item
, "item") // XForms
112 ACCESSIBILITY_ATOM(itemset
, "itemset") // XForms
113 ACCESSIBILITY_ATOM(img
, "img")
114 ACCESSIBILITY_ATOM(input
, "input")
115 ACCESSIBILITY_ATOM(label
, "label")
116 ACCESSIBILITY_ATOM(legend
, "legend")
117 ACCESSIBILITY_ATOM(li
, "li")
118 ACCESSIBILITY_ATOM(link
, "link")
119 ACCESSIBILITY_ATOM(listcols
, "listcols") // XUL
120 ACCESSIBILITY_ATOM(listcol
, "listcol") // XUL
121 ACCESSIBILITY_ATOM(listhead
, "listhead") // XUL
122 ACCESSIBILITY_ATOM(listheader
, "listheader") // XUL
123 ACCESSIBILITY_ATOM(map
, "map")
124 ACCESSIBILITY_ATOM(math
, "math")
125 ACCESSIBILITY_ATOM(menu
, "menu") // XUL
126 ACCESSIBILITY_ATOM(menupopup
, "menupopup") // XUL
127 ACCESSIBILITY_ATOM(object
, "object")
128 ACCESSIBILITY_ATOM(ol
, "ol")
129 ACCESSIBILITY_ATOM(optgroup
, "optgroup")
130 ACCESSIBILITY_ATOM(option
, "option")
131 ACCESSIBILITY_ATOM(q
, "q")
132 ACCESSIBILITY_ATOM(select
, "select")
133 ACCESSIBILITY_ATOM(select1
, "select1") // XForms
134 ACCESSIBILITY_ATOM(svg
, "svg")
135 ACCESSIBILITY_ATOM(table
, "table")
136 ACCESSIBILITY_ATOM(tabpanels
, "tabpanels") // XUL
137 ACCESSIBILITY_ATOM(tbody
, "tbody")
138 ACCESSIBILITY_ATOM(td
, "td")
139 ACCESSIBILITY_ATOM(th
, "th")
140 ACCESSIBILITY_ATOM(tfoot
, "tfoot")
141 ACCESSIBILITY_ATOM(thead
, "thead")
142 ACCESSIBILITY_ATOM(textarea
, "textarea") // XForms
143 ACCESSIBILITY_ATOM(textbox
, "textbox") // XUL
144 ACCESSIBILITY_ATOM(toolbaritem
, "toolbaritem") // XUL
145 ACCESSIBILITY_ATOM(toolbarseparator
, "toolbarseparator") // XUL
146 ACCESSIBILITY_ATOM(toolbarspring
, "toolbarspring") // XUL
147 ACCESSIBILITY_ATOM(toolbarspacer
, "toolbarspacer") // XUL
148 ACCESSIBILITY_ATOM(tooltip
, "tooltip") // XUL
149 ACCESSIBILITY_ATOM(tr
, "tr")
150 ACCESSIBILITY_ATOM(ul
, "ul")
152 // Alphabetical list of attributes (DOM)
153 ACCESSIBILITY_ATOM(acceltext
, "acceltext")
154 ACCESSIBILITY_ATOM(accesskey
, "accesskey")
155 ACCESSIBILITY_ATOM(alt
, "alt")
156 ACCESSIBILITY_ATOM(anonid
, "anonid") // Used for ID's in XBL
157 ACCESSIBILITY_ATOM(contenteditable
, "contenteditable")
158 ACCESSIBILITY_ATOM(control
, "control")
159 ACCESSIBILITY_ATOM(disabled
, "disabled")
160 ACCESSIBILITY_ATOM(_class
, "class")
161 ACCESSIBILITY_ATOM(cycles
, "cycles") // used for XUL cycler attribute
162 ACCESSIBILITY_ATOM(curpos
, "curpos") // XUL
163 ACCESSIBILITY_ATOM(data
, "data")
164 ACCESSIBILITY_ATOM(droppable
, "droppable") // XUL combo box
165 ACCESSIBILITY_ATOM(editable
, "editable")
166 ACCESSIBILITY_ATOM(_for
, "for")
167 ACCESSIBILITY_ATOM(hidden
, "hidden") // XUL tree columns
168 ACCESSIBILITY_ATOM(href
, "href") // XUL, XLink
169 ACCESSIBILITY_ATOM(increment
, "increment") // XUL
170 ACCESSIBILITY_ATOM(lang
, "lang")
171 ACCESSIBILITY_ATOM(linkedPanel
, "linkedpanel") // XUL
172 ACCESSIBILITY_ATOM(longDesc
, "longdesc")
173 ACCESSIBILITY_ATOM(maxpos
, "maxpos") // XUL
174 ACCESSIBILITY_ATOM(minpos
, "minpos") // XUL
175 ACCESSIBILITY_ATOM(multiline
, "multiline") // XUL
176 ACCESSIBILITY_ATOM(name
, "name")
177 ACCESSIBILITY_ATOM(onclick
, "onclick")
178 ACCESSIBILITY_ATOM(readonly
, "readonly")
179 ACCESSIBILITY_ATOM(simple
, "simple") // XLink
180 ACCESSIBILITY_ATOM(src
, "src")
181 ACCESSIBILITY_ATOM(selected
, "selected")
182 ACCESSIBILITY_ATOM(summary
, "summary")
183 ACCESSIBILITY_ATOM(tabindex
, "tabindex")
184 ACCESSIBILITY_ATOM(title
, "title")
185 ACCESSIBILITY_ATOM(tooltiptext
, "tooltiptext")
186 ACCESSIBILITY_ATOM(type
, "type")
187 ACCESSIBILITY_ATOM(value
, "value")
189 // Alphabetical list of object attributes
190 ACCESSIBILITY_ATOM(display
, "display")
191 ACCESSIBILITY_ATOM(textAlign
, "text-align")
192 ACCESSIBILITY_ATOM(textIndent
, "text-indent")
194 // Alphabetical list of text attributes (AT API)
195 ACCESSIBILITY_ATOM(backgroundColor
, "background-color")
196 ACCESSIBILITY_ATOM(invalid
, "invalid")
197 ACCESSIBILITY_ATOM(language
, "language")
199 // ARIA (DHTML accessibility) attributes
200 // Also add to nsARIAMap.cpp and nsARIAMap.h
201 // ARIA role attribute
202 ACCESSIBILITY_ATOM(role
, "role")
203 ACCESSIBILITY_ATOM(aria_activedescendant
, "aria-activedescendant")
204 ACCESSIBILITY_ATOM(aria_atomic
, "aria-atomic")
205 ACCESSIBILITY_ATOM(aria_autocomplete
, "aria-autocomplete")
206 ACCESSIBILITY_ATOM(aria_busy
, "aria-busy")
207 ACCESSIBILITY_ATOM(aria_channel
, "aria-channel")
208 ACCESSIBILITY_ATOM(aria_checked
, "aria-checked")
209 ACCESSIBILITY_ATOM(aria_controls
, "aria-controls")
210 ACCESSIBILITY_ATOM(aria_datatype
, "aria-datatype")
211 ACCESSIBILITY_ATOM(aria_describedby
, "aria-describedby")
212 ACCESSIBILITY_ATOM(aria_droppable
, "aria-droppable")
213 ACCESSIBILITY_ATOM(aria_disabled
, "aria-disabled")
214 ACCESSIBILITY_ATOM(aria_dropeffect
, "aria-dropeffect")
215 ACCESSIBILITY_ATOM(aria_expanded
, "aria-expanded")
216 ACCESSIBILITY_ATOM(aria_flowto
, "aria-flowto")
217 ACCESSIBILITY_ATOM(aria_grab
, "aria-grab")
218 ACCESSIBILITY_ATOM(aria_haspopup
, "aria-haspopup")
219 ACCESSIBILITY_ATOM(aria_invalid
, "aria-invalid")
220 ACCESSIBILITY_ATOM(aria_label
, "aria-label")
221 ACCESSIBILITY_ATOM(aria_labelledby
, "aria-labelledby")
222 ACCESSIBILITY_ATOM(aria_level
, "aria-level")
223 ACCESSIBILITY_ATOM(aria_live
, "aria-live")
224 ACCESSIBILITY_ATOM(aria_multiline
, "aria-multiline")
225 ACCESSIBILITY_ATOM(aria_multiselectable
, "aria-multiselectable")
226 ACCESSIBILITY_ATOM(aria_owns
, "aria-owns")
227 ACCESSIBILITY_ATOM(aria_posinset
, "aria-posinset")
228 ACCESSIBILITY_ATOM(aria_pressed
, "aria-pressed")
229 ACCESSIBILITY_ATOM(aria_readonly
, "aria-readonly")
230 ACCESSIBILITY_ATOM(aria_relevant
, "aria-relevant")
231 ACCESSIBILITY_ATOM(aria_required
, "aria-required")
232 ACCESSIBILITY_ATOM(aria_selected
, "aria-selected")
233 ACCESSIBILITY_ATOM(aria_setsize
, "aria-setsize")
234 ACCESSIBILITY_ATOM(aria_sort
, "aria-sort")
235 ACCESSIBILITY_ATOM(aria_valuenow
, "aria-valuenow")
236 ACCESSIBILITY_ATOM(aria_valuemin
, "aria-valuemin")
237 ACCESSIBILITY_ATOM(aria_valuemax
, "aria-valuemax")
238 ACCESSIBILITY_ATOM(aria_valuetext
, "aria-valuetext")
241 // a form property used to obtain the default label
242 // of an HTML button from the button frame
243 ACCESSIBILITY_ATOM(defaultLabel
, "defaultLabel")
246 ACCESSIBILITY_ATOM(tableCellIndex
, "table-cell-index")
247 ACCESSIBILITY_ATOM(containerAtomic
, "container-atomic")
248 ACCESSIBILITY_ATOM(containerBusy
, "container-busy")
249 ACCESSIBILITY_ATOM(containerChannel
, "container-channel")
250 ACCESSIBILITY_ATOM(containerLive
, "container-live")
251 ACCESSIBILITY_ATOM(containerRelevant
, "container-relevant")
252 ACCESSIBILITY_ATOM(level
, "level")
253 ACCESSIBILITY_ATOM(lineNumber
, "line-number")
254 ACCESSIBILITY_ATOM(posinset
, "posinset")
255 ACCESSIBILITY_ATOM(setsize
, "setsize")