accessible/public/nsIAccessibleRole.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsISupports.idl"
michael@0 7
michael@0 8 /**
michael@0 9 * Defines cross platform (Gecko) roles.
michael@0 10 */
michael@0 11 [scriptable, uuid(50db5e86-9a45-4637-a5c3-4ff148c33270)]
michael@0 12 interface nsIAccessibleRole : nsISupports
michael@0 13 {
michael@0 14 /**
michael@0 15 * Used when accessible hans't strong defined role.
michael@0 16 */
michael@0 17 const unsigned long ROLE_NOTHING = 0;
michael@0 18
michael@0 19 /**
michael@0 20 * Represents a title or caption bar for a window. It is used by MSAA only,
michael@0 21 * supported automatically by MS Windows.
michael@0 22 */
michael@0 23 const unsigned long ROLE_TITLEBAR = 1;
michael@0 24
michael@0 25 /**
michael@0 26 * Represents the menu bar (positioned beneath the title bar of a window)
michael@0 27 * from which menus are selected by the user. The role is used by
michael@0 28 * xul:menubar or role="menubar".
michael@0 29 */
michael@0 30 const unsigned long ROLE_MENUBAR = 2;
michael@0 31
michael@0 32 /**
michael@0 33 * Represents a vertical or horizontal scroll bar, which is part of the client
michael@0 34 * area or used in a control.
michael@0 35 */
michael@0 36 const unsigned long ROLE_SCROLLBAR = 3;
michael@0 37
michael@0 38 /**
michael@0 39 * Represents a special mouse pointer, which allows a user to manipulate user
michael@0 40 * interface elements such as windows. For example, a user clicks and drags
michael@0 41 * a sizing grip in the lower-right corner of a window to resize it.
michael@0 42 */
michael@0 43 const unsigned long ROLE_GRIP = 4;
michael@0 44
michael@0 45 /**
michael@0 46 * Represents a system sound, which is associated with various system events.
michael@0 47 */
michael@0 48 const unsigned long ROLE_SOUND = 5;
michael@0 49
michael@0 50 /**
michael@0 51 * Represents the system mouse pointer.
michael@0 52 */
michael@0 53 const unsigned long ROLE_CURSOR = 6;
michael@0 54
michael@0 55 /**
michael@0 56 * Represents the system caret. The role is supported for caret.
michael@0 57 */
michael@0 58 const unsigned long ROLE_CARET = 7;
michael@0 59
michael@0 60 /**
michael@0 61 * Represents an alert or a condition that a user should be notified about.
michael@0 62 * Assistive Technologies typically respond to the role by reading the entire
michael@0 63 * onscreen contents of containers advertising this role. Should be used for
michael@0 64 * warning dialogs, etc. The role is used by xul:browsermessage,
michael@0 65 * role="alert".
michael@0 66 */
michael@0 67 const unsigned long ROLE_ALERT = 8;
michael@0 68
michael@0 69 /**
michael@0 70 * Represents the window frame, which contains child objects such as
michael@0 71 * a title bar, client, and other objects contained in a window. The role
michael@0 72 * is supported automatically by MS Windows.
michael@0 73 */
michael@0 74 const unsigned long ROLE_WINDOW = 9;
michael@0 75
michael@0 76 /**
michael@0 77 * A sub-document (<frame> or <iframe>)
michael@0 78 */
michael@0 79 const unsigned long ROLE_INTERNAL_FRAME = 10;
michael@0 80
michael@0 81 /**
michael@0 82 * Represents a menu, which presents a list of options from which the user can
michael@0 83 * make a selection to perform an action. It is used for role="menu".
michael@0 84 */
michael@0 85 const unsigned long ROLE_MENUPOPUP = 11;
michael@0 86
michael@0 87 /**
michael@0 88 * Represents a menu item, which is an entry in a menu that a user can choose
michael@0 89 * to carry out a command, select an option. It is used for xul:menuitem,
michael@0 90 * role="menuitem".
michael@0 91 */
michael@0 92 const unsigned long ROLE_MENUITEM = 12;
michael@0 93
michael@0 94 /**
michael@0 95 * Represents a ToolTip that provides helpful hints.
michael@0 96 */
michael@0 97 const unsigned long ROLE_TOOLTIP = 13;
michael@0 98
michael@0 99 /**
michael@0 100 * Represents a main window for an application. It is used for
michael@0 101 * role="application". Also refer to ROLE_APP_ROOT
michael@0 102 */
michael@0 103 const unsigned long ROLE_APPLICATION = 14;
michael@0 104
michael@0 105 /**
michael@0 106 * Represents a document window. A document window is always contained within
michael@0 107 * an application window. It is used for role="document".
michael@0 108 */
michael@0 109 const unsigned long ROLE_DOCUMENT = 15;
michael@0 110
michael@0 111 /**
michael@0 112 * Represents a pane within a frame or document window. Users can navigate
michael@0 113 * between panes and within the contents of the current pane, but cannot
michael@0 114 * navigate between items in different panes. Thus, panes represent a level
michael@0 115 * of grouping lower than frame windows or documents, but above individual
michael@0 116 * controls. It is used for the first child of a <frame> or <iframe>.
michael@0 117 */
michael@0 118 const unsigned long ROLE_PANE = 16;
michael@0 119
michael@0 120 /**
michael@0 121 * Represents a graphical image used to represent data.
michael@0 122 */
michael@0 123 const unsigned long ROLE_CHART = 17;
michael@0 124
michael@0 125 /**
michael@0 126 * Represents a dialog box or message box. It is used for xul:dialog,
michael@0 127 * role="dialog".
michael@0 128 */
michael@0 129 const unsigned long ROLE_DIALOG = 18;
michael@0 130
michael@0 131 /**
michael@0 132 * Represents a window border.
michael@0 133 */
michael@0 134 const unsigned long ROLE_BORDER = 19;
michael@0 135
michael@0 136 /**
michael@0 137 * Logically groups other objects. There is not always a parent-child
michael@0 138 * relationship between the grouping object and the objects it contains. It
michael@0 139 * is used for html:textfield, xul:groupbox, role="group".
michael@0 140 */
michael@0 141 const unsigned long ROLE_GROUPING = 20;
michael@0 142
michael@0 143 /**
michael@0 144 * Used to visually divide a space into two regions, such as a separator menu
michael@0 145 * item or a bar that divides split panes within a window. It is used for
michael@0 146 * xul:separator, html:hr, role="separator".
michael@0 147 */
michael@0 148 const unsigned long ROLE_SEPARATOR = 21;
michael@0 149
michael@0 150 /**
michael@0 151 * Represents a toolbar, which is a grouping of controls (push buttons or
michael@0 152 * toggle buttons) that provides easy access to frequently used features. It
michael@0 153 * is used for xul:toolbar, role="toolbar".
michael@0 154 */
michael@0 155 const unsigned long ROLE_TOOLBAR = 22;
michael@0 156
michael@0 157 /**
michael@0 158 * Represents a status bar, which is an area at the bottom of a window that
michael@0 159 * displays information about the current operation, state of the application,
michael@0 160 * or selected object. The status bar has multiple fields, which display
michael@0 161 * different kinds of information. It is used for xul:statusbar.
michael@0 162 */
michael@0 163 const unsigned long ROLE_STATUSBAR = 23;
michael@0 164
michael@0 165 /**
michael@0 166 * Represents a table that contains rows and columns of cells, and optionally,
michael@0 167 * row headers and column headers. It is used for html:table,
michael@0 168 * role="grid". Also refer to the following roles: ROLE_COLUMNHEADER,
michael@0 169 * ROLE_ROWHEADER, ROLE_COLUMN, ROLE_ROW, ROLE_CELL.
michael@0 170 */
michael@0 171 const unsigned long ROLE_TABLE = 24;
michael@0 172
michael@0 173 /**
michael@0 174 * Represents a column header, providing a visual label for a column in
michael@0 175 * a table. It is used for XUL tree column headers, html:th,
michael@0 176 * role="colheader". Also refer to ROLE_TABLE.
michael@0 177 */
michael@0 178 const unsigned long ROLE_COLUMNHEADER = 25;
michael@0 179
michael@0 180 /**
michael@0 181 * Represents a row header, which provides a visual label for a table row.
michael@0 182 * It is used for role="rowheader". Also, see ROLE_TABLE.
michael@0 183 */
michael@0 184 const unsigned long ROLE_ROWHEADER = 26;
michael@0 185
michael@0 186 /**
michael@0 187 * Represents a column of cells within a table. Also, see ROLE_TABLE.
michael@0 188 */
michael@0 189 const unsigned long ROLE_COLUMN = 27;
michael@0 190
michael@0 191 /**
michael@0 192 * Represents a row of cells within a table. Also, see ROLE_TABLE.
michael@0 193 */
michael@0 194 const unsigned long ROLE_ROW = 28;
michael@0 195
michael@0 196 /**
michael@0 197 * Represents a cell within a table. It is used for html:td,
michael@0 198 * xul:tree cell and xul:listcell. Also, see ROLE_TABLE.
michael@0 199 */
michael@0 200 const unsigned long ROLE_CELL = 29;
michael@0 201
michael@0 202 /**
michael@0 203 * Represents a link to something else. This object might look like text or
michael@0 204 * a graphic, but it acts like a button. It is used for
michael@0 205 * xul:label@class="text-link", html:a, html:area.
michael@0 206 */
michael@0 207 const unsigned long ROLE_LINK = 30;
michael@0 208
michael@0 209 /**
michael@0 210 * Displays a Help topic in the form of a ToolTip or Help balloon.
michael@0 211 */
michael@0 212 const unsigned long ROLE_HELPBALLOON = 31;
michael@0 213
michael@0 214 /**
michael@0 215 * Represents a cartoon-like graphic object, such as Microsoft Office
michael@0 216 * Assistant, which is displayed to provide help to users of an application.
michael@0 217 */
michael@0 218 const unsigned long ROLE_CHARACTER = 32;
michael@0 219
michael@0 220 /**
michael@0 221 * Represents a list box, allowing the user to select one or more items. It
michael@0 222 * is used for xul:listbox, html:select@size, role="list". See also
michael@0 223 * ROLE_LIST_ITEM.
michael@0 224 */
michael@0 225 const unsigned long ROLE_LIST = 33;
michael@0 226
michael@0 227 /**
michael@0 228 * Represents an item in a list. See also ROLE_LIST.
michael@0 229 */
michael@0 230 const unsigned long ROLE_LISTITEM = 34;
michael@0 231
michael@0 232 /**
michael@0 233 * Represents an outline or tree structure, such as a tree view control,
michael@0 234 * that displays a hierarchical list and allows the user to expand and
michael@0 235 * collapse branches. Is is used for role="tree".
michael@0 236 */
michael@0 237 const unsigned long ROLE_OUTLINE = 35;
michael@0 238
michael@0 239 /**
michael@0 240 * Represents an item in an outline or tree structure. It is used for
michael@0 241 * role="treeitem".
michael@0 242 */
michael@0 243 const unsigned long ROLE_OUTLINEITEM = 36;
michael@0 244
michael@0 245 /**
michael@0 246 * Represents a page tab, it is a child of a page tab list. It is used for
michael@0 247 * xul:tab, role="treeitem". Also refer to ROLE_PAGETABLIST.
michael@0 248 */
michael@0 249 const unsigned long ROLE_PAGETAB = 37;
michael@0 250
michael@0 251 /**
michael@0 252 * Represents a property sheet. It is used for xul:tabpanel,
michael@0 253 * role="tabpanel".
michael@0 254 */
michael@0 255 const unsigned long ROLE_PROPERTYPAGE = 38;
michael@0 256
michael@0 257 /**
michael@0 258 * Represents an indicator, such as a pointer graphic, that points to the
michael@0 259 * current item.
michael@0 260 */
michael@0 261 const unsigned long ROLE_INDICATOR = 39;
michael@0 262
michael@0 263 /**
michael@0 264 * Represents a picture. Is is used for xul:image, html:img.
michael@0 265 */
michael@0 266 const unsigned long ROLE_GRAPHIC = 40;
michael@0 267
michael@0 268 /**
michael@0 269 * Represents read-only text, such as labels for other controls or
michael@0 270 * instructions in a dialog box. Static text cannot be modified or selected.
michael@0 271 * Is is used for xul:label, xul:description, html:label, role="label".
michael@0 272 */
michael@0 273 const unsigned long ROLE_STATICTEXT = 41;
michael@0 274
michael@0 275 /**
michael@0 276 * Represents selectable text that allows edits or is designated read-only.
michael@0 277 */
michael@0 278 const unsigned long ROLE_TEXT_LEAF = 42;
michael@0 279
michael@0 280 /**
michael@0 281 * Represents a push button control. It is used for xul:button, html:button,
michael@0 282 * role="button".
michael@0 283 */
michael@0 284 const unsigned long ROLE_PUSHBUTTON = 43;
michael@0 285
michael@0 286 /**
michael@0 287 * Represents a check box control. It is used for xul:checkbox,
michael@0 288 * html:input@type="checkbox", role="checkbox".
michael@0 289 */
michael@0 290 const unsigned long ROLE_CHECKBUTTON = 44;
michael@0 291
michael@0 292 /**
michael@0 293 * Represents an option button, also called a radio button. It is one of a
michael@0 294 * group of mutually exclusive options. All objects sharing a single parent
michael@0 295 * that have this attribute are assumed to be part of single mutually
michael@0 296 * exclusive group. It is used for xul:radio, html:input@type="radio",
michael@0 297 * role="radio".
michael@0 298 */
michael@0 299 const unsigned long ROLE_RADIOBUTTON = 45;
michael@0 300
michael@0 301 /**
michael@0 302 * Represents a combo box; an edit control with an associated list box that
michael@0 303 * provides a set of predefined choices. It is used for html:select,
michael@0 304 * xul:menulist, role="combobox".
michael@0 305 */
michael@0 306 const unsigned long ROLE_COMBOBOX = 46;
michael@0 307
michael@0 308 /**
michael@0 309 * Represents the calendar control.
michael@0 310 */
michael@0 311 const unsigned long ROLE_DROPLIST = 47;
michael@0 312
michael@0 313 /**
michael@0 314 * Represents a progress bar, dynamically showing the user the percent
michael@0 315 * complete of an operation in progress. It is used for xul:progressmeter,
michael@0 316 * role="progressbar".
michael@0 317 */
michael@0 318 const unsigned long ROLE_PROGRESSBAR = 48;
michael@0 319
michael@0 320 /**
michael@0 321 * Represents a dial or knob whose purpose is to allow a user to set a value.
michael@0 322 */
michael@0 323 const unsigned long ROLE_DIAL = 49;
michael@0 324
michael@0 325 /**
michael@0 326 * Represents a hot-key field that allows the user to enter a combination or
michael@0 327 * sequence of keystrokes.
michael@0 328 */
michael@0 329 const unsigned long ROLE_HOTKEYFIELD = 50;
michael@0 330
michael@0 331 /**
michael@0 332 * Represents a slider, which allows the user to adjust a setting in given
michael@0 333 * increments between minimum and maximum values. It is used by xul:scale,
michael@0 334 * role="slider".
michael@0 335 */
michael@0 336 const unsigned long ROLE_SLIDER = 51;
michael@0 337
michael@0 338 /**
michael@0 339 * Represents a spin box, which is a control that allows the user to increment
michael@0 340 * or decrement the value displayed in a separate "buddy" control associated
michael@0 341 * with the spin box. It is used for xul:spinbuttons.
michael@0 342 */
michael@0 343 const unsigned long ROLE_SPINBUTTON = 52;
michael@0 344
michael@0 345 /**
michael@0 346 * Represents a graphical image used to diagram data. It is used for svg:svg.
michael@0 347 */
michael@0 348 const unsigned long ROLE_DIAGRAM = 53;
michael@0 349
michael@0 350 /**
michael@0 351 * Represents an animation control, which contains content that changes over
michael@0 352 * time, such as a control that displays a series of bitmap frames.
michael@0 353 */
michael@0 354 const unsigned long ROLE_ANIMATION = 54;
michael@0 355
michael@0 356 /**
michael@0 357 * Represents a mathematical equation. It is used by MATHML, where there is a
michael@0 358 * rich DOM subtree for an equation. Use ROLE_FLAT_EQUATION for <img role="math" alt="[TeX]"/>
michael@0 359 */
michael@0 360 const unsigned long ROLE_EQUATION = 55;
michael@0 361
michael@0 362 /**
michael@0 363 * Represents a button that drops down a list of items.
michael@0 364 */
michael@0 365 const unsigned long ROLE_BUTTONDROPDOWN = 56;
michael@0 366
michael@0 367 /**
michael@0 368 * Represents a button that drops down a menu.
michael@0 369 */
michael@0 370 const unsigned long ROLE_BUTTONMENU = 57;
michael@0 371
michael@0 372 /**
michael@0 373 * Represents a button that drops down a grid. It is used for xul:colorpicker.
michael@0 374 */
michael@0 375 const unsigned long ROLE_BUTTONDROPDOWNGRID = 58;
michael@0 376
michael@0 377 /**
michael@0 378 * Represents blank space between other objects.
michael@0 379 */
michael@0 380 const unsigned long ROLE_WHITESPACE = 59;
michael@0 381
michael@0 382 /**
michael@0 383 * Represents a container of page tab controls. Is it used for xul:tabs,
michael@0 384 * DHTML: role="tabs". Also refer to ROLE_PAGETAB.
michael@0 385 */
michael@0 386 const unsigned long ROLE_PAGETABLIST = 60;
michael@0 387
michael@0 388 /**
michael@0 389 * Represents a control that displays time.
michael@0 390 */
michael@0 391 const unsigned long ROLE_CLOCK = 61;
michael@0 392
michael@0 393 /**
michael@0 394 * Represents a button on a toolbar that has a drop-down list icon directly
michael@0 395 * adjacent to the button.
michael@0 396 */
michael@0 397 const unsigned long ROLE_SPLITBUTTON = 62;
michael@0 398
michael@0 399 /**
michael@0 400 * Represents an edit control designed for an Internet Protocol (IP) address.
michael@0 401 * The edit control is divided into sections for the different parts of the
michael@0 402 * IP address.
michael@0 403 */
michael@0 404 const unsigned long ROLE_IPADDRESS = 63;
michael@0 405
michael@0 406 /**
michael@0 407 * Represents a label control that has an accelerator.
michael@0 408 */
michael@0 409 const unsigned long ROLE_ACCEL_LABEL = 64;
michael@0 410
michael@0 411 /**
michael@0 412 * Represents an arrow in one of the four cardinal directions.
michael@0 413 */
michael@0 414 const unsigned long ROLE_ARROW = 65;
michael@0 415
michael@0 416 /**
michael@0 417 * Represents a control that can be drawn into and is used to trap events.
michael@0 418 * It is used for html:canvas.
michael@0 419 */
michael@0 420 const unsigned long ROLE_CANVAS = 66;
michael@0 421
michael@0 422 /**
michael@0 423 * Represents a menu item with a check box.
michael@0 424 */
michael@0 425 const unsigned long ROLE_CHECK_MENU_ITEM = 67;
michael@0 426
michael@0 427 /**
michael@0 428 * Represents a specialized dialog that lets the user choose a color.
michael@0 429 */
michael@0 430 const unsigned long ROLE_COLOR_CHOOSER = 68;
michael@0 431
michael@0 432 /**
michael@0 433 * Represents control whose purpose is to allow a user to edit a date.
michael@0 434 */
michael@0 435 const unsigned long ROLE_DATE_EDITOR = 69;
michael@0 436
michael@0 437 /**
michael@0 438 * An iconified internal frame in an ROLE_DESKTOP_PANE. Also refer to
michael@0 439 * ROLE_INTERNAL_FRAME.
michael@0 440 */
michael@0 441 const unsigned long ROLE_DESKTOP_ICON = 70;
michael@0 442
michael@0 443 /**
michael@0 444 * A desktop pane. A pane that supports internal frames and iconified
michael@0 445 * versions of those internal frames.
michael@0 446 */
michael@0 447 const unsigned long ROLE_DESKTOP_FRAME = 71;
michael@0 448
michael@0 449 /**
michael@0 450 * A directory pane. A pane that allows the user to navigate through
michael@0 451 * and select the contents of a directory. May be used by a file chooser.
michael@0 452 * Also refer to ROLE_FILE_CHOOSER.
michael@0 453 */
michael@0 454 const unsigned long ROLE_DIRECTORY_PANE = 72;
michael@0 455
michael@0 456 /**
michael@0 457 * A file chooser. A specialized dialog that displays the files in the
michael@0 458 * directory and lets the user select a file, browse a different directory,
michael@0 459 * or specify a filename. May use the directory pane to show the contents of
michael@0 460 * a directory. Also refer to ROLE_DIRECTORY_PANE.
michael@0 461 */
michael@0 462 const unsigned long ROLE_FILE_CHOOSER = 73;
michael@0 463
michael@0 464 /**
michael@0 465 * A font chooser. A font chooser is a component that lets the user pick
michael@0 466 * various attributes for fonts.
michael@0 467 */
michael@0 468 const unsigned long ROLE_FONT_CHOOSER = 74;
michael@0 469
michael@0 470 /**
michael@0 471 * Frame role. A top level window with a title bar, border, menu bar, etc.
michael@0 472 * It is often used as the primary window for an application.
michael@0 473 */
michael@0 474 const unsigned long ROLE_CHROME_WINDOW = 75;
michael@0 475
michael@0 476 /**
michael@0 477 * A glass pane. A pane that is guaranteed to be painted on top of all
michael@0 478 * panes beneath it. Also refer to ROLE_ROOT_PANE.
michael@0 479 */
michael@0 480 const unsigned long ROLE_GLASS_PANE = 76;
michael@0 481
michael@0 482 /**
michael@0 483 * A document container for HTML, whose children represent the document
michael@0 484 * content.
michael@0 485 */
michael@0 486 const unsigned long ROLE_HTML_CONTAINER = 77;
michael@0 487
michael@0 488 /**
michael@0 489 * A small fixed size picture, typically used to decorate components.
michael@0 490 */
michael@0 491 const unsigned long ROLE_ICON = 78;
michael@0 492
michael@0 493 /**
michael@0 494 * Presents an icon or short string in an interface.
michael@0 495 */
michael@0 496 const unsigned long ROLE_LABEL = 79;
michael@0 497
michael@0 498 /**
michael@0 499 * A layered pane. A specialized pane that allows its children to be drawn
michael@0 500 * in layers, providing a form of stacking order. This is usually the pane
michael@0 501 * that holds the menu bar as well as the pane that contains most of the
michael@0 502 * visual components in a window. Also refer to ROLE_GLASS_PANE and
michael@0 503 * ROLE_ROOT_PANE.
michael@0 504 */
michael@0 505 const unsigned long ROLE_LAYERED_PANE = 80;
michael@0 506
michael@0 507 /**
michael@0 508 * A specialized pane whose primary use is inside a dialog.
michael@0 509 */
michael@0 510 const unsigned long ROLE_OPTION_PANE = 81;
michael@0 511
michael@0 512 /**
michael@0 513 * A text object uses for passwords, or other places where the text content
michael@0 514 * is not shown visibly to the user.
michael@0 515 */
michael@0 516 const unsigned long ROLE_PASSWORD_TEXT = 82;
michael@0 517
michael@0 518 /**
michael@0 519 * A temporary window that is usually used to offer the user a list of
michael@0 520 * choices, and then hides when the user selects one of those choices.
michael@0 521 */
michael@0 522 const unsigned long ROLE_POPUP_MENU = 83;
michael@0 523
michael@0 524 /**
michael@0 525 * A radio button that is a menu item.
michael@0 526 */
michael@0 527 const unsigned long ROLE_RADIO_MENU_ITEM = 84;
michael@0 528
michael@0 529 /**
michael@0 530 * A root pane. A specialized pane that has a glass pane and a layered pane
michael@0 531 * as its children. Also refer to ROLE_GLASS_PANE and ROLE_LAYERED_PANE.
michael@0 532 */
michael@0 533 const unsigned long ROLE_ROOT_PANE = 85;
michael@0 534
michael@0 535 /**
michael@0 536 * A scroll pane. An object that allows a user to incrementally view a large
michael@0 537 * amount of information. Its children can include scroll bars and a
michael@0 538 * viewport. Also refer to ROLE_VIEW_PORT.
michael@0 539 */
michael@0 540 const unsigned long ROLE_SCROLL_PANE = 86;
michael@0 541
michael@0 542 /**
michael@0 543 * A split pane. A specialized panel that presents two other panels at the
michael@0 544 * same time. Between the two panels is a divider the user can manipulate to
michael@0 545 * make one panel larger and the other panel smaller.
michael@0 546 */
michael@0 547 const unsigned long ROLE_SPLIT_PANE = 87;
michael@0 548
michael@0 549 /**
michael@0 550 * The header for a column of a table.
michael@0 551 * XXX: it looks this role is dupe of ROLE_COLUMNHEADER.
michael@0 552 */
michael@0 553 const unsigned long ROLE_TABLE_COLUMN_HEADER = 88;
michael@0 554
michael@0 555 /**
michael@0 556 * The header for a row of a table.
michael@0 557 * XXX: it looks this role is dupe of ROLE_ROWHEADER
michael@0 558 */
michael@0 559 const unsigned long ROLE_TABLE_ROW_HEADER = 89;
michael@0 560
michael@0 561 /**
michael@0 562 * A menu item used to tear off and reattach its menu.
michael@0 563 */
michael@0 564 const unsigned long ROLE_TEAR_OFF_MENU_ITEM = 90;
michael@0 565
michael@0 566 /**
michael@0 567 * Represents an accessible terminal.
michael@0 568 */
michael@0 569 const unsigned long ROLE_TERMINAL = 91;
michael@0 570
michael@0 571 /**
michael@0 572 * Collection of objects that constitute a logical text entity.
michael@0 573 */
michael@0 574 const unsigned long ROLE_TEXT_CONTAINER = 92;
michael@0 575
michael@0 576 /**
michael@0 577 * A toggle button. A specialized push button that can be checked or
michael@0 578 * unchecked, but does not provide a separate indicator for the current state.
michael@0 579 */
michael@0 580 const unsigned long ROLE_TOGGLE_BUTTON = 93;
michael@0 581
michael@0 582 /**
michael@0 583 * Representas a control that is capable of expanding and collapsing rows as
michael@0 584 * well as showing multiple columns of data.
michael@0 585 * XXX: it looks like this role is dupe of ROLE_OUTLINE.
michael@0 586 */
michael@0 587 const unsigned long ROLE_TREE_TABLE = 94;
michael@0 588
michael@0 589 /**
michael@0 590 * A viewport. An object usually used in a scroll pane. It represents the
michael@0 591 * portion of the entire data that the user can see. As the user manipulates
michael@0 592 * the scroll bars, the contents of the viewport can change. Also refer to
michael@0 593 * ROLE_SCROLL_PANE.
michael@0 594 */
michael@0 595 const unsigned long ROLE_VIEWPORT = 95;
michael@0 596
michael@0 597 /**
michael@0 598 * Header of a document page. Also refer to ROLE_FOOTER.
michael@0 599 */
michael@0 600 const unsigned long ROLE_HEADER = 96;
michael@0 601
michael@0 602 /**
michael@0 603 * Footer of a document page. Also refer to ROLE_HEADER.
michael@0 604 */
michael@0 605 const unsigned long ROLE_FOOTER = 97;
michael@0 606
michael@0 607 /**
michael@0 608 * A paragraph of text.
michael@0 609 */
michael@0 610 const unsigned long ROLE_PARAGRAPH = 98;
michael@0 611
michael@0 612 /**
michael@0 613 * A ruler such as those used in word processors.
michael@0 614 */
michael@0 615 const unsigned long ROLE_RULER = 99;
michael@0 616
michael@0 617 /**
michael@0 618 * A text entry having dialog or list containing items for insertion into
michael@0 619 * an entry widget, for instance a list of words for completion of a
michael@0 620 * text entry. It is used for xul:textbox@autocomplete
michael@0 621 */
michael@0 622 const unsigned long ROLE_AUTOCOMPLETE = 100;
michael@0 623
michael@0 624 /**
michael@0 625 * An editable text object in a toolbar.
michael@0 626 */
michael@0 627 const unsigned long ROLE_EDITBAR = 101;
michael@0 628
michael@0 629 /**
michael@0 630 * An control whose textual content may be entered or modified by the user.
michael@0 631 */
michael@0 632 const unsigned long ROLE_ENTRY = 102;
michael@0 633
michael@0 634 /**
michael@0 635 * A caption describing another object.
michael@0 636 */
michael@0 637 const unsigned long ROLE_CAPTION = 103;
michael@0 638
michael@0 639 /**
michael@0 640 * A visual frame or container which contains a view of document content.
michael@0 641 * Document frames may occur within another Document instance, in which case
michael@0 642 * the second document may be said to be embedded in the containing instance.
michael@0 643 * HTML frames are often ROLE_DOCUMENT_FRAME. Either this object, or a
michael@0 644 * singleton descendant, should implement the Document interface.
michael@0 645 */
michael@0 646 const unsigned long ROLE_DOCUMENT_FRAME = 104;
michael@0 647
michael@0 648 /**
michael@0 649 * Heading.
michael@0 650 */
michael@0 651 const unsigned long ROLE_HEADING = 105;
michael@0 652
michael@0 653 /**
michael@0 654 * An object representing a page of document content. It is used in documents
michael@0 655 * which are accessed by the user on a page by page basis.
michael@0 656 */
michael@0 657 const unsigned long ROLE_PAGE = 106;
michael@0 658
michael@0 659 /**
michael@0 660 * A container of document content. An example of the use of this role is to
michael@0 661 * represent an html:div.
michael@0 662 */
michael@0 663 const unsigned long ROLE_SECTION = 107;
michael@0 664
michael@0 665 /**
michael@0 666 * An object which is redundant with another object in the accessible
michael@0 667 * hierarchy. ATs typically ignore objects with this role.
michael@0 668 */
michael@0 669 const unsigned long ROLE_REDUNDANT_OBJECT = 108;
michael@0 670
michael@0 671 /**
michael@0 672 * A container of form controls. An example of the use of this role is to
michael@0 673 * represent an html:form.
michael@0 674 */
michael@0 675 const unsigned long ROLE_FORM = 109;
michael@0 676
michael@0 677 /**
michael@0 678 * An object which is used to allow input of characters not found on a
michael@0 679 * keyboard, such as the input of Chinese characters on a Western keyboard.
michael@0 680 */
michael@0 681 const unsigned long ROLE_IME = 110;
michael@0 682
michael@0 683 /**
michael@0 684 * XXX: document this.
michael@0 685 */
michael@0 686 const unsigned long ROLE_APP_ROOT = 111;
michael@0 687
michael@0 688 /**
michael@0 689 * Represents a menu item, which is an entry in a menu that a user can choose
michael@0 690 * to display another menu.
michael@0 691 */
michael@0 692 const unsigned long ROLE_PARENT_MENUITEM = 112;
michael@0 693
michael@0 694 /**
michael@0 695 * A calendar that allows the user to select a date.
michael@0 696 */
michael@0 697 const unsigned long ROLE_CALENDAR = 113;
michael@0 698
michael@0 699 /**
michael@0 700 * A list of items that is shown by combobox.
michael@0 701 */
michael@0 702 const unsigned long ROLE_COMBOBOX_LIST = 114;
michael@0 703
michael@0 704 /**
michael@0 705 * A item of list that is shown by combobox;
michael@0 706 */
michael@0 707 const unsigned long ROLE_COMBOBOX_OPTION = 115;
michael@0 708
michael@0 709 /**
michael@0 710 * An image map -- has child links representing the areas
michael@0 711 */
michael@0 712 const unsigned long ROLE_IMAGE_MAP = 116;
michael@0 713
michael@0 714 /**
michael@0 715 * An option in a listbox
michael@0 716 */
michael@0 717 const unsigned long ROLE_OPTION = 117;
michael@0 718
michael@0 719 /**
michael@0 720 * A rich option in a listbox, it can have other widgets as children
michael@0 721 */
michael@0 722 const unsigned long ROLE_RICH_OPTION = 118;
michael@0 723
michael@0 724 /**
michael@0 725 * A list of options
michael@0 726 */
michael@0 727 const unsigned long ROLE_LISTBOX = 119;
michael@0 728
michael@0 729 /**
michael@0 730 * Represents a mathematical equation in the accessible name
michael@0 731 */
michael@0 732 const unsigned long ROLE_FLAT_EQUATION = 120;
michael@0 733
michael@0 734 /**
michael@0 735 * Represents a cell within a grid. It is used for role="gridcell". Unlike
michael@0 736 * ROLE_CELL, it allows the calculation of the accessible name from subtree.
michael@0 737 * Also, see ROLE_TABLE.
michael@0 738 */
michael@0 739 const unsigned long ROLE_GRID_CELL = 121;
michael@0 740
michael@0 741 /**
michael@0 742 * Represents an embedded object. It is used for html:object or html:embed.
michael@0 743 */
michael@0 744 const unsigned long ROLE_EMBEDDED_OBJECT = 122;
michael@0 745
michael@0 746 /**
michael@0 747 * A note. Originally intended to be hidden until activated, but now also used
michael@0 748 * for things like html 'aside'.
michael@0 749 */
michael@0 750 const unsigned long ROLE_NOTE = 123;
michael@0 751
michael@0 752 /**
michael@0 753 * A figure. Used for things like HTML5 figure element.
michael@0 754 */
michael@0 755 const unsigned long ROLE_FIGURE = 124;
michael@0 756
michael@0 757 /**
michael@0 758 * Represents a rich item with a check box.
michael@0 759 */
michael@0 760 const unsigned long ROLE_CHECK_RICH_OPTION = 125;
michael@0 761
michael@0 762 /**
michael@0 763 * An HTML definition list <dl>
michael@0 764 */
michael@0 765 const unsigned long ROLE_DEFINITION_LIST = 126;
michael@0 766
michael@0 767 /**
michael@0 768 * An HTML definition term <dt>
michael@0 769 */
michael@0 770 const unsigned long ROLE_TERM = 127;
michael@0 771
michael@0 772 /**
michael@0 773 * An HTML definition <dd>
michael@0 774 */
michael@0 775 const unsigned long ROLE_DEFINITION = 128;
michael@0 776
michael@0 777 /**
michael@0 778 * A keyboard or keypad key.
michael@0 779 */
michael@0 780 const unsigned long ROLE_KEY = 129;
michael@0 781 };

mercurial