| Index: ui/accessibility/ax_enums.h
|
| diff --git a/ui/accessibility/ax_enums.h b/ui/accessibility/ax_enums.h
|
| index 7f543ed4aab2ac2faf3827c565abbee6a04953f8..b57b2418cbb115a7b84974cc3cab9d20dc878222 100644
|
| --- a/ui/accessibility/ax_enums.h
|
| +++ b/ui/accessibility/ax_enums.h
|
| @@ -2,11 +2,46 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef UI_ACCESSIBILITY_AX_ROLES_H_
|
| -#define UI_ACCESSIBILITY_AX_ROLES_H_
|
| +#ifndef UI_ACCESSIBILITY_AX_ENUMS_H_
|
| +#define UI_ACCESSIBILITY_AX_ENUMS_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace ui {
|
|
|
| // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h
|
| // until the Chromium and Blink trees are merged.
|
| +
|
| +enum AXEvent {
|
| + AX_EVENT_ACTIVEDESCENDANTCHANGED,
|
| + AX_EVENT_ALERT,
|
| + AX_EVENT_ARIA_ATTRIBUTE_CHANGED,
|
| + AX_EVENT_AUTOCORRECTION_OCCURED,
|
| + AX_EVENT_BLUR,
|
| + AX_EVENT_CHECKED_STATE_CHANGED,
|
| + AX_EVENT_CHILDREN_CHANGED,
|
| + AX_EVENT_FOCUS,
|
| + AX_EVENT_HIDE,
|
| + AX_EVENT_INVALID_STATUS_CHANGED,
|
| + AX_EVENT_LAYOUT_COMPLETE,
|
| + AX_EVENT_LIVE_REGION_CHANGED,
|
| + AX_EVENT_LOAD_COMPLETE,
|
| + AX_EVENT_LOCATION_CHANGED,
|
| + AX_EVENT_MENU_LIST_ITEM_SELECTED,
|
| + AX_EVENT_MENU_LIST_VALUE_CHANGED,
|
| + AX_EVENT_ROW_COLLAPSED,
|
| + AX_EVENT_ROW_COUNT_CHANGED,
|
| + AX_EVENT_ROW_EXPANDED,
|
| + AX_EVENT_SCROLLED_TO_ANCHOR,
|
| + AX_EVENT_SELECTED_CHILDREN_CHANGED,
|
| + AX_EVENT_SELECTED_TEXT_CHANGED,
|
| + AX_EVENT_SHOW,
|
| + AX_EVENT_TEXT_CHANGED,
|
| + AX_EVENT_TEXT_INSERTED,
|
| + AX_EVENT_TEXT_REMOVED,
|
| + AX_EVENT_VALUE_CHANGED
|
| +};
|
| +
|
| enum AXRole {
|
| AX_ROLE_ALERT_DIALOG = 1,
|
| AX_ROLE_ALERT,
|
| @@ -115,10 +150,186 @@ enum AXRole {
|
| AX_ROLE_TREE_ITEM,
|
| AX_ROLE_TREE,
|
| AX_ROLE_UNKNOWN,
|
| - AX_ROLE_USER_INTERFACE_TOOLTIP,
|
| + AX_ROLE_TOOLTIP,
|
| AX_ROLE_VALUE_INDICATOR,
|
| AX_ROLE_WEB_AREA,
|
| AX_ROLE_WINDOW
|
| };
|
|
|
| -#endif // UI_ACCESSIBILITY_AX_ROLES_H_
|
| +enum AXState {
|
| + AX_STATE_BUSY,
|
| + AX_STATE_CHECKED,
|
| + AX_STATE_COLLAPSED,
|
| + AX_STATE_ENABLED,
|
| + AX_STATE_EXPANDED,
|
| + AX_STATE_FOCUSABLE,
|
| + AX_STATE_FOCUSED,
|
| + AX_STATE_HASPOPUP,
|
| + AX_STATE_HOVERED,
|
| + AX_STATE_INDETERMINATE,
|
| + AX_STATE_INVISIBLE,
|
| + AX_STATE_LINKED,
|
| + AX_STATE_MULTISELECTABLE,
|
| + AX_STATE_OFFSCREEN,
|
| + AX_STATE_PRESSED,
|
| + AX_STATE_PROTECTED,
|
| + AX_STATE_READONLY,
|
| + AX_STATE_REQUIRED,
|
| + AX_STATE_SELECTABLE,
|
| + AX_STATE_SELECTED,
|
| + AX_STATE_VERTICAL,
|
| + AX_STATE_VISITED
|
| +};
|
| +
|
| +enum AXStringAttribute {
|
| + // Document attributes.
|
| + AX_ATTR_DOC_URL,
|
| + AX_ATTR_DOC_TITLE,
|
| + AX_ATTR_DOC_MIMETYPE,
|
| + AX_ATTR_DOC_DOCTYPE,
|
| +
|
| + // Attributes that could apply to any node.
|
| + AX_ATTR_ACCESS_KEY,
|
| + AX_ATTR_ACTION,
|
| + AX_ATTR_CONTAINER_LIVE_RELEVANT,
|
| + AX_ATTR_CONTAINER_LIVE_STATUS,
|
| + AX_ATTR_DESCRIPTION,
|
| + AX_ATTR_DISPLAY,
|
| + AX_ATTR_HELP,
|
| + AX_ATTR_HTML_TAG,
|
| + AX_ATTR_NAME,
|
| + AX_ATTR_LIVE_RELEVANT,
|
| + AX_ATTR_LIVE_STATUS,
|
| + AX_ATTR_ROLE,
|
| + AX_ATTR_SHORTCUT,
|
| + AX_ATTR_URL,
|
| + AX_ATTR_VALUE,
|
| +};
|
| +
|
| +enum AXIntAttribute {
|
| + // Scrollable container attributes.
|
| + AX_ATTR_SCROLL_X,
|
| + AX_ATTR_SCROLL_X_MIN,
|
| + AX_ATTR_SCROLL_X_MAX,
|
| + AX_ATTR_SCROLL_Y,
|
| + AX_ATTR_SCROLL_Y_MIN,
|
| + AX_ATTR_SCROLL_Y_MAX,
|
| +
|
| + // Editable text attributes.
|
| + AX_ATTR_TEXT_SEL_START,
|
| + AX_ATTR_TEXT_SEL_END,
|
| +
|
| + // Table attributes.
|
| + AX_ATTR_TABLE_ROW_COUNT,
|
| + AX_ATTR_TABLE_COLUMN_COUNT,
|
| + AX_ATTR_TABLE_HEADER_ID,
|
| +
|
| + // Table row attributes.
|
| + AX_ATTR_TABLE_ROW_INDEX,
|
| + AX_ATTR_TABLE_ROW_HEADER_ID,
|
| +
|
| + // Table column attributes.
|
| + AX_ATTR_TABLE_COLUMN_INDEX,
|
| + AX_ATTR_TABLE_COLUMN_HEADER_ID,
|
| +
|
| + // Table cell attributes.
|
| + AX_ATTR_TABLE_CELL_COLUMN_INDEX,
|
| + AX_ATTR_TABLE_CELL_COLUMN_SPAN,
|
| + AX_ATTR_TABLE_CELL_ROW_INDEX,
|
| + AX_ATTR_TABLE_CELL_ROW_SPAN,
|
| +
|
| + // Tree control attributes.
|
| + AX_ATTR_HIERARCHICAL_LEVEL,
|
| +
|
| + // Relationships between this element and other elements.
|
| + AX_ATTR_TITLE_UI_ELEMENT,
|
| +
|
| + // Color value for AX_ROLE_COLOR_WELL, each component is 0..255
|
| + AX_ATTR_COLOR_VALUE_RED,
|
| + AX_ATTR_COLOR_VALUE_GREEN,
|
| + AX_ATTR_COLOR_VALUE_BLUE,
|
| +
|
| + // Inline text attributes.
|
| + AX_ATTR_TEXT_DIRECTION
|
| +};
|
| +
|
| +enum AXFloatAttribute {
|
| + // Document attributes.
|
| + AX_ATTR_DOC_LOADING_PROGRESS,
|
| +
|
| + // Range attributes.
|
| + AX_ATTR_VALUE_FOR_RANGE,
|
| + AX_ATTR_MIN_VALUE_FOR_RANGE,
|
| + AX_ATTR_MAX_VALUE_FOR_RANGE,
|
| +};
|
| +
|
| +enum AXBoolAttribute {
|
| + // Document attributes.
|
| + AX_ATTR_DOC_LOADED,
|
| +
|
| + // True if a checkbox or radio button is in the "mixed" state.
|
| + AX_ATTR_BUTTON_MIXED,
|
| +
|
| + // Live region attributes.
|
| + AX_ATTR_CONTAINER_LIVE_ATOMIC,
|
| + AX_ATTR_CONTAINER_LIVE_BUSY,
|
| + AX_ATTR_LIVE_ATOMIC,
|
| + AX_ATTR_LIVE_BUSY,
|
| +
|
| + // ARIA readonly flag.
|
| + AX_ATTR_ARIA_READONLY,
|
| +
|
| + // Writeable attributes
|
| + AX_ATTR_CAN_SET_VALUE,
|
| +
|
| + // If this is set, all of the other fields in this struct should
|
| + // be ignored and only the locations should change.
|
| + AX_ATTR_UPDATE_LOCATION_ONLY,
|
| +
|
| + // Set on a canvas element if it has fallback content.
|
| + AX_ATTR_CANVAS_HAS_FALLBACK,
|
| +};
|
| +
|
| +enum AXIntListAttribute {
|
| + // Ids of nodes that are children of this node logically, but are
|
| + // not children of this node in the tree structure. As an example,
|
| + // a table cell is a child of a row, and an 'indirect' child of a
|
| + // column.
|
| + AX_ATTR_INDIRECT_CHILD_IDS,
|
| +
|
| + // Character indices where line breaks occur.
|
| + AX_ATTR_LINE_BREAKS,
|
| +
|
| + // For a table, the cell ids in row-major order, with duplicate entries
|
| + // when there's a rowspan or colspan, and with -1 for missing cells.
|
| + // There are always exactly rows * columns entries.
|
| + AX_ATTR_CELL_IDS,
|
| +
|
| + // For a table, the unique cell ids in row-major order of their first
|
| + // occurrence.
|
| + AX_ATTR_UNIQUE_CELL_IDS,
|
| +
|
| + // For inline text. This is the pixel position of the end of this
|
| + // character within the bounding rectangle of this object, in the
|
| + // direction given by AX_ATTR_TEXT_DIRECTION. For example, for left-to-right
|
| + // text, the first offset is the right coordinate of the first character
|
| + // within the object's bounds, the second offset is the right coordinate
|
| + // of the second character, and so on.
|
| + AX_ATTR_CHARACTER_OFFSETS,
|
| +
|
| + // For inline text. These int lists must be the same size; they represent
|
| + // the start and end character index of each word within this text.
|
| + AX_ATTR_WORD_STARTS,
|
| + AX_ATTR_WORD_ENDS,
|
| +};
|
| +
|
| +enum AXTextDirection {
|
| + AX_TEXT_DIRECTION_LR,
|
| + AX_TEXT_DIRECTION_RL,
|
| + AX_TEXT_DIRECTION_TB,
|
| + AX_TEXT_DIRECTION_BT,
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_ACCESSIBILITY_AX_ENUMS_H_
|
|
|