michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * Usage: declare the macro ROLE()with the following arguments: michael@0: * ROLE(geckoRole, stringRole, atkRole, macRole, msaaRole, ia2Role, nameRule) michael@0: */ michael@0: michael@0: ROLE(NOTHING, michael@0: "nothing", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_UNKNOWN, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(TITLEBAR, michael@0: "titlebar", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, //Irrelevant on OS X; windows are always native. michael@0: ROLE_SYSTEM_TITLEBAR, michael@0: ROLE_SYSTEM_TITLEBAR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(MENUBAR, michael@0: "menubar", michael@0: ATK_ROLE_MENU_BAR, michael@0: NSAccessibilityMenuBarRole, //Irrelevant on OS X; the menubar will always be native and on the top of the screen. michael@0: ROLE_SYSTEM_MENUBAR, michael@0: ROLE_SYSTEM_MENUBAR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SCROLLBAR, michael@0: "scrollbar", michael@0: ATK_ROLE_SCROLL_BAR, michael@0: NSAccessibilityScrollBarRole, //We might need to make this its own mozAccessible, to support the children objects (valueindicator, down/up buttons). michael@0: ROLE_SYSTEM_SCROLLBAR, michael@0: ROLE_SYSTEM_SCROLLBAR, michael@0: eNameFromValueRule) michael@0: michael@0: ROLE(GRIP, michael@0: "grip", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilitySplitterRole, michael@0: ROLE_SYSTEM_GRIP, michael@0: ROLE_SYSTEM_GRIP, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SOUND, michael@0: "sound", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, //Unused on OS X. michael@0: ROLE_SYSTEM_SOUND, michael@0: ROLE_SYSTEM_SOUND, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CURSOR, michael@0: "cursor", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, //Unused on OS X. michael@0: ROLE_SYSTEM_CURSOR, michael@0: ROLE_SYSTEM_CURSOR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CARET, michael@0: "caret", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, //Unused on OS X. michael@0: ROLE_SYSTEM_CARET, michael@0: ROLE_SYSTEM_CARET, michael@0: eNoNameRule) michael@0: michael@0: ROLE(ALERT, michael@0: "alert", michael@0: ATK_ROLE_ALERT, michael@0: NSAccessibilityWindowRole, michael@0: ROLE_SYSTEM_ALERT, michael@0: ROLE_SYSTEM_ALERT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(WINDOW, michael@0: "window", michael@0: ATK_ROLE_WINDOW, michael@0: NSAccessibilityWindowRole, //Irrelevant on OS X; all window a11y is handled by the system. michael@0: ROLE_SYSTEM_WINDOW, michael@0: ROLE_SYSTEM_WINDOW, michael@0: eNoNameRule) michael@0: michael@0: ROLE(INTERNAL_FRAME, michael@0: "internal frame", michael@0: ATK_ROLE_INTERNAL_FRAME, michael@0: NSAccessibilityScrollAreaRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_INTERNAL_FRAME, michael@0: eNoNameRule) michael@0: michael@0: ROLE(MENUPOPUP, michael@0: "menupopup", michael@0: ATK_ROLE_MENU, michael@0: NSAccessibilityMenuRole, //The parent of menuitems. michael@0: ROLE_SYSTEM_MENUPOPUP, michael@0: ROLE_SYSTEM_MENUPOPUP, michael@0: eNoNameRule) michael@0: michael@0: ROLE(MENUITEM, michael@0: "menuitem", michael@0: ATK_ROLE_MENU_ITEM, michael@0: NSAccessibilityMenuItemRole, michael@0: ROLE_SYSTEM_MENUITEM, michael@0: ROLE_SYSTEM_MENUITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(TOOLTIP, michael@0: "tooltip", michael@0: ATK_ROLE_TOOL_TIP, michael@0: @"AXHelpTag", //10.4+ only, so we re-define the constant. michael@0: ROLE_SYSTEM_TOOLTIP, michael@0: ROLE_SYSTEM_TOOLTIP, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(APPLICATION, michael@0: "application", michael@0: ATK_ROLE_EMBEDDED, michael@0: NSAccessibilityGroupRole, //Unused on OS X. the system will take care of this. michael@0: ROLE_SYSTEM_APPLICATION, michael@0: ROLE_SYSTEM_APPLICATION, michael@0: eNoNameRule) michael@0: michael@0: ROLE(DOCUMENT, michael@0: "document", michael@0: ATK_ROLE_DOCUMENT_FRAME, michael@0: @"AXWebArea", michael@0: ROLE_SYSTEM_DOCUMENT, michael@0: ROLE_SYSTEM_DOCUMENT, michael@0: eNoNameRule) michael@0: michael@0: /** michael@0: * msaa comment: michael@0: * We used to map to ROLE_SYSTEM_PANE, but JAWS would michael@0: * not read the accessible name for the contaning pane. michael@0: * However, JAWS will read the accessible name for a groupbox. michael@0: * By mapping a PANE to a GROUPING, we get no undesirable effects, michael@0: * but fortunately JAWS will then read the group's label, michael@0: * when an inner control gets focused. michael@0: */ michael@0: ROLE(PANE, michael@0: "pane", michael@0: ATK_ROLE_PANEL, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_GROUPING, michael@0: ROLE_SYSTEM_GROUPING, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CHART, michael@0: "chart", michael@0: ATK_ROLE_CHART, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_CHART, michael@0: ROLE_SYSTEM_CHART, michael@0: eNoNameRule) michael@0: michael@0: ROLE(DIALOG, michael@0: "dialog", michael@0: ATK_ROLE_DIALOG, michael@0: NSAccessibilityWindowRole, //There's a dialog subrole. michael@0: ROLE_SYSTEM_DIALOG, michael@0: ROLE_SYSTEM_DIALOG, michael@0: eNoNameRule) michael@0: michael@0: ROLE(BORDER, michael@0: "border", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, //Unused on OS X. michael@0: ROLE_SYSTEM_BORDER, michael@0: ROLE_SYSTEM_BORDER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(GROUPING, michael@0: "grouping", michael@0: ATK_ROLE_PANEL, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_GROUPING, michael@0: ROLE_SYSTEM_GROUPING, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SEPARATOR, michael@0: "separator", michael@0: ATK_ROLE_SEPARATOR, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_SEPARATOR, michael@0: ROLE_SYSTEM_SEPARATOR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(TOOLBAR, michael@0: "toolbar", michael@0: ATK_ROLE_TOOL_BAR, michael@0: NSAccessibilityToolbarRole, michael@0: ROLE_SYSTEM_TOOLBAR, michael@0: ROLE_SYSTEM_TOOLBAR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(STATUSBAR, michael@0: "statusbar", michael@0: ATK_ROLE_STATUSBAR, michael@0: NSAccessibilityUnknownRole, //Doesn't exist on OS X (a status bar is its parts; a progressbar, a label, etc.) michael@0: ROLE_SYSTEM_STATUSBAR, michael@0: ROLE_SYSTEM_STATUSBAR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(TABLE, michael@0: "table", michael@0: ATK_ROLE_TABLE, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_TABLE, michael@0: ROLE_SYSTEM_TABLE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(COLUMNHEADER, michael@0: "columnheader", michael@0: ATK_ROLE_COLUMN_HEADER, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_COLUMNHEADER, michael@0: ROLE_SYSTEM_COLUMNHEADER, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(ROWHEADER, michael@0: "rowheader", michael@0: ATK_ROLE_ROW_HEADER, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_ROWHEADER, michael@0: ROLE_SYSTEM_ROWHEADER, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(COLUMN, michael@0: "column", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityColumnRole, michael@0: ROLE_SYSTEM_COLUMN, michael@0: ROLE_SYSTEM_COLUMN, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(ROW, michael@0: "row", michael@0: ATK_ROLE_TABLE_ROW, michael@0: NSAccessibilityRowRole, michael@0: ROLE_SYSTEM_ROW, michael@0: ROLE_SYSTEM_ROW, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(CELL, michael@0: "cell", michael@0: ATK_ROLE_TABLE_CELL, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_CELL, michael@0: ROLE_SYSTEM_CELL, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(LINK, michael@0: "link", michael@0: ATK_ROLE_LINK, michael@0: @"AXLink", //10.4+ the attr first define in SDK 10.4, so we define it here too. ROLE_LINK michael@0: ROLE_SYSTEM_LINK, michael@0: ROLE_SYSTEM_LINK, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(HELPBALLOON, michael@0: "helpballoon", michael@0: ATK_ROLE_UNKNOWN, michael@0: @"AXHelpTag", michael@0: ROLE_SYSTEM_HELPBALLOON, michael@0: ROLE_SYSTEM_HELPBALLOON, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(CHARACTER, michael@0: "character", michael@0: ATK_ROLE_IMAGE, michael@0: NSAccessibilityUnknownRole, //Unused on OS X. michael@0: ROLE_SYSTEM_CHARACTER, michael@0: ROLE_SYSTEM_CHARACTER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(LIST, michael@0: "list", michael@0: ATK_ROLE_LIST, michael@0: NSAccessibilityListRole, michael@0: ROLE_SYSTEM_LIST, michael@0: ROLE_SYSTEM_LIST, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(LISTITEM, michael@0: "listitem", michael@0: ATK_ROLE_LIST_ITEM, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(OUTLINE, michael@0: "outline", michael@0: ATK_ROLE_TREE, michael@0: NSAccessibilityOutlineRole, michael@0: ROLE_SYSTEM_OUTLINE, michael@0: ROLE_SYSTEM_OUTLINE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(OUTLINEITEM, michael@0: "outlineitem", michael@0: ATK_ROLE_LIST_ITEM, michael@0: NSAccessibilityRowRole, //XXX: use OutlineRow as subrole. michael@0: ROLE_SYSTEM_OUTLINEITEM, michael@0: ROLE_SYSTEM_OUTLINEITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(PAGETAB, michael@0: "pagetab", michael@0: ATK_ROLE_PAGE_TAB, michael@0: NSAccessibilityRadioButtonRole, michael@0: ROLE_SYSTEM_PAGETAB, michael@0: ROLE_SYSTEM_PAGETAB, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(PROPERTYPAGE, michael@0: "propertypage", michael@0: ATK_ROLE_SCROLL_PANE, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_PROPERTYPAGE, michael@0: ROLE_SYSTEM_PROPERTYPAGE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(INDICATOR, michael@0: "indicator", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_INDICATOR, michael@0: ROLE_SYSTEM_INDICATOR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(GRAPHIC, michael@0: "graphic", michael@0: ATK_ROLE_IMAGE, michael@0: NSAccessibilityImageRole, michael@0: ROLE_SYSTEM_GRAPHIC, michael@0: ROLE_SYSTEM_GRAPHIC, michael@0: eNoNameRule) michael@0: michael@0: ROLE(STATICTEXT, michael@0: "statictext", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityStaticTextRole, michael@0: ROLE_SYSTEM_STATICTEXT, michael@0: ROLE_SYSTEM_STATICTEXT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(TEXT_LEAF, michael@0: "text leaf", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityStaticTextRole, michael@0: ROLE_SYSTEM_TEXT, michael@0: ROLE_SYSTEM_TEXT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(PUSHBUTTON, michael@0: "pushbutton", michael@0: ATK_ROLE_PUSH_BUTTON, michael@0: NSAccessibilityButtonRole, michael@0: ROLE_SYSTEM_PUSHBUTTON, michael@0: ROLE_SYSTEM_PUSHBUTTON, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(CHECKBUTTON, michael@0: "checkbutton", michael@0: ATK_ROLE_CHECK_BOX, michael@0: NSAccessibilityCheckBoxRole, michael@0: ROLE_SYSTEM_CHECKBUTTON, michael@0: ROLE_SYSTEM_CHECKBUTTON, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(RADIOBUTTON, michael@0: "radiobutton", michael@0: ATK_ROLE_RADIO_BUTTON, michael@0: NSAccessibilityRadioButtonRole, michael@0: ROLE_SYSTEM_RADIOBUTTON, michael@0: ROLE_SYSTEM_RADIOBUTTON, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(COMBOBOX, michael@0: "combobox", michael@0: ATK_ROLE_COMBO_BOX, michael@0: NSAccessibilityPopUpButtonRole, michael@0: ROLE_SYSTEM_COMBOBOX, michael@0: ROLE_SYSTEM_COMBOBOX, michael@0: eNameFromValueRule) michael@0: michael@0: ROLE(DROPLIST, michael@0: "droplist", michael@0: ATK_ROLE_COMBO_BOX, michael@0: NSAccessibilityPopUpButtonRole, michael@0: ROLE_SYSTEM_DROPLIST, michael@0: ROLE_SYSTEM_DROPLIST, michael@0: eNoNameRule) michael@0: michael@0: ROLE(PROGRESSBAR, michael@0: "progressbar", michael@0: ATK_ROLE_PROGRESS_BAR, michael@0: NSAccessibilityProgressIndicatorRole, michael@0: ROLE_SYSTEM_PROGRESSBAR, michael@0: ROLE_SYSTEM_PROGRESSBAR, michael@0: eNameFromValueRule) michael@0: michael@0: ROLE(DIAL, michael@0: "dial", michael@0: ATK_ROLE_DIAL, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_DIAL, michael@0: ROLE_SYSTEM_DIAL, michael@0: eNoNameRule) michael@0: michael@0: ROLE(HOTKEYFIELD, michael@0: "hotkeyfield", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_HOTKEYFIELD, michael@0: ROLE_SYSTEM_HOTKEYFIELD, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SLIDER, michael@0: "slider", michael@0: ATK_ROLE_SLIDER, michael@0: NSAccessibilitySliderRole, michael@0: ROLE_SYSTEM_SLIDER, michael@0: ROLE_SYSTEM_SLIDER, michael@0: eNameFromValueRule) michael@0: michael@0: ROLE(SPINBUTTON, michael@0: "spinbutton", michael@0: ATK_ROLE_SPIN_BUTTON, michael@0: NSAccessibilityIncrementorRole, //Subroles: Increment/Decrement. michael@0: ROLE_SYSTEM_SPINBUTTON, michael@0: ROLE_SYSTEM_SPINBUTTON, michael@0: eNameFromValueRule) michael@0: michael@0: ROLE(DIAGRAM, michael@0: "diagram", michael@0: ATK_ROLE_IMAGE, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_DIAGRAM, michael@0: ROLE_SYSTEM_DIAGRAM, michael@0: eNoNameRule) michael@0: michael@0: ROLE(ANIMATION, michael@0: "animation", michael@0: ATK_ROLE_ANIMATION, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_ANIMATION, michael@0: ROLE_SYSTEM_ANIMATION, michael@0: eNoNameRule) michael@0: michael@0: ROLE(EQUATION, michael@0: "equation", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_EQUATION, michael@0: ROLE_SYSTEM_EQUATION, michael@0: eNoNameRule) michael@0: michael@0: ROLE(BUTTONDROPDOWN, michael@0: "buttondropdown", michael@0: ATK_ROLE_PUSH_BUTTON, michael@0: NSAccessibilityPopUpButtonRole, michael@0: ROLE_SYSTEM_BUTTONDROPDOWN, michael@0: ROLE_SYSTEM_BUTTONDROPDOWN, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(BUTTONMENU, michael@0: "buttonmenu", michael@0: ATK_ROLE_PUSH_BUTTON, michael@0: NSAccessibilityMenuButtonRole, michael@0: ROLE_SYSTEM_BUTTONMENU, michael@0: ROLE_SYSTEM_BUTTONMENU, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(BUTTONDROPDOWNGRID, michael@0: "buttondropdowngrid", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_BUTTONDROPDOWNGRID, michael@0: ROLE_SYSTEM_BUTTONDROPDOWNGRID, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(WHITESPACE, michael@0: "whitespace", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_WHITESPACE, michael@0: ROLE_SYSTEM_WHITESPACE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(PAGETABLIST, michael@0: "pagetablist", michael@0: ATK_ROLE_PAGE_TAB_LIST, michael@0: NSAccessibilityTabGroupRole, michael@0: ROLE_SYSTEM_PAGETABLIST, michael@0: ROLE_SYSTEM_PAGETABLIST, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CLOCK, michael@0: "clock", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, //Unused on OS X michael@0: ROLE_SYSTEM_CLOCK, michael@0: ROLE_SYSTEM_CLOCK, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SPLITBUTTON, michael@0: "splitbutton", michael@0: ATK_ROLE_PUSH_BUTTON, michael@0: NSAccessibilityButtonRole, michael@0: ROLE_SYSTEM_SPLITBUTTON, michael@0: ROLE_SYSTEM_SPLITBUTTON, michael@0: eNoNameRule) michael@0: michael@0: ROLE(IPADDRESS, michael@0: "ipaddress", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_IPADDRESS, michael@0: ROLE_SYSTEM_IPADDRESS, michael@0: eNoNameRule) michael@0: michael@0: ROLE(ACCEL_LABEL, michael@0: "accel label", michael@0: ATK_ROLE_ACCEL_LABEL, michael@0: NSAccessibilityStaticTextRole, michael@0: ROLE_SYSTEM_STATICTEXT, michael@0: ROLE_SYSTEM_STATICTEXT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(ARROW, michael@0: "arrow", michael@0: ATK_ROLE_ARROW, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_INDICATOR, michael@0: ROLE_SYSTEM_INDICATOR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CANVAS, michael@0: "canvas", michael@0: ATK_ROLE_CANVAS, michael@0: NSAccessibilityImageRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_CANVAS, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CHECK_MENU_ITEM, michael@0: "check menu item", michael@0: ATK_ROLE_CHECK_MENU_ITEM, michael@0: NSAccessibilityMenuItemRole, michael@0: ROLE_SYSTEM_MENUITEM, michael@0: IA2_ROLE_CHECK_MENU_ITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(COLOR_CHOOSER, michael@0: "color chooser", michael@0: ATK_ROLE_COLOR_CHOOSER, michael@0: NSAccessibilityColorWellRole, michael@0: ROLE_SYSTEM_DIALOG, michael@0: IA2_ROLE_COLOR_CHOOSER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(DATE_EDITOR, michael@0: "date editor", michael@0: ATK_ROLE_DATE_EDITOR, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_DATE_EDITOR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(DESKTOP_ICON, michael@0: "desktop icon", michael@0: ATK_ROLE_DESKTOP_ICON, michael@0: NSAccessibilityImageRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_DESKTOP_ICON, michael@0: eNoNameRule) michael@0: michael@0: ROLE(DESKTOP_FRAME, michael@0: "desktop frame", michael@0: ATK_ROLE_DESKTOP_FRAME, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_DESKTOP_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(DIRECTORY_PANE, michael@0: "directory pane", michael@0: ATK_ROLE_DIRECTORY_PANE, michael@0: NSAccessibilityBrowserRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_DIRECTORY_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(FILE_CHOOSER, michael@0: "file chooser", michael@0: ATK_ROLE_FILE_CHOOSER, michael@0: NSAccessibilityUnknownRole, //Unused on OS X michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_FILE_CHOOSER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(FONT_CHOOSER, michael@0: "font chooser", michael@0: ATK_ROLE_FONT_CHOOSER, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_FONT_CHOOSER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CHROME_WINDOW, michael@0: "chrome window", michael@0: ATK_ROLE_FRAME, michael@0: NSAccessibilityGroupRole, //Contains the main Firefox UI michael@0: ROLE_SYSTEM_APPLICATION, michael@0: IA2_ROLE_FRAME, michael@0: eNoNameRule) michael@0: michael@0: ROLE(GLASS_PANE, michael@0: "glass pane", michael@0: ATK_ROLE_GLASS_PANE, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_GLASS_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(HTML_CONTAINER, michael@0: "html container", michael@0: ATK_ROLE_HTML_CONTAINER, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_UNKNOWN, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(ICON, michael@0: "icon", michael@0: ATK_ROLE_ICON, michael@0: NSAccessibilityImageRole, michael@0: ROLE_SYSTEM_PUSHBUTTON, michael@0: IA2_ROLE_ICON, michael@0: eNoNameRule) michael@0: michael@0: ROLE(LABEL, michael@0: "label", michael@0: ATK_ROLE_LABEL, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_STATICTEXT, michael@0: IA2_ROLE_LABEL, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(LAYERED_PANE, michael@0: "layered pane", michael@0: ATK_ROLE_LAYERED_PANE, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_LAYERED_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(OPTION_PANE, michael@0: "option pane", michael@0: ATK_ROLE_OPTION_PANE, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_OPTION_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(PASSWORD_TEXT, michael@0: "password text", michael@0: ATK_ROLE_PASSWORD_TEXT, michael@0: NSAccessibilityTextFieldRole, michael@0: ROLE_SYSTEM_TEXT, michael@0: ROLE_SYSTEM_TEXT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(POPUP_MENU, michael@0: "popup menu", michael@0: ATK_ROLE_POPUP_MENU, michael@0: NSAccessibilityUnknownRole, //Unused michael@0: ROLE_SYSTEM_MENUPOPUP, michael@0: ROLE_SYSTEM_MENUPOPUP, michael@0: eNoNameRule) michael@0: michael@0: ROLE(RADIO_MENU_ITEM, michael@0: "radio menu item", michael@0: ATK_ROLE_RADIO_MENU_ITEM, michael@0: NSAccessibilityMenuItemRole, michael@0: ROLE_SYSTEM_MENUITEM, michael@0: IA2_ROLE_RADIO_MENU_ITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(ROOT_PANE, michael@0: "root pane", michael@0: ATK_ROLE_ROOT_PANE, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_ROOT_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SCROLL_PANE, michael@0: "scroll pane", michael@0: ATK_ROLE_SCROLL_PANE, michael@0: NSAccessibilityScrollAreaRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_SCROLL_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SPLIT_PANE, michael@0: "split pane", michael@0: ATK_ROLE_SPLIT_PANE, michael@0: NSAccessibilitySplitGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_SPLIT_PANE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(TABLE_COLUMN_HEADER, michael@0: "table column header", michael@0: ATK_ROLE_TABLE_COLUMN_HEADER, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_COLUMNHEADER, michael@0: ROLE_SYSTEM_COLUMNHEADER, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(TABLE_ROW_HEADER, michael@0: "table row header", michael@0: ATK_ROLE_TABLE_ROW_HEADER, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_ROWHEADER, michael@0: ROLE_SYSTEM_ROWHEADER, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(TEAR_OFF_MENU_ITEM, michael@0: "tear off menu item", michael@0: ATK_ROLE_TEAR_OFF_MENU_ITEM, michael@0: NSAccessibilityMenuItemRole, michael@0: ROLE_SYSTEM_MENUITEM, michael@0: IA2_ROLE_TEAR_OFF_MENU, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(TERMINAL, michael@0: "terminal", michael@0: ATK_ROLE_TERMINAL, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_TERMINAL, michael@0: eNoNameRule) michael@0: michael@0: ROLE(TEXT_CONTAINER, michael@0: "text container", michael@0: ATK_ROLE_TEXT, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_TEXT_FRAME, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(TOGGLE_BUTTON, michael@0: "toggle button", michael@0: ATK_ROLE_TOGGLE_BUTTON, michael@0: NSAccessibilityButtonRole, michael@0: ROLE_SYSTEM_PUSHBUTTON, michael@0: IA2_ROLE_TOGGLE_BUTTON, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(TREE_TABLE, michael@0: "tree table", michael@0: ATK_ROLE_TREE_TABLE, michael@0: NSAccessibilityTableRole, michael@0: ROLE_SYSTEM_OUTLINE, michael@0: ROLE_SYSTEM_OUTLINE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(VIEWPORT, michael@0: "viewport", michael@0: ATK_ROLE_VIEWPORT, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_PANE, michael@0: IA2_ROLE_VIEW_PORT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(HEADER, michael@0: "header", michael@0: ATK_ROLE_HEADER, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_HEADER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(FOOTER, michael@0: "footer", michael@0: ATK_ROLE_FOOTER, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_FOOTER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(PARAGRAPH, michael@0: "paragraph", michael@0: ATK_ROLE_PARAGRAPH, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_PARAGRAPH, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(RULER, michael@0: "ruler", michael@0: ATK_ROLE_RULER, michael@0: @"AXRuler", //10.4+ only, so we re-define the constant. michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_RULER, michael@0: eNoNameRule) michael@0: michael@0: ROLE(AUTOCOMPLETE, michael@0: "autocomplete", michael@0: ATK_ROLE_AUTOCOMPLETE, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_COMBOBOX, michael@0: ROLE_SYSTEM_COMBOBOX, michael@0: eNoNameRule) michael@0: michael@0: ROLE(EDITBAR, michael@0: "editbar", michael@0: ATK_ROLE_EDITBAR, michael@0: NSAccessibilityTextFieldRole, michael@0: ROLE_SYSTEM_TEXT, michael@0: IA2_ROLE_EDITBAR, michael@0: eNoNameRule) michael@0: michael@0: ROLE(ENTRY, michael@0: "entry", michael@0: ATK_ROLE_ENTRY, michael@0: NSAccessibilityTextFieldRole, michael@0: ROLE_SYSTEM_TEXT, michael@0: ROLE_SYSTEM_TEXT, michael@0: eNameFromValueRule) michael@0: michael@0: ROLE(CAPTION, michael@0: "caption", michael@0: ATK_ROLE_CAPTION, michael@0: NSAccessibilityStaticTextRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_CAPTION, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(DOCUMENT_FRAME, michael@0: "document frame", michael@0: ATK_ROLE_DOCUMENT_FRAME, michael@0: NSAccessibilityScrollAreaRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_UNKNOWN, michael@0: eNoNameRule) michael@0: michael@0: ROLE(HEADING, michael@0: "heading", michael@0: ATK_ROLE_HEADING, michael@0: @"AXHeading", michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_HEADING, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(PAGE, michael@0: "page", michael@0: ATK_ROLE_PAGE, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_PAGE, michael@0: eNoNameRule) michael@0: michael@0: ROLE(SECTION, michael@0: "section", michael@0: ATK_ROLE_SECTION, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_SECTION, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(REDUNDANT_OBJECT, michael@0: "redundant object", michael@0: ATK_ROLE_REDUNDANT_OBJECT, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_REDUNDANT_OBJECT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(FORM, michael@0: "form", michael@0: ATK_ROLE_FORM, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_FORM, michael@0: eNoNameRule) michael@0: michael@0: ROLE(IME, michael@0: "ime", michael@0: ATK_ROLE_INPUT_METHOD_WINDOW, michael@0: NSAccessibilityUnknownRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_INPUT_METHOD_WINDOW, michael@0: eNoNameRule) michael@0: michael@0: ROLE(APP_ROOT, michael@0: "app root", michael@0: ATK_ROLE_APPLICATION, michael@0: NSAccessibilityUnknownRole, //Unused on OS X michael@0: ROLE_SYSTEM_APPLICATION, michael@0: ROLE_SYSTEM_APPLICATION, michael@0: eNoNameRule) michael@0: michael@0: ROLE(PARENT_MENUITEM, michael@0: "parent menuitem", michael@0: ATK_ROLE_MENU, michael@0: NSAccessibilityMenuItemRole, michael@0: ROLE_SYSTEM_MENUITEM, michael@0: ROLE_SYSTEM_MENUITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(CALENDAR, michael@0: "calendar", michael@0: ATK_ROLE_CALENDAR, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_CLIENT, michael@0: ROLE_SYSTEM_CLIENT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(COMBOBOX_LIST, michael@0: "combobox list", michael@0: ATK_ROLE_MENU, michael@0: NSAccessibilityMenuRole, michael@0: ROLE_SYSTEM_LIST, michael@0: ROLE_SYSTEM_LIST, michael@0: eNoNameRule) michael@0: michael@0: ROLE(COMBOBOX_OPTION, michael@0: "combobox option", michael@0: ATK_ROLE_MENU_ITEM, michael@0: NSAccessibilityMenuItemRole, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(IMAGE_MAP, michael@0: "image map", michael@0: ATK_ROLE_IMAGE, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_GRAPHIC, michael@0: ROLE_SYSTEM_GRAPHIC, michael@0: eNoNameRule) michael@0: michael@0: ROLE(OPTION, michael@0: "listbox option", michael@0: ATK_ROLE_LIST_ITEM, michael@0: NSAccessibilityRowRole, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(RICH_OPTION, michael@0: "listbox rich option", michael@0: ATK_ROLE_LIST_ITEM, michael@0: NSAccessibilityRowRole, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(LISTBOX, michael@0: "listbox", michael@0: ATK_ROLE_LIST_BOX, michael@0: NSAccessibilityListRole, michael@0: ROLE_SYSTEM_LIST, michael@0: ROLE_SYSTEM_LIST, michael@0: eNoNameRule) michael@0: michael@0: ROLE(FLAT_EQUATION, michael@0: "flat equation", michael@0: ATK_ROLE_UNKNOWN, michael@0: NSAccessibilityUnknownRole, michael@0: ROLE_SYSTEM_EQUATION, michael@0: ROLE_SYSTEM_EQUATION, michael@0: eNoNameRule) michael@0: michael@0: ROLE(GRID_CELL, michael@0: "gridcell", michael@0: ATK_ROLE_TABLE_CELL, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_CELL, michael@0: ROLE_SYSTEM_CELL, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(EMBEDDED_OBJECT, michael@0: "embedded object", michael@0: ATK_ROLE_PANEL, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_EMBEDDED_OBJECT, michael@0: eNoNameRule) michael@0: michael@0: ROLE(NOTE, michael@0: "note", michael@0: ATK_ROLE_SECTION, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_NOTE, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(FIGURE, michael@0: "figure", michael@0: ATK_ROLE_PANEL, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_GROUPING, michael@0: ROLE_SYSTEM_GROUPING, michael@0: eNoNameRule) michael@0: michael@0: ROLE(CHECK_RICH_OPTION, michael@0: "check rich option", michael@0: ATK_ROLE_CHECK_BOX, michael@0: NSAccessibilityCheckBoxRole, michael@0: ROLE_SYSTEM_CHECKBUTTON, michael@0: ROLE_SYSTEM_CHECKBUTTON, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(DEFINITION_LIST, michael@0: "definitionlist", michael@0: ATK_ROLE_LIST, michael@0: NSAccessibilityListRole, michael@0: ROLE_SYSTEM_LIST, michael@0: ROLE_SYSTEM_LIST, michael@0: eNameFromSubtreeIfReqRule) michael@0: michael@0: ROLE(TERM, michael@0: "term", michael@0: ATK_ROLE_LIST_ITEM, michael@0: NSAccessibilityGroupRole, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: ROLE_SYSTEM_LISTITEM, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(DEFINITION, michael@0: "definition", michael@0: ATK_ROLE_PARAGRAPH, michael@0: NSAccessibilityGroupRole, michael@0: USE_ROLE_STRING, michael@0: IA2_ROLE_PARAGRAPH, michael@0: eNameFromSubtreeRule) michael@0: michael@0: ROLE(KEY, michael@0: "key", michael@0: ATK_ROLE_PUSH_BUTTON, michael@0: NSAccessibilityButtonRole, michael@0: ROLE_SYSTEM_PUSHBUTTON, michael@0: ROLE_SYSTEM_PUSHBUTTON, michael@0: eNameFromSubtreeRule)