chrome-types 0.1.202 → 0.1.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_all.d.ts +3 -1593
- package/index.d.ts +3 -1593
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Sat Jun 10 2023 22:28:07 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 2b3537c574e2f1c9d24eb98ea6608b0c40a2a06d
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -2012,1596 +2012,6 @@ declare namespace chrome {
|
|
|
2012
2012
|
): void;
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
|
-
/**
|
|
2016
|
-
* The `chrome.automation` API allows developers to access the automation (accessibility) tree for the browser. The tree resembles the DOM tree, but only exposes the _semantic_ structure of a page. It can be used to programmatically interact with a page by examining names, roles, and states, listening for events, and performing actions on nodes.
|
|
2017
|
-
*
|
|
2018
|
-
* @alpha
|
|
2019
|
-
* @chrome-manifest automation
|
|
2020
|
-
* @chrome-channel dev
|
|
2021
|
-
* @chrome-disallow-service-workers
|
|
2022
|
-
*/
|
|
2023
|
-
export namespace automation {
|
|
2024
|
-
|
|
2025
|
-
/**
|
|
2026
|
-
* Possible events fired on an {@link automation.AutomationNode}.
|
|
2027
|
-
*
|
|
2028
|
-
* @chrome-enum "liveRegionChanged" fired when aria-busy goes false
|
|
2029
|
-
* @chrome-enum "liveRelevantChanged" fired on a node within a live region.
|
|
2030
|
-
* @chrome-enum "windowActivated" Deprecated.
|
|
2031
|
-
*/
|
|
2032
|
-
export type EventType = "accessKeyChanged" | "activeDescendantChanged" | "alert" | "ariaAttributeChanged" | "ariaCurrentChanged" | "atomicChanged" | "autoCompleteChanged" | "autocorrectionOccured" | "autofillAvailabilityChanged" | "blur" | "busyChanged" | "caretBoundsChanged" | "checkedStateChanged" | "checkedStateDescriptionChanged" | "childrenChanged" | "classNameChanged" | "clicked" | "collapsed" | "controlsChanged" | "detailsChanged" | "describedByChanged" | "descriptionChanged" | "documentSelectionChanged" | "documentTitleChanged" | "dropeffectChanged" | "editableTextChanged" | "enabledChanged" | "endOfTest" | "expanded" | "expandedChanged" | "flowFromChanged" | "flowToChanged" | "focus" | "focusAfterMenuClose" | "focusChanged" | "focusContext" | "grabbedChanged" | "haspopupChanged" | "hide" | "hierarchicalLevelChanged" | "hitTestResult" | "hover" | "ignoredChanged" | "imageAnnotationChanged" | "imageFrameUpdated" | "invalidStatusChanged" | "keyShortcutsChanged" | "labeledByChanged" | "languageChanged" | "layoutComplete" | "layoutInvalidated" | "liveRegionChanged" | "liveRegionCreated" | "liveRegionNodeChanged" | "liveRelevantChanged" | "liveStatusChanged" | "loadComplete" | "loadStart" | "locationChanged" | "mediaStartedPlaying" | "mediaStoppedPlaying" | "menuEnd" | "menuItemSelected" | "menuListValueChanged" | "menuPopupEnd" | "menuPopupStart" | "menuStart" | "mouseCanceled" | "mouseDragged" | "mouseMoved" | "mousePressed" | "mouseReleased" | "multilineStateChanged" | "multiselectableStateChanged" | "nameChanged" | "objectAttributeChanged" | "otherAttributeChanged" | "parentChanged" | "placeholderChanged" | "portalActivated" | "positionInSetChanged" | "rangeValueChanged" | "rangeValueMaxChanged" | "rangeValueMinChanged" | "rangeValueStepChanged" | "readonlyChanged" | "relatedNodeChanged" | "requiredStateChanged" | "roleChanged" | "rowCollapsed" | "rowCountChanged" | "rowExpanded" | "scrollHorizontalPositionChanged" | "scrollPositionChanged" | "scrollVerticalPositionChanged" | "scrolledToAnchor" | "selectedChanged" | "selectedChildrenChanged" | "selectedValueChanged" | "selection" | "selectionAdd" | "selectionRemove" | "setSizeChanged" | "show" | "sortChanged" | "stateChanged" | "subtreeCreated" | "textAttributeChanged" | "textSelectionChanged" | "textChanged" | "tooltipClosed" | "tooltipOpened" | "treeChanged" | "valueInTextFieldChanged" | "valueChanged" | "windowActivated" | "windowDeactivated" | "windowVisibilityChanged";
|
|
2033
|
-
|
|
2034
|
-
/**
|
|
2035
|
-
* Describes the purpose of an {@link automation.AutomationNode}.
|
|
2036
|
-
*
|
|
2037
|
-
* @chrome-enum "docAbstract" DPub Roles: https://www.w3.org/TR/dpub-aam-1.0/#mapping\_role\_table
|
|
2038
|
-
* @chrome-enum "document" End DPub roles.
|
|
2039
|
-
* @chrome-enum "graphicsDocument" ARIA Graphics module roles: https://rawgit.com/w3c/graphics-aam/master/#mapping\_role\_table
|
|
2040
|
-
* @chrome-enum "grid" End ARIA Graphics module roles.
|
|
2041
|
-
* @chrome-enum "listItem" Native
|
|
2042
|
-
*/
|
|
2043
|
-
export type RoleType = "abbr" | "alert" | "alertDialog" | "application" | "article" | "audio" | "banner" | "blockquote" | "button" | "canvas" | "caption" | "caret" | "cell" | "checkBox" | "client" | "code" | "colorWell" | "column" | "columnHeader" | "comboBoxGrouping" | "comboBoxMenuButton" | "comboBoxSelect" | "comment" | "complementary" | "contentDeletion" | "contentInsertion" | "contentInfo" | "date" | "dateTime" | "definition" | "descriptionList" | "descriptionListDetail" | "descriptionListTerm" | "desktop" | "details" | "dialog" | "directory" | "disclosureTriangle" | "docAbstract" | "docAcknowledgments" | "docAfterword" | "docAppendix" | "docBackLink" | "docBiblioEntry" | "docBibliography" | "docBiblioRef" | "docChapter" | "docColophon" | "docConclusion" | "docCover" | "docCredit" | "docCredits" | "docDedication" | "docEndnote" | "docEndnotes" | "docEpigraph" | "docEpilogue" | "docErrata" | "docExample" | "docFootnote" | "docForeword" | "docGlossary" | "docGlossRef" | "docIndex" | "docIntroduction" | "docNoteRef" | "docNotice" | "docPageBreak" | "docPageFooter" | "docPageHeader" | "docPageList" | "docPart" | "docPreface" | "docPrologue" | "docPullquote" | "docQna" | "docSubtitle" | "docTip" | "docToc" | "document" | "embeddedObject" | "emphasis" | "feed" | "figcaption" | "figure" | "footer" | "footerAsNonLandmark" | "form" | "genericContainer" | "graphicsDocument" | "graphicsObject" | "graphicsSymbol" | "grid" | "group" | "header" | "headerAsNonLandmark" | "heading" | "iframe" | "iframePresentational" | "image" | "imeCandidate" | "inlineTextBox" | "inputTime" | "keyboard" | "labelText" | "layoutTable" | "layoutTableCell" | "layoutTableRow" | "legend" | "lineBreak" | "link" | "list" | "listBox" | "listBoxOption" | "listGrid" | "listItem" | "listMarker" | "log" | "main" | "mark" | "marquee" | "math" | "mathMLFraction" | "mathMLIdentifier" | "mathMLMath" | "mathMLMultiscripts" | "mathMLNoneScript" | "mathMLNumber" | "mathMLOperator" | "mathMLOver" | "mathMLPrescriptDelimiter" | "mathMLRoot" | "mathMLRow" | "mathMLSquareRoot" | "mathMLStringLiteral" | "mathMLSub" | "mathMLSubSup" | "mathMLSup" | "mathMLTable" | "mathMLTableCell" | "mathMLTableRow" | "mathMLText" | "mathMLUnder" | "mathMLUnderOver" | "menu" | "menuBar" | "menuItem" | "menuItemCheckBox" | "menuItemRadio" | "menuListOption" | "menuListPopup" | "meter" | "navigation" | "note" | "pane" | "paragraph" | "pdfActionableHighlight" | "pdfRoot" | "pluginObject" | "popUpButton" | "portal" | "pre" | "progressIndicator" | "radioButton" | "radioGroup" | "region" | "rootWebArea" | "row" | "rowGroup" | "rowHeader" | "ruby" | "rubyAnnotation" | "scrollBar" | "scrollView" | "search" | "searchBox" | "section" | "slider" | "spinButton" | "splitter" | "staticText" | "status" | "strong" | "subscript" | "suggestion" | "superscript" | "svgRoot" | "switch" | "tab" | "tabList" | "tabPanel" | "table" | "tableHeaderContainer" | "term" | "textField" | "textFieldWithComboBox" | "time" | "timer" | "titleBar" | "toggleButton" | "toolbar" | "tooltip" | "tree" | "treeGrid" | "treeItem" | "unknown" | "video" | "webView" | "window";
|
|
2044
|
-
|
|
2045
|
-
/**
|
|
2046
|
-
* Describes characteristics of an {@link automation.AutomationNode}.
|
|
2047
|
-
*/
|
|
2048
|
-
export type StateType = "autofillAvailable" | "collapsed" | "default" | "editable" | "expanded" | "focusable" | "focused" | "horizontal" | "hovered" | "ignored" | "invisible" | "linked" | "multiline" | "multiselectable" | "offscreen" | "protected" | "required" | "richlyEditable" | "vertical" | "visited";
|
|
2049
|
-
|
|
2050
|
-
/**
|
|
2051
|
-
* All possible actions that can be performed on automation nodes.
|
|
2052
|
-
*/
|
|
2053
|
-
export type ActionType = "annotatePageImages" | "blur" | "clearAccessibilityFocus" | "collapse" | "customAction" | "decrement" | "doDefault" | "expand" | "focus" | "getImageData" | "getTextLocation" | "hideTooltip" | "hitTest" | "increment" | "internalInvalidateTree" | "loadInlineTextBoxes" | "longClick" | "replaceSelectedText" | "resumeMedia" | "scrollBackward" | "scrollDown" | "scrollForward" | "scrollLeft" | "scrollRight" | "scrollUp" | "scrollToMakeVisible" | "scrollToPoint" | "scrollToPositionAtRowColumn" | "setAccessibilityFocus" | "setScrollOffset" | "setSelection" | "setSequentialFocusNavigationStartingPoint" | "setValue" | "showContextMenu" | "signalEndOfTest" | "showTooltip" | "startDuckingMedia" | "stopDuckingMedia" | "suspendMedia";
|
|
2054
|
-
|
|
2055
|
-
/**
|
|
2056
|
-
* Possible changes to the automation tree. For any given atomic change to the tree, each node that's added, removed, or changed, will appear in exactly one TreeChange, with one of these types.
|
|
2057
|
-
*
|
|
2058
|
-
* nodeCreated means that this node was added to the tree and its parent is new as well, so it's just one node in a new subtree that was added.
|
|
2059
|
-
*
|
|
2060
|
-
* @chrome-enum "nodeCreated" \* This node was added to the tree and its parent is new as well, so it's just one node in a new subtree that was added.
|
|
2061
|
-
* @chrome-enum "subtreeCreated" \* This node was added to the tree but its parent was already in the tree, so it's possibly the root of a new subtree - it does not mean that it necessarily has children.
|
|
2062
|
-
* @chrome-enum "nodeChanged" \* This node changed.
|
|
2063
|
-
* @chrome-enum "textChanged" \* This node's text (name) changed.
|
|
2064
|
-
* @chrome-enum "nodeRemoved" \* This node was removed.
|
|
2065
|
-
* @chrome-enum "subtreeUpdateEnd" \* This subtree has finished an update.
|
|
2066
|
-
*/
|
|
2067
|
-
export type TreeChangeType = "nodeCreated" | "subtreeCreated" | "nodeChanged" | "textChanged" | "nodeRemoved" | "subtreeUpdateEnd";
|
|
2068
|
-
|
|
2069
|
-
/**
|
|
2070
|
-
* Where the node's name is from.
|
|
2071
|
-
*/
|
|
2072
|
-
export type NameFromType = "attribute" | "attributeExplicitlyEmpty" | "caption" | "contents" | "placeholder" | "popoverAttribute" | "relatedElement" | "title" | "value";
|
|
2073
|
-
|
|
2074
|
-
export type DescriptionFromType = "ariaDescription" | "attributeExplicitlyEmpty" | "buttonLabel" | "popoverAttribute" | "relatedElement" | "rubyAnnotation" | "summary" | "svgDescElement" | "tableCaption" | "title";
|
|
2075
|
-
|
|
2076
|
-
/**
|
|
2077
|
-
* The input restriction for a object -- even non-controls can be disabled.
|
|
2078
|
-
*/
|
|
2079
|
-
export type Restriction = "disabled" | "readOnly";
|
|
2080
|
-
|
|
2081
|
-
/**
|
|
2082
|
-
* Availability and types for an interactive popup element.
|
|
2083
|
-
*/
|
|
2084
|
-
export type HasPopup = "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
2085
|
-
|
|
2086
|
-
/**
|
|
2087
|
-
* Indicates the ARIA-current state.
|
|
2088
|
-
*/
|
|
2089
|
-
export type AriaCurrentState = "false" | "true" | "page" | "step" | "location" | "date" | "time";
|
|
2090
|
-
|
|
2091
|
-
/**
|
|
2092
|
-
* Lists the values that `invalidState` can take on.
|
|
2093
|
-
*/
|
|
2094
|
-
export type InvalidState = "false" | "true";
|
|
2095
|
-
|
|
2096
|
-
/**
|
|
2097
|
-
* Describes possible actions when performing a do default action.
|
|
2098
|
-
*/
|
|
2099
|
-
export type DefaultActionVerb = "activate" | "check" | "click" | "clickAncestor" | "jump" | "open" | "press" | "select" | "uncheck";
|
|
2100
|
-
|
|
2101
|
-
/**
|
|
2102
|
-
* Types of markers on text. See `AutomationNode.markerTypes`.
|
|
2103
|
-
*/
|
|
2104
|
-
export type MarkerType = "spelling" | "grammar" | "textMatch" | "activeSuggestion" | "suggestion" | "highlight";
|
|
2105
|
-
|
|
2106
|
-
/**
|
|
2107
|
-
* A command associated with an {@link automation.AutomationIntent}.
|
|
2108
|
-
*/
|
|
2109
|
-
export type IntentCommandType = "clearSelection" | "delete" | "dictate" | "extendSelection" | "format" | "history" | "insert" | "marker" | "moveSelection" | "setSelection";
|
|
2110
|
-
|
|
2111
|
-
/**
|
|
2112
|
-
* The type of an input event associated with an {@link automation.AutomationIntent}. It describes an edit command, e.g. IntentCommandType.insert, in more detail.
|
|
2113
|
-
*
|
|
2114
|
-
* @chrome-enum "insertText" Insertion.
|
|
2115
|
-
* @chrome-enum "deleteWordBackward" Deletion.
|
|
2116
|
-
* @chrome-enum "historyUndo" History.
|
|
2117
|
-
* @chrome-enum "formatBold" Formatting.
|
|
2118
|
-
*/
|
|
2119
|
-
export type IntentInputEventType = "insertText" | "insertLineBreak" | "insertParagraph" | "insertOrderedList" | "insertUnorderedList" | "insertHorizontalRule" | "insertFromPaste" | "insertFromDrop" | "insertFromYank" | "insertTranspose" | "insertReplacementText" | "insertCompositionText" | "deleteWordBackward" | "deleteWordForward" | "deleteSoftLineBackward" | "deleteSoftLineForward" | "deleteHardLineBackward" | "deleteHardLineForward" | "deleteContentBackward" | "deleteContentForward" | "deleteByCut" | "deleteByDrag" | "historyUndo" | "historyRedo" | "formatBold" | "formatItalic" | "formatUnderline" | "formatStrikeThrough" | "formatSuperscript" | "formatSubscript" | "formatJustifyCenter" | "formatJustifyFull" | "formatJustifyRight" | "formatJustifyLeft" | "formatIndent" | "formatOutdent" | "formatRemove" | "formatSetBlockTextDirection";
|
|
2120
|
-
|
|
2121
|
-
/**
|
|
2122
|
-
* A text boundary associated with an {@link automation.AutomationIntent}.
|
|
2123
|
-
*/
|
|
2124
|
-
export type IntentTextBoundaryType = "character" | "formatEnd" | "formatStart" | "formatStartOrEnd" | "lineEnd" | "lineStart" | "lineStartOrEnd" | "object" | "pageEnd" | "pageStart" | "pageStartOrEnd" | "paragraphEnd" | "paragraphStart" | "paragraphStartSkippingEmptyParagraphs" | "paragraphStartOrEnd" | "sentenceEnd" | "sentenceStart" | "sentenceStartOrEnd" | "webPage" | "wordEnd" | "wordStart" | "wordStartOrEnd";
|
|
2125
|
-
|
|
2126
|
-
/**
|
|
2127
|
-
* A move direction associated with an {@link automation.AutomationIntent}.
|
|
2128
|
-
*/
|
|
2129
|
-
export type IntentMoveDirectionType = "backward" | "forward";
|
|
2130
|
-
|
|
2131
|
-
/**
|
|
2132
|
-
* A sort applied to a table row or column header.
|
|
2133
|
-
*/
|
|
2134
|
-
export type SortDirectionType = "unsorted" | "ascending" | "descending" | "other";
|
|
2135
|
-
|
|
2136
|
-
/**
|
|
2137
|
-
* A type of AutomationPosition.
|
|
2138
|
-
*/
|
|
2139
|
-
export type PositionType = "null" | "text" | "tree";
|
|
2140
|
-
|
|
2141
|
-
export interface Rect {
|
|
2142
|
-
|
|
2143
|
-
left: number;
|
|
2144
|
-
|
|
2145
|
-
top: number;
|
|
2146
|
-
|
|
2147
|
-
width: number;
|
|
2148
|
-
|
|
2149
|
-
height: number;
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
export interface FindParams {
|
|
2153
|
-
|
|
2154
|
-
role?: RoleType;
|
|
2155
|
-
|
|
2156
|
-
/**
|
|
2157
|
-
* A map of {@link automation.StateType} to boolean, indicating for each state whether it should be set or not. For example: `{ StateType.disabled: false }` would only match if `StateType.disabled` was _not_ present in the node's `state` object.
|
|
2158
|
-
*/
|
|
2159
|
-
state?: {[name: string]: any};
|
|
2160
|
-
|
|
2161
|
-
/**
|
|
2162
|
-
* A map of attribute name to expected value, for example `{ name: 'Root directory', checkbox_mixed: true }`. String attribute values may be specified as a regex, for example `{ name: /stralia$/` }. Unless specifying a regex, the expected value must be an exact match in type and value for the actual value. Thus, the type of expected value must be one of:
|
|
2163
|
-
*
|
|
2164
|
-
* * string
|
|
2165
|
-
* * integer
|
|
2166
|
-
* * float
|
|
2167
|
-
* * boolean
|
|
2168
|
-
*/
|
|
2169
|
-
attributes?: {[name: string]: any};
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
export interface SetDocumentSelectionParams {
|
|
2173
|
-
|
|
2174
|
-
/**
|
|
2175
|
-
* The node where the selection begins.
|
|
2176
|
-
*/
|
|
2177
|
-
anchorObject: AutomationNode;
|
|
2178
|
-
|
|
2179
|
-
/**
|
|
2180
|
-
* The offset in the anchor node where the selection begins.
|
|
2181
|
-
*/
|
|
2182
|
-
anchorOffset: number;
|
|
2183
|
-
|
|
2184
|
-
/**
|
|
2185
|
-
* The node where the selection ends.
|
|
2186
|
-
*/
|
|
2187
|
-
focusObject: AutomationNode;
|
|
2188
|
-
|
|
2189
|
-
/**
|
|
2190
|
-
* The offset within the focus node where the selection ends.
|
|
2191
|
-
*/
|
|
2192
|
-
focusOffset: number;
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
export interface AutomationIntent {
|
|
2196
|
-
|
|
2197
|
-
/**
|
|
2198
|
-
* A command associated with this AutomationIntent.
|
|
2199
|
-
*/
|
|
2200
|
-
command: IntentCommandType;
|
|
2201
|
-
|
|
2202
|
-
/**
|
|
2203
|
-
* A text boundary associated with this AutomationIntent.
|
|
2204
|
-
*/
|
|
2205
|
-
textBoundary: IntentTextBoundaryType;
|
|
2206
|
-
|
|
2207
|
-
/**
|
|
2208
|
-
* A move direction associated with this AutomationIntent.
|
|
2209
|
-
*/
|
|
2210
|
-
moveDirection: IntentMoveDirectionType;
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
export interface AutomationEvent {
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* The {@link automation.AutomationNode} to which the event was targeted.
|
|
2217
|
-
*/
|
|
2218
|
-
target: AutomationNode;
|
|
2219
|
-
|
|
2220
|
-
/**
|
|
2221
|
-
* The type of the event.
|
|
2222
|
-
*/
|
|
2223
|
-
type: EventType;
|
|
2224
|
-
|
|
2225
|
-
/**
|
|
2226
|
-
* The source of this event.
|
|
2227
|
-
*/
|
|
2228
|
-
eventFrom: string;
|
|
2229
|
-
|
|
2230
|
-
/**
|
|
2231
|
-
* Any mouse coordinates associated with this event.
|
|
2232
|
-
*/
|
|
2233
|
-
mouseX: number;
|
|
2234
|
-
|
|
2235
|
-
mouseY: number;
|
|
2236
|
-
|
|
2237
|
-
/**
|
|
2238
|
-
* A list of {@link automation.AutomationIntent}s associated with this event.
|
|
2239
|
-
*/
|
|
2240
|
-
intents: AutomationIntent[];
|
|
2241
|
-
|
|
2242
|
-
/**
|
|
2243
|
-
* Stops this event from further processing except for any remaining listeners on {@link automation.AutomationEvent.target}.
|
|
2244
|
-
*/
|
|
2245
|
-
stopPropagation(): void;
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
|
-
export interface TreeChange {
|
|
2249
|
-
|
|
2250
|
-
/**
|
|
2251
|
-
* The {@link automation.AutomationNode} that changed.
|
|
2252
|
-
*/
|
|
2253
|
-
target: AutomationNode;
|
|
2254
|
-
|
|
2255
|
-
/**
|
|
2256
|
-
* The type of change.
|
|
2257
|
-
*/
|
|
2258
|
-
type: TreeChangeType;
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
/**
|
|
2262
|
-
* Possible tree changes to listen to using addTreeChangeObserver. Note that listening to all tree changes can be expensive.
|
|
2263
|
-
*/
|
|
2264
|
-
export type TreeChangeObserverFilter = "noTreeChanges" | "liveRegionTreeChanges" | "textMarkerChanges" | "allTreeChanges";
|
|
2265
|
-
|
|
2266
|
-
export interface CustomAction {
|
|
2267
|
-
|
|
2268
|
-
id: number;
|
|
2269
|
-
|
|
2270
|
-
description: string;
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
export interface LanguageSpan {
|
|
2274
|
-
|
|
2275
|
-
/**
|
|
2276
|
-
* Inclusive start index of substring that contains language.
|
|
2277
|
-
*/
|
|
2278
|
-
startIndex: number;
|
|
2279
|
-
|
|
2280
|
-
/**
|
|
2281
|
-
* Exclusive end index of substring that contains language.
|
|
2282
|
-
*/
|
|
2283
|
-
endIndex: number;
|
|
2284
|
-
|
|
2285
|
-
/**
|
|
2286
|
-
* Detected language for substring.
|
|
2287
|
-
*/
|
|
2288
|
-
language: string;
|
|
2289
|
-
|
|
2290
|
-
/**
|
|
2291
|
-
* Probability that language is correct.
|
|
2292
|
-
*/
|
|
2293
|
-
probability: number;
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
export interface Marker {
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* The start offset within the text of the associated node.
|
|
2300
|
-
*/
|
|
2301
|
-
startOffset: number;
|
|
2302
|
-
|
|
2303
|
-
/**
|
|
2304
|
-
* The end offset within the text of the associated node.
|
|
2305
|
-
*/
|
|
2306
|
-
endOffset: number;
|
|
2307
|
-
|
|
2308
|
-
/**
|
|
2309
|
-
* A mapping of MarkerType to true or undefined indicating the marker types for this marker.
|
|
2310
|
-
*/
|
|
2311
|
-
flags: {[name: string]: any};
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
|
-
export interface AutomationPosition {
|
|
2315
|
-
|
|
2316
|
-
node?: AutomationNode;
|
|
2317
|
-
|
|
2318
|
-
childIndex: number;
|
|
2319
|
-
|
|
2320
|
-
textOffset: number;
|
|
2321
|
-
|
|
2322
|
-
affinity: string;
|
|
2323
|
-
|
|
2324
|
-
isNullPosition(): boolean;
|
|
2325
|
-
|
|
2326
|
-
isTreePosition(): boolean;
|
|
2327
|
-
|
|
2328
|
-
isTextPosition(): boolean;
|
|
2329
|
-
|
|
2330
|
-
isLeafTextPosition(): boolean;
|
|
2331
|
-
|
|
2332
|
-
atStartOfAnchor(): boolean;
|
|
2333
|
-
|
|
2334
|
-
atEndOfAnchor(): boolean;
|
|
2335
|
-
|
|
2336
|
-
atStartOfWord(): boolean;
|
|
2337
|
-
|
|
2338
|
-
atEndOfWord(): boolean;
|
|
2339
|
-
|
|
2340
|
-
atStartOfLine(): boolean;
|
|
2341
|
-
|
|
2342
|
-
atEndOfLine(): boolean;
|
|
2343
|
-
|
|
2344
|
-
atStartOfParagraph(): boolean;
|
|
2345
|
-
|
|
2346
|
-
atEndOfParagraph(): boolean;
|
|
2347
|
-
|
|
2348
|
-
atStartOfPage(): boolean;
|
|
2349
|
-
|
|
2350
|
-
atEndOfPage(): boolean;
|
|
2351
|
-
|
|
2352
|
-
atStartOfFormat(): boolean;
|
|
2353
|
-
|
|
2354
|
-
atEndOfFormat(): boolean;
|
|
2355
|
-
|
|
2356
|
-
atStartOfDocument(): boolean;
|
|
2357
|
-
|
|
2358
|
-
atEndOfDocument(): boolean;
|
|
2359
|
-
|
|
2360
|
-
asTreePosition(): void;
|
|
2361
|
-
|
|
2362
|
-
asTextPosition(): void;
|
|
2363
|
-
|
|
2364
|
-
asLeafTextPosition(): void;
|
|
2365
|
-
|
|
2366
|
-
moveToPositionAtStartOfAnchor(): void;
|
|
2367
|
-
|
|
2368
|
-
moveToPositionAtEndOfAnchor(): void;
|
|
2369
|
-
|
|
2370
|
-
moveToPositionAtStartOfDocument(): void;
|
|
2371
|
-
|
|
2372
|
-
moveToPositionAtEndOfDocument(): void;
|
|
2373
|
-
|
|
2374
|
-
moveToParentPosition(): void;
|
|
2375
|
-
|
|
2376
|
-
moveToNextLeafTreePosition(): void;
|
|
2377
|
-
|
|
2378
|
-
moveToPreviousLeafTreePosition(): void;
|
|
2379
|
-
|
|
2380
|
-
moveToNextLeafTextPosition(): void;
|
|
2381
|
-
|
|
2382
|
-
moveToPreviousLeafTextPosition(): void;
|
|
2383
|
-
|
|
2384
|
-
moveToNextCharacterPosition(): void;
|
|
2385
|
-
|
|
2386
|
-
moveToPreviousCharacterPosition(): void;
|
|
2387
|
-
|
|
2388
|
-
moveToNextWordStartPosition(): void;
|
|
2389
|
-
|
|
2390
|
-
moveToPreviousWordStartPosition(): void;
|
|
2391
|
-
|
|
2392
|
-
moveToNextWordEndPosition(): void;
|
|
2393
|
-
|
|
2394
|
-
moveToPreviousWordEndPosition(): void;
|
|
2395
|
-
|
|
2396
|
-
moveToNextLineStartPosition(): void;
|
|
2397
|
-
|
|
2398
|
-
moveToPreviousLineStartPosition(): void;
|
|
2399
|
-
|
|
2400
|
-
moveToNextLineEndPosition(): void;
|
|
2401
|
-
|
|
2402
|
-
moveToPreviousLineEndPosition(): void;
|
|
2403
|
-
|
|
2404
|
-
moveToNextFormatStartPosition(): void;
|
|
2405
|
-
|
|
2406
|
-
moveToPreviousFormatStartPosition(): void;
|
|
2407
|
-
|
|
2408
|
-
moveToNextFormatEndPosition(): void;
|
|
2409
|
-
|
|
2410
|
-
moveToPreviousFormatEndPosition(): void;
|
|
2411
|
-
|
|
2412
|
-
moveToNextParagraphStartPosition(): void;
|
|
2413
|
-
|
|
2414
|
-
moveToPreviousParagraphStartPosition(): void;
|
|
2415
|
-
|
|
2416
|
-
moveToNextParagraphEndPosition(): void;
|
|
2417
|
-
|
|
2418
|
-
moveToPreviousParagraphEndPosition(): void;
|
|
2419
|
-
|
|
2420
|
-
moveToNextPageStartPosition(): void;
|
|
2421
|
-
|
|
2422
|
-
moveToPreviousPageStartPosition(): void;
|
|
2423
|
-
|
|
2424
|
-
moveToNextPageEndPosition(): void;
|
|
2425
|
-
|
|
2426
|
-
moveToPreviousPageEndPosition(): void;
|
|
2427
|
-
|
|
2428
|
-
moveToNextAnchorPosition(): void;
|
|
2429
|
-
|
|
2430
|
-
moveToPreviousAnchorPosition(): void;
|
|
2431
|
-
|
|
2432
|
-
maxTextOffset(): number;
|
|
2433
|
-
|
|
2434
|
-
isInLineBreak(): boolean;
|
|
2435
|
-
|
|
2436
|
-
isInTextObject(): boolean;
|
|
2437
|
-
|
|
2438
|
-
isInWhiteSpace(): boolean;
|
|
2439
|
-
|
|
2440
|
-
isValid(): boolean;
|
|
2441
|
-
|
|
2442
|
-
getText(): string;
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
export interface AutomationNode {
|
|
2446
|
-
|
|
2447
|
-
/**
|
|
2448
|
-
* The root node of the tree containing this AutomationNode.
|
|
2449
|
-
*/
|
|
2450
|
-
root?: AutomationNode;
|
|
2451
|
-
|
|
2452
|
-
/**
|
|
2453
|
-
* Whether this AutomationNode is a root node.
|
|
2454
|
-
*/
|
|
2455
|
-
isRootNode: boolean;
|
|
2456
|
-
|
|
2457
|
-
/**
|
|
2458
|
-
* The role of this node.
|
|
2459
|
-
*/
|
|
2460
|
-
role?: RoleType;
|
|
2461
|
-
|
|
2462
|
-
/**
|
|
2463
|
-
* The {@link automation.StateType}s describing this node.
|
|
2464
|
-
*/
|
|
2465
|
-
state?: {[name: string]: any};
|
|
2466
|
-
|
|
2467
|
-
/**
|
|
2468
|
-
* The rendered location (as a bounding box) of this node in global screen coordinates.
|
|
2469
|
-
*/
|
|
2470
|
-
location: Rect;
|
|
2471
|
-
|
|
2472
|
-
/**
|
|
2473
|
-
* Determines the location of the text within the node specified by `startIndex` and `endIndex`, inclusively. Invokes `callback` with the bounding rectangle, in screen coordinates. `callback` can be invoked either synchronously or asynchronously. The bounds are clipped to ancestors.
|
|
2474
|
-
*/
|
|
2475
|
-
boundsForRange(
|
|
2476
|
-
|
|
2477
|
-
startIndex: number,
|
|
2478
|
-
|
|
2479
|
-
endIndex: number,
|
|
2480
|
-
|
|
2481
|
-
callback: (
|
|
2482
|
-
bounds: Rect,
|
|
2483
|
-
) => void,
|
|
2484
|
-
): void;
|
|
2485
|
-
|
|
2486
|
-
/**
|
|
2487
|
-
* Determines the location of the text within the node specified by `startIndex` and `endIndex`, inclusively. Invokes `callback` with the bounding rectangle, in screen coordinates. `callback` can be invoked either synchronously or asynchronously. The bounds are not clipped to ancestors.
|
|
2488
|
-
*/
|
|
2489
|
-
unclippedBoundsForRange(
|
|
2490
|
-
|
|
2491
|
-
startIndex: number,
|
|
2492
|
-
|
|
2493
|
-
endIndex: number,
|
|
2494
|
-
|
|
2495
|
-
callback: (
|
|
2496
|
-
bounds: Rect,
|
|
2497
|
-
) => void,
|
|
2498
|
-
): void;
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* The location (as a bounding box) of this node in global screen coordinates without applying any clipping from ancestors.
|
|
2502
|
-
*/
|
|
2503
|
-
unclippedLocation?: Rect;
|
|
2504
|
-
|
|
2505
|
-
/**
|
|
2506
|
-
* The purpose of the node, other than the role, if any.
|
|
2507
|
-
*/
|
|
2508
|
-
description?: string;
|
|
2509
|
-
|
|
2510
|
-
/**
|
|
2511
|
-
* Description of the state of the checkbox. Used only when the node is checkable.
|
|
2512
|
-
*/
|
|
2513
|
-
checkedStateDescription?: string;
|
|
2514
|
-
|
|
2515
|
-
/**
|
|
2516
|
-
* The placeholder for this text field, if any.
|
|
2517
|
-
*/
|
|
2518
|
-
placeholder?: string;
|
|
2519
|
-
|
|
2520
|
-
/**
|
|
2521
|
-
* The role description for this node.
|
|
2522
|
-
*/
|
|
2523
|
-
roleDescription?: string;
|
|
2524
|
-
|
|
2525
|
-
/**
|
|
2526
|
-
* The accessible name for this node, via the [Accessible Name Calculation](https://www.w3.org/TR/wai-aria/#namecalculation) process.
|
|
2527
|
-
*/
|
|
2528
|
-
name?: string;
|
|
2529
|
-
|
|
2530
|
-
/**
|
|
2531
|
-
* Explains what will happen when the doDefault action is performed.
|
|
2532
|
-
*/
|
|
2533
|
-
doDefaultLabel?: string;
|
|
2534
|
-
|
|
2535
|
-
/**
|
|
2536
|
-
* Explains what will happen when the long click action is performed.
|
|
2537
|
-
*/
|
|
2538
|
-
longClickLabel?: string;
|
|
2539
|
-
|
|
2540
|
-
/**
|
|
2541
|
-
* The tooltip of the node, if any.
|
|
2542
|
-
*/
|
|
2543
|
-
tooltip?: string;
|
|
2544
|
-
|
|
2545
|
-
/**
|
|
2546
|
-
* The source of the name.
|
|
2547
|
-
*/
|
|
2548
|
-
nameFrom?: NameFromType;
|
|
2549
|
-
|
|
2550
|
-
/**
|
|
2551
|
-
* The image annotation for image nodes, which may be a human-readable string that is the contextualized annotation or a status string related to annotations.
|
|
2552
|
-
*/
|
|
2553
|
-
imageAnnotation?: string;
|
|
2554
|
-
|
|
2555
|
-
/**
|
|
2556
|
-
* The value for this node: for example the `value` attribute of an `<input> element.`
|
|
2557
|
-
*/
|
|
2558
|
-
value?: string;
|
|
2559
|
-
|
|
2560
|
-
/**
|
|
2561
|
-
* The HTML tag for this element, if this node is an HTML element.
|
|
2562
|
-
*/
|
|
2563
|
-
htmlTag?: string;
|
|
2564
|
-
|
|
2565
|
-
/**
|
|
2566
|
-
* The level of a heading or tree item.
|
|
2567
|
-
*/
|
|
2568
|
-
hierarchicalLevel?: number;
|
|
2569
|
-
|
|
2570
|
-
/**
|
|
2571
|
-
* The current caret bounds in screen coordinates.
|
|
2572
|
-
*/
|
|
2573
|
-
caretBounds?: Rect;
|
|
2574
|
-
|
|
2575
|
-
/**
|
|
2576
|
-
* The start and end index of each word in an inline text box.
|
|
2577
|
-
*/
|
|
2578
|
-
wordStarts?: number[];
|
|
2579
|
-
|
|
2580
|
-
wordEnds?: number[];
|
|
2581
|
-
|
|
2582
|
-
/**
|
|
2583
|
-
* The start indexes of each sentence within the node's name.
|
|
2584
|
-
*/
|
|
2585
|
-
sentenceStarts?: number[];
|
|
2586
|
-
|
|
2587
|
-
/**
|
|
2588
|
-
* The end indexes of each sentence within the node's name. For most nodes, the size of sentenceStarts array should be equal to the size of sentenceEnds array. Two exceptions are (1) node at the begining of a paragraph but the end of the node's sentences is in its following node. Such a node has one more start index. (2) Node at the end of a paragraph but the start of the node's sentences is in its previous node. Such a node has one more end index. For example,
|
|
2589
|
-
*
|
|
2590
|
-
* **Hello** world.
|
|
2591
|
-
*
|
|
2592
|
-
* has two nodes. The first one has one start index (i.e., 0) but no end index. The second node has one end index (i.e., 7) but no start index.
|
|
2593
|
-
*/
|
|
2594
|
-
sentenceEnds?: number[];
|
|
2595
|
-
|
|
2596
|
-
/**
|
|
2597
|
-
* The start index of each word within the node's name. This is different from wordStarts because it is not restricted to inline text boxes and can be used for any type of element.
|
|
2598
|
-
*/
|
|
2599
|
-
nonInlineTextWordStarts?: number[];
|
|
2600
|
-
|
|
2601
|
-
/**
|
|
2602
|
-
* The end index of each word within the node's name. This is different from wordEnds because it is not restricted to inline text boxes and can be used for any type of element.
|
|
2603
|
-
*/
|
|
2604
|
-
nonInlineTextWordEnds?: number[];
|
|
2605
|
-
|
|
2606
|
-
/**
|
|
2607
|
-
* The nodes, if any, which this node is specified to control via [`aria-controls`](https://www.w3.org/TR/wai-aria/#aria-controls).
|
|
2608
|
-
*/
|
|
2609
|
-
controls?: AutomationNode[];
|
|
2610
|
-
|
|
2611
|
-
/**
|
|
2612
|
-
* The nodes, if any, which form a description for this node.
|
|
2613
|
-
*/
|
|
2614
|
-
describedBy?: AutomationNode[];
|
|
2615
|
-
|
|
2616
|
-
/**
|
|
2617
|
-
* The nodes, if any, which may optionally be navigated to after this one. See [`aria-flowto`](https://www.w3.org/TR/wai-aria/#aria-flowto).
|
|
2618
|
-
*/
|
|
2619
|
-
flowTo?: AutomationNode[];
|
|
2620
|
-
|
|
2621
|
-
/**
|
|
2622
|
-
* The nodes, if any, which form a label for this element. Generally, the text from these elements will also be exposed as the element's accessible name, via the {@link automation.AutomationNode.name} attribute.
|
|
2623
|
-
*/
|
|
2624
|
-
labelledBy?: AutomationNode[];
|
|
2625
|
-
|
|
2626
|
-
/**
|
|
2627
|
-
* The node referred to by `aria-activedescendant`, where applicable
|
|
2628
|
-
*/
|
|
2629
|
-
activeDescendant?: AutomationNode;
|
|
2630
|
-
|
|
2631
|
-
/**
|
|
2632
|
-
* Reverse relationship for active descendant.
|
|
2633
|
-
*/
|
|
2634
|
-
activeDescendantFor?: AutomationNode[];
|
|
2635
|
-
|
|
2636
|
-
/**
|
|
2637
|
-
* The target of an in-page link.
|
|
2638
|
-
*/
|
|
2639
|
-
inPageLinkTarget?: AutomationNode;
|
|
2640
|
-
|
|
2641
|
-
/**
|
|
2642
|
-
* A node that provides more details about the current node.
|
|
2643
|
-
*/
|
|
2644
|
-
details?: AutomationNode[];
|
|
2645
|
-
|
|
2646
|
-
/**
|
|
2647
|
-
* A node that provides an error message for a current node.
|
|
2648
|
-
*/
|
|
2649
|
-
errorMessage?: AutomationNode;
|
|
2650
|
-
|
|
2651
|
-
/**
|
|
2652
|
-
* Reverse relationship for details.
|
|
2653
|
-
*/
|
|
2654
|
-
detailsFor?: AutomationNode[];
|
|
2655
|
-
|
|
2656
|
-
/**
|
|
2657
|
-
* Reverse relationship for errorMessage.
|
|
2658
|
-
*/
|
|
2659
|
-
errorMessageFor?: AutomationNode[];
|
|
2660
|
-
|
|
2661
|
-
/**
|
|
2662
|
-
* Reverse relationship for controls.
|
|
2663
|
-
*/
|
|
2664
|
-
controlledBy?: AutomationNode[];
|
|
2665
|
-
|
|
2666
|
-
/**
|
|
2667
|
-
* Reverse relationship for describedBy.
|
|
2668
|
-
*/
|
|
2669
|
-
descriptionFor?: AutomationNode[];
|
|
2670
|
-
|
|
2671
|
-
/**
|
|
2672
|
-
* Reverse relationship for flowTo.
|
|
2673
|
-
*/
|
|
2674
|
-
flowFrom?: AutomationNode[];
|
|
2675
|
-
|
|
2676
|
-
/**
|
|
2677
|
-
* Reverse relationship for labelledBy.
|
|
2678
|
-
*/
|
|
2679
|
-
labelFor?: AutomationNode[];
|
|
2680
|
-
|
|
2681
|
-
/**
|
|
2682
|
-
* The column header nodes for a table cell.
|
|
2683
|
-
*/
|
|
2684
|
-
tableCellColumnHeaders?: AutomationNode[];
|
|
2685
|
-
|
|
2686
|
-
/**
|
|
2687
|
-
* The row header nodes for a table cell.
|
|
2688
|
-
*/
|
|
2689
|
-
tableCellRowHeaders?: AutomationNode[];
|
|
2690
|
-
|
|
2691
|
-
/**
|
|
2692
|
-
* An array of standard actions available on this node.
|
|
2693
|
-
*/
|
|
2694
|
-
standardActions?: ActionType[];
|
|
2695
|
-
|
|
2696
|
-
/**
|
|
2697
|
-
* An array of custom actions.
|
|
2698
|
-
*/
|
|
2699
|
-
customActions?: CustomAction[];
|
|
2700
|
-
|
|
2701
|
-
/**
|
|
2702
|
-
* The action taken by calling `doDefault`.
|
|
2703
|
-
*/
|
|
2704
|
-
defaultActionVerb?: DefaultActionVerb;
|
|
2705
|
-
|
|
2706
|
-
/**
|
|
2707
|
-
* The URL that this link will navigate to.
|
|
2708
|
-
*/
|
|
2709
|
-
url?: string;
|
|
2710
|
-
|
|
2711
|
-
/**
|
|
2712
|
-
* The URL of this document.
|
|
2713
|
-
*/
|
|
2714
|
-
docUrl?: string;
|
|
2715
|
-
|
|
2716
|
-
/**
|
|
2717
|
-
* The title of this document.
|
|
2718
|
-
*/
|
|
2719
|
-
docTitle?: string;
|
|
2720
|
-
|
|
2721
|
-
/**
|
|
2722
|
-
* Whether this document has finished loading.
|
|
2723
|
-
*/
|
|
2724
|
-
docLoaded?: boolean;
|
|
2725
|
-
|
|
2726
|
-
/**
|
|
2727
|
-
* The proportion (out of 1.0) that this doc has completed loading.
|
|
2728
|
-
*/
|
|
2729
|
-
docLoadingProgress?: number;
|
|
2730
|
-
|
|
2731
|
-
/**
|
|
2732
|
-
* Scrollable container attributes.
|
|
2733
|
-
*/
|
|
2734
|
-
scrollX?: number;
|
|
2735
|
-
|
|
2736
|
-
scrollXMin?: number;
|
|
2737
|
-
|
|
2738
|
-
scrollXMax?: number;
|
|
2739
|
-
|
|
2740
|
-
scrollY?: number;
|
|
2741
|
-
|
|
2742
|
-
scrollYMin?: number;
|
|
2743
|
-
|
|
2744
|
-
scrollYMax?: number;
|
|
2745
|
-
|
|
2746
|
-
/**
|
|
2747
|
-
* Indicates whether this node is scrollable.
|
|
2748
|
-
*/
|
|
2749
|
-
scrollable?: boolean;
|
|
2750
|
-
|
|
2751
|
-
/**
|
|
2752
|
-
* The character index of the start of the selection within this editable text element; -1 if no selection.
|
|
2753
|
-
*/
|
|
2754
|
-
textSelStart?: number;
|
|
2755
|
-
|
|
2756
|
-
/**
|
|
2757
|
-
* The character index of the end of the selection within this editable text element; -1 if no selection.
|
|
2758
|
-
*/
|
|
2759
|
-
textSelEnd?: number;
|
|
2760
|
-
|
|
2761
|
-
/**
|
|
2762
|
-
* An array of Marker objects for this node.
|
|
2763
|
-
*/
|
|
2764
|
-
markers?: Marker[];
|
|
2765
|
-
|
|
2766
|
-
/**
|
|
2767
|
-
* If a selection is present, whether the anchor of the selection comes after its focus in the accessibility tree.
|
|
2768
|
-
*/
|
|
2769
|
-
isSelectionBackward?: boolean;
|
|
2770
|
-
|
|
2771
|
-
/**
|
|
2772
|
-
* The anchor node of the tree selection, if any.
|
|
2773
|
-
*/
|
|
2774
|
-
anchorObject?: AutomationNode;
|
|
2775
|
-
|
|
2776
|
-
/**
|
|
2777
|
-
* The anchor offset of the tree selection, if any.
|
|
2778
|
-
*/
|
|
2779
|
-
anchorOffset?: number;
|
|
2780
|
-
|
|
2781
|
-
/**
|
|
2782
|
-
* The affinity of the tree selection anchor, if any.
|
|
2783
|
-
*/
|
|
2784
|
-
anchorAffinity?: string;
|
|
2785
|
-
|
|
2786
|
-
/**
|
|
2787
|
-
* The focus node of the tree selection, if any.
|
|
2788
|
-
*/
|
|
2789
|
-
focusObject?: AutomationNode;
|
|
2790
|
-
|
|
2791
|
-
/**
|
|
2792
|
-
* The focus offset of the tree selection, if any.
|
|
2793
|
-
*/
|
|
2794
|
-
focusOffset?: number;
|
|
2795
|
-
|
|
2796
|
-
/**
|
|
2797
|
-
* The affinity of the tree selection focus, if any.
|
|
2798
|
-
*/
|
|
2799
|
-
focusAffinity?: string;
|
|
2800
|
-
|
|
2801
|
-
/**
|
|
2802
|
-
* The selection start node of the tree selection, if any.
|
|
2803
|
-
*/
|
|
2804
|
-
selectionStartObject?: AutomationNode;
|
|
2805
|
-
|
|
2806
|
-
/**
|
|
2807
|
-
* The selection start offset of the tree selection, if any.
|
|
2808
|
-
*/
|
|
2809
|
-
selectionStartOffset?: number;
|
|
2810
|
-
|
|
2811
|
-
/**
|
|
2812
|
-
* The affinity of the tree selection start, if any.
|
|
2813
|
-
*/
|
|
2814
|
-
selectionStartAffinity?: string;
|
|
2815
|
-
|
|
2816
|
-
/**
|
|
2817
|
-
* The selection end node of the tree selection, if any.
|
|
2818
|
-
*/
|
|
2819
|
-
selectionEndObject?: AutomationNode;
|
|
2820
|
-
|
|
2821
|
-
/**
|
|
2822
|
-
* The selection end offset of the tree selection, if any.
|
|
2823
|
-
*/
|
|
2824
|
-
selectionEndOffset?: number;
|
|
2825
|
-
|
|
2826
|
-
/**
|
|
2827
|
-
* The affinity of the tree selection end, if any.
|
|
2828
|
-
*/
|
|
2829
|
-
selectionEndAffinity?: string;
|
|
2830
|
-
|
|
2831
|
-
/**
|
|
2832
|
-
* Indicates that the node is marked user-select:none
|
|
2833
|
-
*/
|
|
2834
|
-
notUserSelectableStyle?: boolean;
|
|
2835
|
-
|
|
2836
|
-
/**
|
|
2837
|
-
* The current value for this range.
|
|
2838
|
-
*/
|
|
2839
|
-
valueForRange?: number;
|
|
2840
|
-
|
|
2841
|
-
/**
|
|
2842
|
-
* The minimum possible value for this range.
|
|
2843
|
-
*/
|
|
2844
|
-
minValueForRange?: number;
|
|
2845
|
-
|
|
2846
|
-
/**
|
|
2847
|
-
* The maximum possible value for this range.
|
|
2848
|
-
*/
|
|
2849
|
-
maxValueForRange?: number;
|
|
2850
|
-
|
|
2851
|
-
/**
|
|
2852
|
-
* The 1-based index of an item in a set.
|
|
2853
|
-
*/
|
|
2854
|
-
posInSet?: number;
|
|
2855
|
-
|
|
2856
|
-
/**
|
|
2857
|
-
* The number of items in a set;
|
|
2858
|
-
*/
|
|
2859
|
-
setSize?: number;
|
|
2860
|
-
|
|
2861
|
-
/**
|
|
2862
|
-
* The number of rows in this table as specified in the DOM.
|
|
2863
|
-
*/
|
|
2864
|
-
tableRowCount?: number;
|
|
2865
|
-
|
|
2866
|
-
/**
|
|
2867
|
-
* The number of rows in this table as specified by the page author.
|
|
2868
|
-
*/
|
|
2869
|
-
ariaRowCount?: number;
|
|
2870
|
-
|
|
2871
|
-
/**
|
|
2872
|
-
* The number of columns in this table as specified in the DOM.
|
|
2873
|
-
*/
|
|
2874
|
-
tableColumnCount?: number;
|
|
2875
|
-
|
|
2876
|
-
/**
|
|
2877
|
-
* The number of columns in this table as specified by the page author.
|
|
2878
|
-
*/
|
|
2879
|
-
ariaColumnCount?: number;
|
|
2880
|
-
|
|
2881
|
-
/**
|
|
2882
|
-
* The zero-based index of the column that this cell is in as specified in the DOM.
|
|
2883
|
-
*/
|
|
2884
|
-
tableCellColumnIndex?: number;
|
|
2885
|
-
|
|
2886
|
-
/**
|
|
2887
|
-
* The ARIA column index as specified by the page author.
|
|
2888
|
-
*/
|
|
2889
|
-
tableCellAriaColumnIndex?: number;
|
|
2890
|
-
|
|
2891
|
-
/**
|
|
2892
|
-
* The number of columns that this cell spans (default is 1).
|
|
2893
|
-
*/
|
|
2894
|
-
tableCellColumnSpan?: number;
|
|
2895
|
-
|
|
2896
|
-
/**
|
|
2897
|
-
* The zero-based index of the row that this cell is in as specified in the DOM.
|
|
2898
|
-
*/
|
|
2899
|
-
tableCellRowIndex?: number;
|
|
2900
|
-
|
|
2901
|
-
/**
|
|
2902
|
-
* The ARIA row index as specified by the page author.
|
|
2903
|
-
*/
|
|
2904
|
-
tableCellAriaRowIndex?: number;
|
|
2905
|
-
|
|
2906
|
-
/**
|
|
2907
|
-
* The number of rows that this cell spans (default is 1).
|
|
2908
|
-
*/
|
|
2909
|
-
tableCellRowSpan?: number;
|
|
2910
|
-
|
|
2911
|
-
/**
|
|
2912
|
-
* The corresponding column header for this cell.
|
|
2913
|
-
*/
|
|
2914
|
-
tableColumnHeader?: AutomationNode;
|
|
2915
|
-
|
|
2916
|
-
/**
|
|
2917
|
-
* The corresponding row header for this cell.
|
|
2918
|
-
*/
|
|
2919
|
-
tableRowHeader?: AutomationNode;
|
|
2920
|
-
|
|
2921
|
-
/**
|
|
2922
|
-
* The column index of this column node.
|
|
2923
|
-
*/
|
|
2924
|
-
tableColumnIndex?: number;
|
|
2925
|
-
|
|
2926
|
-
/**
|
|
2927
|
-
* The row index of this row node.
|
|
2928
|
-
*/
|
|
2929
|
-
tableRowIndex?: number;
|
|
2930
|
-
|
|
2931
|
-
/**
|
|
2932
|
-
* The type of region if this is the root of a live region. Possible values are 'polite' and 'assertive'.
|
|
2933
|
-
*/
|
|
2934
|
-
liveStatus?: string;
|
|
2935
|
-
|
|
2936
|
-
/**
|
|
2937
|
-
* The value of aria-relevant for a live region.
|
|
2938
|
-
*/
|
|
2939
|
-
liveRelevant?: string;
|
|
2940
|
-
|
|
2941
|
-
/**
|
|
2942
|
-
* The value of aria-atomic for a live region.
|
|
2943
|
-
*/
|
|
2944
|
-
liveAtomic?: boolean;
|
|
2945
|
-
|
|
2946
|
-
/**
|
|
2947
|
-
* The value of aria-busy for a live region or any other element.
|
|
2948
|
-
*/
|
|
2949
|
-
busy?: boolean;
|
|
2950
|
-
|
|
2951
|
-
/**
|
|
2952
|
-
* The type of live region if this node is inside a live region.
|
|
2953
|
-
*/
|
|
2954
|
-
containerLiveStatus?: string;
|
|
2955
|
-
|
|
2956
|
-
/**
|
|
2957
|
-
* The value of aria-relevant if this node is inside a live region.
|
|
2958
|
-
*/
|
|
2959
|
-
containerLiveRelevant?: string;
|
|
2960
|
-
|
|
2961
|
-
/**
|
|
2962
|
-
* The value of aria-atomic if this node is inside a live region.
|
|
2963
|
-
*/
|
|
2964
|
-
containerLiveAtomic?: boolean;
|
|
2965
|
-
|
|
2966
|
-
/**
|
|
2967
|
-
* The value of aria-busy if this node is inside a live region.
|
|
2968
|
-
*/
|
|
2969
|
-
containerLiveBusy?: boolean;
|
|
2970
|
-
|
|
2971
|
-
/**
|
|
2972
|
-
* Whether or not this node is a button.
|
|
2973
|
-
*/
|
|
2974
|
-
isButton: boolean;
|
|
2975
|
-
|
|
2976
|
-
/**
|
|
2977
|
-
* Whether or not this node is a checkbox.
|
|
2978
|
-
*/
|
|
2979
|
-
isCheckBox: boolean;
|
|
2980
|
-
|
|
2981
|
-
/**
|
|
2982
|
-
* Whether or not this node is a combobox.
|
|
2983
|
-
*/
|
|
2984
|
-
isComboBox: boolean;
|
|
2985
|
-
|
|
2986
|
-
/**
|
|
2987
|
-
* Whether or not this node is an image.
|
|
2988
|
-
*/
|
|
2989
|
-
isImage: boolean;
|
|
2990
|
-
|
|
2991
|
-
/**
|
|
2992
|
-
* Whether the node contains hidden nodes.
|
|
2993
|
-
*/
|
|
2994
|
-
hasHiddenOffscreenNodes: boolean;
|
|
2995
|
-
|
|
2996
|
-
/**
|
|
2997
|
-
* Aria auto complete.
|
|
2998
|
-
*/
|
|
2999
|
-
autoComplete?: string;
|
|
3000
|
-
|
|
3001
|
-
/**
|
|
3002
|
-
* The name of the programmatic backing object.
|
|
3003
|
-
*/
|
|
3004
|
-
className?: string;
|
|
3005
|
-
|
|
3006
|
-
/**
|
|
3007
|
-
* Marks this subtree as modal.
|
|
3008
|
-
*/
|
|
3009
|
-
modal?: boolean;
|
|
3010
|
-
|
|
3011
|
-
/**
|
|
3012
|
-
* A map containing all HTML attributes and their values
|
|
3013
|
-
*/
|
|
3014
|
-
htmlAttributes?: {[name: string]: any};
|
|
3015
|
-
|
|
3016
|
-
/**
|
|
3017
|
-
* The input type of a text field, such as "text" or "email".
|
|
3018
|
-
*/
|
|
3019
|
-
inputType?: string;
|
|
3020
|
-
|
|
3021
|
-
/**
|
|
3022
|
-
* The key that activates this widget.
|
|
3023
|
-
*/
|
|
3024
|
-
accessKey?: string;
|
|
3025
|
-
|
|
3026
|
-
/**
|
|
3027
|
-
* The value of the aria-invalid attribute, indicating the error type.
|
|
3028
|
-
*/
|
|
3029
|
-
ariaInvalidValue?: string;
|
|
3030
|
-
|
|
3031
|
-
/**
|
|
3032
|
-
* The CSS display attribute for this node, if applicable.
|
|
3033
|
-
*/
|
|
3034
|
-
display?: string;
|
|
3035
|
-
|
|
3036
|
-
/**
|
|
3037
|
-
* A data url with the contents of this object's image or thumbnail.
|
|
3038
|
-
*/
|
|
3039
|
-
imageDataUrl?: string;
|
|
3040
|
-
|
|
3041
|
-
/**
|
|
3042
|
-
* The author-provided language code for this subtree.
|
|
3043
|
-
*/
|
|
3044
|
-
language?: string;
|
|
3045
|
-
|
|
3046
|
-
/**
|
|
3047
|
-
* The detected language code for this subtree.
|
|
3048
|
-
*/
|
|
3049
|
-
detectedLanguage?: string;
|
|
3050
|
-
|
|
3051
|
-
/**
|
|
3052
|
-
* Indicates the availability and type of an interactive popup element.
|
|
3053
|
-
*/
|
|
3054
|
-
hasPopup?: HasPopup;
|
|
3055
|
-
|
|
3056
|
-
/**
|
|
3057
|
-
* Input restriction, if any, such as readonly or disabled: undefined - enabled control or other object that is not disabled Restriction.DISABLED - disallows input in itself + any descendants Restriction.READONLY - allow focus/selection but not input
|
|
3058
|
-
*/
|
|
3059
|
-
restriction?: string;
|
|
3060
|
-
|
|
3061
|
-
/**
|
|
3062
|
-
* Tri-state describing checkbox or radio button: 'false' | 'true' | 'mixed'
|
|
3063
|
-
*/
|
|
3064
|
-
checked?: string;
|
|
3065
|
-
|
|
3066
|
-
/**
|
|
3067
|
-
* The inner html of this element. Only populated for math content.
|
|
3068
|
-
*/
|
|
3069
|
-
innerHtml?: string;
|
|
3070
|
-
|
|
3071
|
-
/**
|
|
3072
|
-
* The RGBA foreground color of this subtree, as an integer.
|
|
3073
|
-
*/
|
|
3074
|
-
color?: number;
|
|
3075
|
-
|
|
3076
|
-
/**
|
|
3077
|
-
* The RGBA background color of this subtree, as an integer.
|
|
3078
|
-
*/
|
|
3079
|
-
backgroundColor?: number;
|
|
3080
|
-
|
|
3081
|
-
/**
|
|
3082
|
-
* The RGBA color of an input element whose value is a color.
|
|
3083
|
-
*/
|
|
3084
|
-
colorValue?: number;
|
|
3085
|
-
|
|
3086
|
-
/**
|
|
3087
|
-
* Indicates node text is subscript.
|
|
3088
|
-
*/
|
|
3089
|
-
subscript: boolean;
|
|
3090
|
-
|
|
3091
|
-
/**
|
|
3092
|
-
* Indicates node text is superscript.
|
|
3093
|
-
*/
|
|
3094
|
-
superscript: boolean;
|
|
3095
|
-
|
|
3096
|
-
/**
|
|
3097
|
-
* Indicates node text is bold.
|
|
3098
|
-
*/
|
|
3099
|
-
bold: boolean;
|
|
3100
|
-
|
|
3101
|
-
/**
|
|
3102
|
-
* Indicates node text is italic.
|
|
3103
|
-
*/
|
|
3104
|
-
italic: boolean;
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* Indicates node text is underline.
|
|
3108
|
-
*/
|
|
3109
|
-
underline: boolean;
|
|
3110
|
-
|
|
3111
|
-
/**
|
|
3112
|
-
* Indicates node text is line through.
|
|
3113
|
-
*/
|
|
3114
|
-
lineThrough: boolean;
|
|
3115
|
-
|
|
3116
|
-
/**
|
|
3117
|
-
* Indicates whether this node is selected, unselected, or neither.
|
|
3118
|
-
*/
|
|
3119
|
-
selected?: boolean;
|
|
3120
|
-
|
|
3121
|
-
/**
|
|
3122
|
-
* Indicates the font size of this node.
|
|
3123
|
-
*/
|
|
3124
|
-
fontSize?: number;
|
|
3125
|
-
|
|
3126
|
-
/**
|
|
3127
|
-
* Indicates the font family.
|
|
3128
|
-
*/
|
|
3129
|
-
fontFamily: string;
|
|
3130
|
-
|
|
3131
|
-
/**
|
|
3132
|
-
* Indicates whether the object functions as a text field which exposes its descendants. Use cases include the root of a content-editable region, an ARIA textbox which isn't currently editable and which has interactive descendants, and a element that has "design-mode" set to "on".
|
|
3133
|
-
*/
|
|
3134
|
-
nonAtomicTextFieldRoot: boolean;
|
|
3135
|
-
|
|
3136
|
-
/**
|
|
3137
|
-
* Indicates aria-current state.
|
|
3138
|
-
*/
|
|
3139
|
-
ariaCurrentState?: AriaCurrentState;
|
|
3140
|
-
|
|
3141
|
-
/**
|
|
3142
|
-
* Indicates invalid-state.
|
|
3143
|
-
*/
|
|
3144
|
-
invalidState?: InvalidState;
|
|
3145
|
-
|
|
3146
|
-
/**
|
|
3147
|
-
* The application id for a tree rooted at this node.
|
|
3148
|
-
*/
|
|
3149
|
-
appId?: string;
|
|
3150
|
-
|
|
3151
|
-
/**
|
|
3152
|
-
* Walking the tree.
|
|
3153
|
-
*/
|
|
3154
|
-
children: AutomationNode[];
|
|
3155
|
-
|
|
3156
|
-
parent?: AutomationNode;
|
|
3157
|
-
|
|
3158
|
-
firstChild?: AutomationNode;
|
|
3159
|
-
|
|
3160
|
-
lastChild?: AutomationNode;
|
|
3161
|
-
|
|
3162
|
-
previousSibling?: AutomationNode;
|
|
3163
|
-
|
|
3164
|
-
nextSibling?: AutomationNode;
|
|
3165
|
-
|
|
3166
|
-
previousOnLine?: AutomationNode;
|
|
3167
|
-
|
|
3168
|
-
nextOnLine?: AutomationNode;
|
|
3169
|
-
|
|
3170
|
-
previousFocus?: AutomationNode;
|
|
3171
|
-
|
|
3172
|
-
nextFocus?: AutomationNode;
|
|
3173
|
-
|
|
3174
|
-
previousWindowFocus?: AutomationNode;
|
|
3175
|
-
|
|
3176
|
-
nextWindowFocus?: AutomationNode;
|
|
3177
|
-
|
|
3178
|
-
/**
|
|
3179
|
-
* The index of this node in its parent node's list of children. If this is the root node, this will be undefined.
|
|
3180
|
-
*/
|
|
3181
|
-
indexInParent?: number;
|
|
3182
|
-
|
|
3183
|
-
/**
|
|
3184
|
-
* The sort direction of this node.
|
|
3185
|
-
*/
|
|
3186
|
-
sortDirection: SortDirectionType;
|
|
3187
|
-
|
|
3188
|
-
/**
|
|
3189
|
-
* Explicitly set to true when this node is clickable.
|
|
3190
|
-
*/
|
|
3191
|
-
clickable: boolean;
|
|
3192
|
-
|
|
3193
|
-
/**
|
|
3194
|
-
* Does the default action based on this node's role. This is generally the same action that would result from clicking the node such as expanding a treeitem, toggling a checkbox, selecting a radiobutton, or activating a button.
|
|
3195
|
-
*/
|
|
3196
|
-
doDefault(): void;
|
|
3197
|
-
|
|
3198
|
-
/**
|
|
3199
|
-
* Places focus on this node.
|
|
3200
|
-
*/
|
|
3201
|
-
focus(): void;
|
|
3202
|
-
|
|
3203
|
-
/**
|
|
3204
|
-
* Request a data url for the contents of an image, optionally resized. Pass zero for maxWidth and/or maxHeight for the original size.
|
|
3205
|
-
*/
|
|
3206
|
-
getImageData(
|
|
3207
|
-
|
|
3208
|
-
maxWidth: number,
|
|
3209
|
-
|
|
3210
|
-
maxHeight: number,
|
|
3211
|
-
): void;
|
|
3212
|
-
|
|
3213
|
-
/**
|
|
3214
|
-
* Does a hit test of the given global screen coordinates, and fires eventToFire on the resulting object.
|
|
3215
|
-
*/
|
|
3216
|
-
hitTest(
|
|
3217
|
-
|
|
3218
|
-
x: number,
|
|
3219
|
-
|
|
3220
|
-
y: number,
|
|
3221
|
-
|
|
3222
|
-
eventToFire: EventType,
|
|
3223
|
-
): void;
|
|
3224
|
-
|
|
3225
|
-
/**
|
|
3226
|
-
* Does a {@link automation.AutomationNode.hitTest}, and receives a callback with the resulting hit node.
|
|
3227
|
-
*/
|
|
3228
|
-
hitTestWithReply(
|
|
3229
|
-
|
|
3230
|
-
x: number,
|
|
3231
|
-
|
|
3232
|
-
y: number,
|
|
3233
|
-
|
|
3234
|
-
callback: (
|
|
3235
|
-
node: AutomationNode,
|
|
3236
|
-
) => void,
|
|
3237
|
-
): void;
|
|
3238
|
-
|
|
3239
|
-
/**
|
|
3240
|
-
* Scrolls this node to make it visible.
|
|
3241
|
-
*/
|
|
3242
|
-
makeVisible(): void;
|
|
3243
|
-
|
|
3244
|
-
/**
|
|
3245
|
-
* Performs custom action.
|
|
3246
|
-
*/
|
|
3247
|
-
performCustomAction(
|
|
3248
|
-
|
|
3249
|
-
customActionId: number,
|
|
3250
|
-
): void;
|
|
3251
|
-
|
|
3252
|
-
/**
|
|
3253
|
-
* Convenience method to perform a standard action supported by this node. For actions requiring additional arguments, call the specific binding e.g. `setSelection`.
|
|
3254
|
-
*/
|
|
3255
|
-
performStandardAction(
|
|
3256
|
-
|
|
3257
|
-
actionType: ActionType,
|
|
3258
|
-
): void;
|
|
3259
|
-
|
|
3260
|
-
/**
|
|
3261
|
-
* Replaces the selected text within a text field.
|
|
3262
|
-
*/
|
|
3263
|
-
replaceSelectedText(
|
|
3264
|
-
|
|
3265
|
-
value: string,
|
|
3266
|
-
): void;
|
|
3267
|
-
|
|
3268
|
-
/**
|
|
3269
|
-
* Sets accessibility focus. Accessibility focus is the node on which an extension tracks a user's focus. This may be conveyed through a focus ring or or speech output by the extension. Automation will dispatch more events to the accessibility focus such as location changes.
|
|
3270
|
-
*/
|
|
3271
|
-
setAccessibilityFocus(): void;
|
|
3272
|
-
|
|
3273
|
-
/**
|
|
3274
|
-
* Sets selection within a text field.
|
|
3275
|
-
*/
|
|
3276
|
-
setSelection(
|
|
3277
|
-
|
|
3278
|
-
startIndex: number,
|
|
3279
|
-
|
|
3280
|
-
endIndex: number,
|
|
3281
|
-
): void;
|
|
3282
|
-
|
|
3283
|
-
/**
|
|
3284
|
-
* Clears focus and sets this node as the starting point for the next time the user presses Tab or Shift+Tab.
|
|
3285
|
-
*/
|
|
3286
|
-
setSequentialFocusNavigationStartingPoint(): void;
|
|
3287
|
-
|
|
3288
|
-
/**
|
|
3289
|
-
* Sets the value of a text field.
|
|
3290
|
-
*/
|
|
3291
|
-
setValue(
|
|
3292
|
-
|
|
3293
|
-
value: string,
|
|
3294
|
-
): void;
|
|
3295
|
-
|
|
3296
|
-
/**
|
|
3297
|
-
* Show the context menu for this element, as if the user right-clicked.
|
|
3298
|
-
*/
|
|
3299
|
-
showContextMenu(): void;
|
|
3300
|
-
|
|
3301
|
-
/**
|
|
3302
|
-
* Resume playing any media within this tree.
|
|
3303
|
-
*/
|
|
3304
|
-
resumeMedia(): void;
|
|
3305
|
-
|
|
3306
|
-
/**
|
|
3307
|
-
* Start ducking any media within this tree.
|
|
3308
|
-
*/
|
|
3309
|
-
startDuckingMedia(): void;
|
|
3310
|
-
|
|
3311
|
-
/**
|
|
3312
|
-
* Stop ducking any media within this tree.
|
|
3313
|
-
*/
|
|
3314
|
-
stopDuckingMedia(): void;
|
|
3315
|
-
|
|
3316
|
-
/**
|
|
3317
|
-
* Suspend any media playing within this tree.
|
|
3318
|
-
*/
|
|
3319
|
-
suspendMedia(): void;
|
|
3320
|
-
|
|
3321
|
-
/**
|
|
3322
|
-
* Simulates long click on node.
|
|
3323
|
-
*/
|
|
3324
|
-
longClick(): void;
|
|
3325
|
-
|
|
3326
|
-
/**
|
|
3327
|
-
* Scrolls this scrollable container backward.
|
|
3328
|
-
*
|
|
3329
|
-
* @param callback Callback called for actions with a response.
|
|
3330
|
-
*/
|
|
3331
|
-
scrollBackward(
|
|
3332
|
-
|
|
3333
|
-
callback?: (
|
|
3334
|
-
result: boolean,
|
|
3335
|
-
) => void,
|
|
3336
|
-
): void;
|
|
3337
|
-
|
|
3338
|
-
/**
|
|
3339
|
-
* Scrolls this scrollable container forward.
|
|
3340
|
-
*
|
|
3341
|
-
* @param callback Callback called for actions with a response.
|
|
3342
|
-
*/
|
|
3343
|
-
scrollForward(
|
|
3344
|
-
|
|
3345
|
-
callback?: (
|
|
3346
|
-
result: boolean,
|
|
3347
|
-
) => void,
|
|
3348
|
-
): void;
|
|
3349
|
-
|
|
3350
|
-
/**
|
|
3351
|
-
* Scrolls this scrollable container up.
|
|
3352
|
-
*
|
|
3353
|
-
* @param callback Callback called for actions with a response.
|
|
3354
|
-
*/
|
|
3355
|
-
scrollUp(
|
|
3356
|
-
|
|
3357
|
-
callback?: (
|
|
3358
|
-
result: boolean,
|
|
3359
|
-
) => void,
|
|
3360
|
-
): void;
|
|
3361
|
-
|
|
3362
|
-
/**
|
|
3363
|
-
* Scrolls this scrollable container down.
|
|
3364
|
-
*
|
|
3365
|
-
* @param callback Callback called for actions with a response.
|
|
3366
|
-
*/
|
|
3367
|
-
scrollDown(
|
|
3368
|
-
|
|
3369
|
-
callback?: (
|
|
3370
|
-
result: boolean,
|
|
3371
|
-
) => void,
|
|
3372
|
-
): void;
|
|
3373
|
-
|
|
3374
|
-
/**
|
|
3375
|
-
* Scrolls this scrollable container left.
|
|
3376
|
-
*
|
|
3377
|
-
* @param callback Callback called for actions with a response.
|
|
3378
|
-
*/
|
|
3379
|
-
scrollLeft(
|
|
3380
|
-
|
|
3381
|
-
callback?: (
|
|
3382
|
-
result: boolean,
|
|
3383
|
-
) => void,
|
|
3384
|
-
): void;
|
|
3385
|
-
|
|
3386
|
-
/**
|
|
3387
|
-
* Scrolls this scrollable container right.
|
|
3388
|
-
*
|
|
3389
|
-
* @param callback Callback called for actions with a response.
|
|
3390
|
-
*/
|
|
3391
|
-
scrollRight(
|
|
3392
|
-
|
|
3393
|
-
callback?: (
|
|
3394
|
-
result: boolean,
|
|
3395
|
-
) => void,
|
|
3396
|
-
): void;
|
|
3397
|
-
|
|
3398
|
-
/**
|
|
3399
|
-
* Scrolls this scrollable container to the given point.
|
|
3400
|
-
*/
|
|
3401
|
-
scrollToPoint(
|
|
3402
|
-
|
|
3403
|
-
x: number,
|
|
3404
|
-
|
|
3405
|
-
y: number,
|
|
3406
|
-
): void;
|
|
3407
|
-
|
|
3408
|
-
/**
|
|
3409
|
-
* Sets this scrollable container's scroll offset.
|
|
3410
|
-
*/
|
|
3411
|
-
setScrollOffset(
|
|
3412
|
-
|
|
3413
|
-
x: number,
|
|
3414
|
-
|
|
3415
|
-
y: number,
|
|
3416
|
-
): void;
|
|
3417
|
-
|
|
3418
|
-
/**
|
|
3419
|
-
* Adds a listener for the given event type and event phase.
|
|
3420
|
-
*
|
|
3421
|
-
* @param listener A listener for events on an `AutomationNode`.
|
|
3422
|
-
*/
|
|
3423
|
-
addEventListener(
|
|
3424
|
-
|
|
3425
|
-
eventType: EventType,
|
|
3426
|
-
|
|
3427
|
-
listener: (
|
|
3428
|
-
event: AutomationEvent,
|
|
3429
|
-
) => void,
|
|
3430
|
-
|
|
3431
|
-
capture: boolean,
|
|
3432
|
-
): void;
|
|
3433
|
-
|
|
3434
|
-
/**
|
|
3435
|
-
* Removes a listener for the given event type and event phase.
|
|
3436
|
-
*
|
|
3437
|
-
* @param listener A listener for events on an `AutomationNode`.
|
|
3438
|
-
*/
|
|
3439
|
-
removeEventListener(
|
|
3440
|
-
|
|
3441
|
-
eventType: EventType,
|
|
3442
|
-
|
|
3443
|
-
listener: (
|
|
3444
|
-
event: AutomationEvent,
|
|
3445
|
-
) => void,
|
|
3446
|
-
|
|
3447
|
-
capture: boolean,
|
|
3448
|
-
): void;
|
|
3449
|
-
|
|
3450
|
-
/**
|
|
3451
|
-
* Gets the first node in this node's subtree which matches the given CSS selector and is within the same DOM context.
|
|
3452
|
-
*
|
|
3453
|
-
* If this node doesn't correspond directly with an HTML node in the DOM, querySelector will be run on this node's nearest HTML node ancestor. Note that this may result in the query returning a node which is not a descendant of this node.
|
|
3454
|
-
*
|
|
3455
|
-
* If the selector matches a node which doesn't directly correspond to an automation node (for example an element within an ARIA widget, where the ARIA widget forms one node of the automation tree, or an element which is hidden from accessibility via hiding it using CSS or using aria-hidden), this will return the nearest ancestor which does correspond to an automation node.
|
|
3456
|
-
*
|
|
3457
|
-
* @param callback Called when the result for a `query` is available.
|
|
3458
|
-
*/
|
|
3459
|
-
domQuerySelector(
|
|
3460
|
-
|
|
3461
|
-
selector: string,
|
|
3462
|
-
|
|
3463
|
-
callback: (
|
|
3464
|
-
node: AutomationNode,
|
|
3465
|
-
) => void,
|
|
3466
|
-
): void;
|
|
3467
|
-
|
|
3468
|
-
/**
|
|
3469
|
-
* Finds the first AutomationNode in this node's subtree which matches the given search parameters.
|
|
3470
|
-
*/
|
|
3471
|
-
find(
|
|
3472
|
-
|
|
3473
|
-
params: FindParams,
|
|
3474
|
-
): AutomationNode | undefined;
|
|
3475
|
-
|
|
3476
|
-
/**
|
|
3477
|
-
* Finds all the AutomationNodes in this node's subtree which matches the given search parameters.
|
|
3478
|
-
*/
|
|
3479
|
-
findAll(
|
|
3480
|
-
|
|
3481
|
-
params: FindParams,
|
|
3482
|
-
): AutomationNode[];
|
|
3483
|
-
|
|
3484
|
-
/**
|
|
3485
|
-
* Returns whether this node matches the given {@link automation.FindParams}.
|
|
3486
|
-
*/
|
|
3487
|
-
matches(
|
|
3488
|
-
|
|
3489
|
-
params: FindParams,
|
|
3490
|
-
): boolean;
|
|
3491
|
-
|
|
3492
|
-
getNextTextMatch(
|
|
3493
|
-
|
|
3494
|
-
searchStr: string,
|
|
3495
|
-
|
|
3496
|
-
backward: boolean,
|
|
3497
|
-
): AutomationNode | undefined;
|
|
3498
|
-
|
|
3499
|
-
/**
|
|
3500
|
-
* Returns the detected languages for the provided string attribute as an array of LanguageSpan objects. There are several guarantees about the format of the LanguageSpan array: 1. Is either empty or contains LanguageSpans that cover all indices in the associated string attribute value. 2. Is sorted by increasing startIndex (those with smaller startIndex appear first). 3. LanguageSpans are non-overlapping and contain exactly one language.
|
|
3501
|
-
*/
|
|
3502
|
-
languageAnnotationForStringAttribute(
|
|
3503
|
-
|
|
3504
|
-
attribute: string,
|
|
3505
|
-
): LanguageSpan[];
|
|
3506
|
-
|
|
3507
|
-
/**
|
|
3508
|
-
* Creates a position object backed by Chrome's accessibility position support.
|
|
3509
|
-
*/
|
|
3510
|
-
createPosition(
|
|
3511
|
-
|
|
3512
|
-
type: PositionType,
|
|
3513
|
-
|
|
3514
|
-
offset: number,
|
|
3515
|
-
|
|
3516
|
-
isUpstream?: boolean,
|
|
3517
|
-
): AutomationPosition | undefined;
|
|
3518
|
-
}
|
|
3519
|
-
|
|
3520
|
-
/**
|
|
3521
|
-
* Get the automation tree for the tab with the given tabId, or the current tab if no tabID is given, enabling automation if necessary. Returns a tree with a placeholder root node; listen for the "loadComplete" event to get a notification that the tree has fully loaded (the previous root node reference will stop working at or before this point).
|
|
3522
|
-
*
|
|
3523
|
-
* @param callback Called when the `AutomationNode` for the page is available.
|
|
3524
|
-
*/
|
|
3525
|
-
export function getTree(
|
|
3526
|
-
|
|
3527
|
-
tabId?: number,
|
|
3528
|
-
|
|
3529
|
-
callback?: (
|
|
3530
|
-
rootNode: AutomationNode,
|
|
3531
|
-
) => void,
|
|
3532
|
-
): void;
|
|
3533
|
-
|
|
3534
|
-
/**
|
|
3535
|
-
* Get the automation tree for the whole desktop which consists of all on screen views. Note this API is currently only supported on Chrome OS.
|
|
3536
|
-
*
|
|
3537
|
-
* @param callback Called when the `AutomationNode` for the page is available.
|
|
3538
|
-
*/
|
|
3539
|
-
export function getDesktop(
|
|
3540
|
-
|
|
3541
|
-
callback: (
|
|
3542
|
-
rootNode: AutomationNode,
|
|
3543
|
-
) => void,
|
|
3544
|
-
): void;
|
|
3545
|
-
|
|
3546
|
-
/**
|
|
3547
|
-
* Get the automation node that currently has focus, globally. Will return null if none of the nodes in any loaded trees have focus.
|
|
3548
|
-
*
|
|
3549
|
-
* @param callback Called with the `AutomationNode` that currently has focus.
|
|
3550
|
-
*/
|
|
3551
|
-
export function getFocus(
|
|
3552
|
-
|
|
3553
|
-
callback: (
|
|
3554
|
-
focusedNode: AutomationNode,
|
|
3555
|
-
) => void,
|
|
3556
|
-
): void;
|
|
3557
|
-
|
|
3558
|
-
/**
|
|
3559
|
-
* Get the automation node that currently has accessibility focus, globally. Will return null if none of the nodes in any loaded trees have accessibility focus.
|
|
3560
|
-
*
|
|
3561
|
-
* @param callback Called with the `AutomationNode` that currently has accessibility focus.
|
|
3562
|
-
*/
|
|
3563
|
-
export function getAccessibilityFocus(
|
|
3564
|
-
|
|
3565
|
-
callback: (
|
|
3566
|
-
focusedNode: AutomationNode,
|
|
3567
|
-
) => void,
|
|
3568
|
-
): void;
|
|
3569
|
-
|
|
3570
|
-
/**
|
|
3571
|
-
* Add a tree change observer. Tree change observers are static/global, they listen to changes across all trees. Pass a filter to determine what specific tree changes to listen to, and note that listnening to all tree changes can be expensive.
|
|
3572
|
-
*
|
|
3573
|
-
* @param observer A listener for changes on the `AutomationNode` tree.
|
|
3574
|
-
*/
|
|
3575
|
-
export function addTreeChangeObserver(
|
|
3576
|
-
|
|
3577
|
-
filter: TreeChangeObserverFilter,
|
|
3578
|
-
|
|
3579
|
-
observer: (
|
|
3580
|
-
treeChange: TreeChange,
|
|
3581
|
-
) => void,
|
|
3582
|
-
): void;
|
|
3583
|
-
|
|
3584
|
-
/**
|
|
3585
|
-
* Remove a tree change observer.
|
|
3586
|
-
*
|
|
3587
|
-
* @param observer A listener for changes on the `AutomationNode` tree.
|
|
3588
|
-
*/
|
|
3589
|
-
export function removeTreeChangeObserver(
|
|
3590
|
-
|
|
3591
|
-
observer: (
|
|
3592
|
-
treeChange: TreeChange,
|
|
3593
|
-
) => void,
|
|
3594
|
-
): void;
|
|
3595
|
-
|
|
3596
|
-
/**
|
|
3597
|
-
* Sets the selection in a tree. This creates a selection in a single tree (anchorObject and focusObject must have the same root). Everything in the tree between the two node/offset pairs gets included in the selection. The anchor is where the user started the selection, while the focus is the point at which the selection gets extended e.g. when dragging with a mouse or using the keyboard. For nodes with the role staticText, the offset gives the character offset within the value where the selection starts or ends, respectively.
|
|
3598
|
-
*/
|
|
3599
|
-
export function setDocumentSelection(
|
|
3600
|
-
|
|
3601
|
-
params: SetDocumentSelectionParams,
|
|
3602
|
-
): void;
|
|
3603
|
-
}
|
|
3604
|
-
|
|
3605
2015
|
/**
|
|
3606
2016
|
* Use the `chrome.bluetooth` API to connect to a Bluetooth device. All functions report failures via chrome.runtime.lastError.
|
|
3607
2017
|
*
|
|
@@ -29122,7 +27532,6 @@ declare namespace chrome {
|
|
|
29122
27532
|
* Use the `chrome.tabCapture` API to interact with tab media streams.
|
|
29123
27533
|
*
|
|
29124
27534
|
* @chrome-permission tabCapture
|
|
29125
|
-
* @chrome-disallow-service-workers
|
|
29126
27535
|
*/
|
|
29127
27536
|
export namespace tabCapture {
|
|
29128
27537
|
|
|
@@ -29192,6 +27601,7 @@ declare namespace chrome {
|
|
|
29192
27601
|
*
|
|
29193
27602
|
* @param options Configures the returned media stream.
|
|
29194
27603
|
* @param callback Callback with either the tab capture MediaStream or `null`. `null` indicates an error has occurred and the client may query {@link runtime.lastError} to access the error details.
|
|
27604
|
+
* @chrome-disallow-service-workers
|
|
29195
27605
|
*/
|
|
29196
27606
|
export function capture(
|
|
29197
27607
|
|