Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Unified Diff: ui/accessibility/ax_enums.h

Issue 143473003: Generate ax enums from idl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use single quotes, add comment, rename absolute to literalvalues Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/ax_enums.h
diff --git a/ui/accessibility/ax_enums.h b/ui/accessibility/ax_enums.h
deleted file mode 100644
index b57b2418cbb115a7b84974cc3cab9d20dc878222..0000000000000000000000000000000000000000
--- a/ui/accessibility/ax_enums.h
+++ /dev/null
@@ -1,335 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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,
- AX_ROLE_ANNOTATION,
- AX_ROLE_APPLICATION,
- AX_ROLE_ARTICLE,
- AX_ROLE_BANNER,
- AX_ROLE_BROWSER,
- AX_ROLE_BUSY_INDICATOR,
- AX_ROLE_BUTTON,
- AX_ROLE_CANVAS,
- AX_ROLE_CELL,
- AX_ROLE_CHECK_BOX,
- AX_ROLE_COLOR_WELL,
- AX_ROLE_COLUMN_HEADER,
- AX_ROLE_COLUMN,
- AX_ROLE_COMBO_BOX,
- AX_ROLE_COMPLEMENTARY,
- AX_ROLE_CONTENT_INFO,
- AX_ROLE_DEFINITION,
- AX_ROLE_DESCRIPTION_LIST_DETAIL,
- AX_ROLE_DESCRIPTION_LIST_TERM,
- AX_ROLE_DIALOG,
- AX_ROLE_DIRECTORY,
- AX_ROLE_DISCLOSURE_TRIANGLE,
- AX_ROLE_DIV,
- AX_ROLE_DOCUMENT,
- AX_ROLE_DRAWER,
- AX_ROLE_EDITABLE_TEXT,
- AX_ROLE_FOOTER,
- AX_ROLE_FORM,
- AX_ROLE_GRID,
- AX_ROLE_GROUP,
- AX_ROLE_GROW_AREA,
- AX_ROLE_HEADING,
- AX_ROLE_HELP_TAG,
- AX_ROLE_HORIZONTAL_RULE,
- AX_ROLE_IGNORED,
- AX_ROLE_IMAGE_MAP_LINK,
- AX_ROLE_IMAGE_MAP,
- AX_ROLE_IMAGE,
- AX_ROLE_INCREMENTOR,
- AX_ROLE_INLINE_TEXT_BOX,
- AX_ROLE_LABEL,
- AX_ROLE_LEGEND,
- AX_ROLE_LINK,
- AX_ROLE_LIST_BOX_OPTION,
- AX_ROLE_LIST_BOX,
- AX_ROLE_LIST_ITEM,
- AX_ROLE_LIST_MARKER,
- AX_ROLE_LIST,
- AX_ROLE_LOG,
- AX_ROLE_MAIN,
- AX_ROLE_MARQUEE,
- AX_ROLE_MATH_ELEMENT,
- AX_ROLE_MATH,
- AX_ROLE_MATTE,
- AX_ROLE_MENU_BAR,
- AX_ROLE_MENU_BUTTON,
- AX_ROLE_MENU_ITEM,
- AX_ROLE_MENU_LIST_OPTION,
- AX_ROLE_MENU_LIST_POPUP,
- AX_ROLE_MENU,
- AX_ROLE_NAVIGATION,
- AX_ROLE_NOTE,
- AX_ROLE_OUTLINE,
- AX_ROLE_PARAGRAPH,
- AX_ROLE_POP_UP_BUTTON,
- AX_ROLE_PRESENTATIONAL,
- AX_ROLE_PROGRESS_INDICATOR,
- AX_ROLE_RADIO_BUTTON,
- AX_ROLE_RADIO_GROUP,
- AX_ROLE_REGION,
- AX_ROLE_ROOT_WEB_AREA,
- AX_ROLE_ROW_HEADER,
- AX_ROLE_ROW,
- AX_ROLE_RULER_MARKER,
- AX_ROLE_RULER,
- AX_ROLE_SVG_ROOT,
- AX_ROLE_SCROLL_AREA,
- AX_ROLE_SCROLL_BAR,
- AX_ROLE_SEAMLESS_WEB_AREA,
- AX_ROLE_SEARCH,
- AX_ROLE_SHEET,
- AX_ROLE_SLIDER,
- AX_ROLE_SLIDER_THUMB,
- AX_ROLE_SPIN_BUTTON_PART,
- AX_ROLE_SPIN_BUTTON,
- AX_ROLE_SPLIT_GROUP,
- AX_ROLE_SPLITTER,
- AX_ROLE_STATIC_TEXT,
- AX_ROLE_STATUS,
- AX_ROLE_SYSTEM_WIDE,
- AX_ROLE_TAB_GROUP,
- AX_ROLE_TAB_LIST,
- AX_ROLE_TAB_PANEL,
- AX_ROLE_TAB,
- AX_ROLE_TABLE_HEADER_CONTAINER,
- AX_ROLE_TABLE,
- AX_ROLE_TEXT_AREA,
- AX_ROLE_TEXT_FIELD,
- AX_ROLE_TIMER,
- AX_ROLE_TOGGLE_BUTTON,
- AX_ROLE_TOOLBAR,
- AX_ROLE_TREE_GRID,
- AX_ROLE_TREE_ITEM,
- AX_ROLE_TREE,
- AX_ROLE_UNKNOWN,
- AX_ROLE_TOOLTIP,
- AX_ROLE_VALUE_INDICATOR,
- AX_ROLE_WEB_AREA,
- AX_ROLE_WINDOW
-};
-
-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_

Powered by Google App Engine
This is Rietveld 408576698