// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Must also be kept in sync with extensions/common/api/automation.idl. module ax.mojom; // For new entries to the following four enums, also add to // extensions/common/api/automation.idl. This is enforced // by a PRESUBMIT check. // // Explanation of in-lined comments next to some enum values/attributes: // // Web: this attribute is only used in web content. // // Native: this attribute is only used in native UI. // // Implicit: for events, it would be cleaner if we just updated the AX node and // each platform fired the appropriate events to indicate which // platform-specific attributes changed. // // if Native / [Platform1, ...] is specified, the attribute is only used // on those platforms. // // If unspecified, the attribute is used across web and native on multiple // platforms. // Keep these values in sync with AXEventType in // tools/metrics/histograms/enums.xml. // Next version: 1 // Next value: 59 [Extensible, Stable, Uuid="686e661e-f8c7-4214-8713-1f66d95d3ffa"] enum Event { [Default]kNone = 0, kActiveDescendantChanged = 1, kAlert = 2, kAriaAttributeChanged = 3, // Implicit kAutocorrectionOccured = 4, // Unknown: http://crbug.com/392498 kBlur = 5, // Remove: http://crbug.com/392502 kCheckedStateChanged = 6, // Implicit kChildrenChanged = 7, kClicked = 8, kControlsChanged = 9, kDocumentSelectionChanged = 10, kDocumentTitleChanged = 11, kEndOfTest = 12, // Sentinel value indicating the end of a test kExpandedChanged = 13, // Web kFocus = 14, kFocusAfterMenuClose = 15, // Contextual focus event that must delay the next focus event. kFocusContext = 16, kHide = 17, // Remove: http://crbug.com/392502 kHitTestResult = 18, kHover = 19, kImageFrameUpdated = 20, // Web kLayoutComplete = 21, // Web kLiveRegionCreated = 22, // Implicit kLiveRegionChanged = 23, // Web kLoadComplete = 24, // Web kLoadStart = 25, // Web / AuraLinux kLocationChanged = 26, // Web kMediaStartedPlaying = 27, // Native / Automation kMediaStoppedPlaying = 28, // Native / Automation kMenuEnd = 29, // Native / web: menu interaction has ended. kMenuListValueChanged = 30, // Web kMenuPopupEnd = 31, // Native / web: a menu/submenu is hidden/closed. kMenuPopupStart = 32, // Native / web: a menu/submenu is shown/opened. kMenuStart = 33, // Native / web: menu interaction has begun. kMouseCanceled = 34, kMouseDragged = 35, kMouseMoved = 36, kMousePressed = 37, kMouseReleased = 38, kRowCollapsed = 39, kRowCountChanged = 40, kRowExpanded = 41, kScrollPositionChanged = 42, // Web kScrolledToAnchor = 43, // Web kSelectedChildrenChanged = 44, // Web kSelection = 45, // Native kSelectionAdd = 46, // Native kSelectionRemove = 47, // Native kShow = 48, // Native / Automation kStateChanged = 49, // Native / Automation kTextChanged = 50, // TODO(nektar): Remove kTextSelectionChanged. kTextSelectionChanged = 51, kTooltipClosed = 52, kTooltipOpened = 53, kTreeChanged = 54, // Don't explicitly fire this event. // TODO(nektar): Remove kValueChanged. kValueChanged = 55, kWindowActivated = 56, // Native kWindowDeactivated = 57, // Native kWindowVisibilityChanged = 58, // Native }; // Accessibility object roles. // The majority of these roles come from the ARIA specification. Reference // the latest draft for proper usage. // // Roles not included by the ARIA specification should be avoided, especially // internal roles used by the accessibility infrastructure. // // Explanation of in-lined comments next to some enum values. // // Web: this attribute is only used in web content. // // Native: this attribute is only used in native UI. // Next version: 5 // Next value: 210 [Extensible, Stable, Uuid="d258eb73-e0cc-490c-b881-80ee11d3fec2"] enum Role { [Default]kUnknown = 181, // The role has not been set. kAbbr = 1, kAlert = 2, kAlertDialog = 3, kApplication = 4, kArticle = 5, kAudio = 6, kBanner = 7, kBlockquote = 8, kButton = 9, kCanvas = 10, kCaption = 11, kCaret = 12, kCell = 13, kCheckBox = 14, kClient = 15, kCode = 16, kColorWell = 17, kColumn = 18, kColumnHeader = 19, // kComboBoxGrouping represents a combobox container that groups // subcomponents. It always contains a button and a listbox. It may also // contain a listbox as in case of an editable combobox (e.g. Views' // EditableCombobox). kComboBoxGrouping = 20, // kComboBoxMenuButton represents the arrow button part of a combobox, or a //