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

Side by Side Diff: third_party/closure_compiler/externs/automation.js

Issue 2917123002: Support role description in automation/ChromeVox (Closed)
Patch Set: Changes to c/c/e/a/PRESUBMIT.py Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file was generated by: 5 // This file was generated by:
6 // tools/json_schema_compiler/compiler.py. 6 // tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now 7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.automation.FooType'. 8 // 'chrome.automation.FooType'.
9 // Please run the closure compiler before committing changes. 9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 APPLICATION: 'application', 83 APPLICATION: 'application',
84 ARTICLE: 'article', 84 ARTICLE: 'article',
85 AUDIO: 'audio', 85 AUDIO: 'audio',
86 BANNER: 'banner', 86 BANNER: 'banner',
87 BLOCKQUOTE: 'blockquote', 87 BLOCKQUOTE: 'blockquote',
88 BUSY_INDICATOR: 'busyIndicator', 88 BUSY_INDICATOR: 'busyIndicator',
89 BUTTON: 'button', 89 BUTTON: 'button',
90 BUTTON_DROP_DOWN: 'buttonDropDown', 90 BUTTON_DROP_DOWN: 'buttonDropDown',
91 CANVAS: 'canvas', 91 CANVAS: 'canvas',
92 CAPTION: 'caption', 92 CAPTION: 'caption',
93 CARET: 'caret',
93 CELL: 'cell', 94 CELL: 'cell',
94 CHECK_BOX: 'checkBox', 95 CHECK_BOX: 'checkBox',
95 CLIENT: 'client', 96 CLIENT: 'client',
96 COLOR_WELL: 'colorWell', 97 COLOR_WELL: 'colorWell',
97 COLUMN_HEADER: 'columnHeader', 98 COLUMN_HEADER: 'columnHeader',
98 COLUMN: 'column', 99 COLUMN: 'column',
99 COMBO_BOX: 'comboBox', 100 COMBO_BOX: 'comboBox',
100 COMPLEMENTARY: 'complementary', 101 COMPLEMENTARY: 'complementary',
101 CONTENT_INFO: 'contentInfo', 102 CONTENT_INFO: 'contentInfo',
102 DATE: 'date', 103 DATE: 'date',
103 DATE_TIME: 'dateTime', 104 DATE_TIME: 'dateTime',
104 DEFINITION: 'definition', 105 DEFINITION: 'definition',
105 DESCRIPTION_LIST_DETAIL: 'descriptionListDetail', 106 DESCRIPTION_LIST_DETAIL: 'descriptionListDetail',
106 DESCRIPTION_LIST: 'descriptionList', 107 DESCRIPTION_LIST: 'descriptionList',
107 DESCRIPTION_LIST_TERM: 'descriptionListTerm', 108 DESCRIPTION_LIST_TERM: 'descriptionListTerm',
108 DESKTOP: 'desktop', 109 DESKTOP: 'desktop',
109 DETAILS: 'details', 110 DETAILS: 'details',
110 DIALOG: 'dialog', 111 DIALOG: 'dialog',
111 DIRECTORY: 'directory', 112 DIRECTORY: 'directory',
112 DISCLOSURE_TRIANGLE: 'disclosureTriangle', 113 DISCLOSURE_TRIANGLE: 'disclosureTriangle',
113 DIV: 'div',
114 DOCUMENT: 'document', 114 DOCUMENT: 'document',
115 EMBEDDED_OBJECT: 'embeddedObject', 115 EMBEDDED_OBJECT: 'embeddedObject',
116 FEED: 'feed', 116 FEED: 'feed',
117 FIGCAPTION: 'figcaption', 117 FIGCAPTION: 'figcaption',
118 FIGURE: 'figure', 118 FIGURE: 'figure',
119 FOOTER: 'footer', 119 FOOTER: 'footer',
120 FORM: 'form', 120 FORM: 'form',
121 GENERIC_CONTAINER: 'genericContainer',
121 GRID: 'grid', 122 GRID: 'grid',
122 GROUP: 'group', 123 GROUP: 'group',
123 HEADING: 'heading', 124 HEADING: 'heading',
124 IFRAME: 'iframe', 125 IFRAME: 'iframe',
125 IFRAME_PRESENTATIONAL: 'iframePresentational', 126 IFRAME_PRESENTATIONAL: 'iframePresentational',
126 IGNORED: 'ignored', 127 IGNORED: 'ignored',
127 IMAGE_MAP_LINK: 'imageMapLink', 128 IMAGE_MAP_LINK: 'imageMapLink',
128 IMAGE_MAP: 'imageMap', 129 IMAGE_MAP: 'imageMap',
129 IMAGE: 'image', 130 IMAGE: 'image',
130 INLINE_TEXT_BOX: 'inlineTextBox', 131 INLINE_TEXT_BOX: 'inlineTextBox',
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 WEB_VIEW: 'webView', 208 WEB_VIEW: 'webView',
208 WINDOW: 'window', 209 WINDOW: 'window',
209 }; 210 };
210 211
211 /** 212 /**
212 * @enum {string} 213 * @enum {string}
213 * @see https://developer.chrome.com/extensions/automation#type-StateType 214 * @see https://developer.chrome.com/extensions/automation#type-StateType
214 */ 215 */
215 chrome.automation.StateType = { 216 chrome.automation.StateType = {
216 BUSY: 'busy', 217 BUSY: 'busy',
217 CHECKED: 'checked',
218 COLLAPSED: 'collapsed', 218 COLLAPSED: 'collapsed',
219 DEFAULT: 'default', 219 DEFAULT: 'default',
220 DISABLED: 'disabled', 220 DISABLED: 'disabled',
221 EDITABLE: 'editable', 221 EDITABLE: 'editable',
222 EXPANDED: 'expanded', 222 EXPANDED: 'expanded',
223 FOCUSABLE: 'focusable', 223 FOCUSABLE: 'focusable',
224 FOCUSED: 'focused', 224 FOCUSED: 'focused',
225 HASPOPUP: 'haspopup', 225 HASPOPUP: 'haspopup',
226 HORIZONTAL: 'horizontal', 226 HORIZONTAL: 'horizontal',
227 HOVERED: 'hovered', 227 HOVERED: 'hovered',
(...skipping 25 matching lines...) Expand all
253 NODE_REMOVED: 'nodeRemoved', 253 NODE_REMOVED: 'nodeRemoved',
254 }; 254 };
255 255
256 /** 256 /**
257 * @enum {string} 257 * @enum {string}
258 * @see https://developer.chrome.com/extensions/automation#type-NameFromType 258 * @see https://developer.chrome.com/extensions/automation#type-NameFromType
259 */ 259 */
260 chrome.automation.NameFromType = { 260 chrome.automation.NameFromType = {
261 UNINITIALIZED: 'uninitialized', 261 UNINITIALIZED: 'uninitialized',
262 ATTRIBUTE: 'attribute', 262 ATTRIBUTE: 'attribute',
263 ATTRIBUTE_EXPLICITLY_EMPTY: 'attributeExplicitlyEmpty',
263 CONTENTS: 'contents', 264 CONTENTS: 'contents',
264 PLACEHOLDER: 'placeholder', 265 PLACEHOLDER: 'placeholder',
265 RELATED_ELEMENT: 'relatedElement', 266 RELATED_ELEMENT: 'relatedElement',
266 VALUE: 'value', 267 VALUE: 'value',
267 }; 268 };
268 269
269 /** 270 /**
270 * @typedef {{ 271 * @typedef {{
271 * left: number, 272 * left: number,
272 * top: number, 273 * top: number,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 chrome.automation.AutomationNode.prototype.description; 429 chrome.automation.AutomationNode.prototype.description;
429 430
430 /** 431 /**
431 * The placeholder for this text field, if any. 432 * The placeholder for this text field, if any.
432 * @type {(string|undefined)} 433 * @type {(string|undefined)}
433 * @see https://developer.chrome.com/extensions/automation#type-placeholder 434 * @see https://developer.chrome.com/extensions/automation#type-placeholder
434 */ 435 */
435 chrome.automation.AutomationNode.prototype.placeholder; 436 chrome.automation.AutomationNode.prototype.placeholder;
436 437
437 /** 438 /**
439 * The role description for this node.
440 * @type {(string|undefined)}
441 * @see https://developer.chrome.com/extensions/automation#type-roleDescription
442 */
443 chrome.automation.AutomationNode.prototype.roleDescription;
444
445 /**
438 * The accessible name for this node, via the <a href="http://www.w3.org/TR/wai- aria/roles#namecalculation"> Accessible Name Calculation</a> process. 446 * The accessible name for this node, via the <a href="http://www.w3.org/TR/wai- aria/roles#namecalculation"> Accessible Name Calculation</a> process.
439 * @type {(string|undefined)} 447 * @type {(string|undefined)}
440 * @see https://developer.chrome.com/extensions/automation#type-name 448 * @see https://developer.chrome.com/extensions/automation#type-name
441 */ 449 */
442 chrome.automation.AutomationNode.prototype.name; 450 chrome.automation.AutomationNode.prototype.name;
443 451
444 /** 452 /**
445 * The source of the name. 453 * The source of the name.
446 * @type {(!chrome.automation.NameFromType|undefined)} 454 * @type {(!chrome.automation.NameFromType|undefined)}
447 * @see https://developer.chrome.com/extensions/automation#type-nameFrom 455 * @see https://developer.chrome.com/extensions/automation#type-nameFrom
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 chrome.automation.AutomationNode.prototype.imageDataUrl; 920 chrome.automation.AutomationNode.prototype.imageDataUrl;
913 921
914 /** 922 /**
915 * The language code for this subtree. 923 * The language code for this subtree.
916 * @type {(string|undefined)} 924 * @type {(string|undefined)}
917 * @see https://developer.chrome.com/extensions/automation#type-language 925 * @see https://developer.chrome.com/extensions/automation#type-language
918 */ 926 */
919 chrome.automation.AutomationNode.prototype.language; 927 chrome.automation.AutomationNode.prototype.language;
920 928
921 /** 929 /**
922 * If a checkbox or toggle button is in the mixed state. 930 * Tri-state describing checkbox or radio button: 'false' | 'true' | 'mixed'
923 * @type {(boolean|undefined)} 931 * @type {(string|undefined)}
924 * @see https://developer.chrome.com/extensions/automation#type-buttonMixed 932 * @see https://developer.chrome.com/extensions/automation#type-checked
925 */ 933 */
926 chrome.automation.AutomationNode.prototype.buttonMixed; 934 chrome.automation.AutomationNode.prototype.checked;
927 935
928 /** 936 /**
929 * The RGBA foreground color of this subtree, as an integer. 937 * The RGBA foreground color of this subtree, as an integer.
930 * @type {(number|undefined)} 938 * @type {(number|undefined)}
931 * @see https://developer.chrome.com/extensions/automation#type-color 939 * @see https://developer.chrome.com/extensions/automation#type-color
932 */ 940 */
933 chrome.automation.AutomationNode.prototype.color; 941 chrome.automation.AutomationNode.prototype.color;
934 942
935 /** 943 /**
936 * The RGBA background color of this subtree, as an integer. 944 * The RGBA background color of this subtree, as an integer.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 * tree between the two node/offset pairs gets included in the selection. The 1216 * tree between the two node/offset pairs gets included in the selection. The
1209 * anchor is where the user started the selection, while the focus is the point 1217 * anchor is where the user started the selection, while the focus is the point
1210 * at which the selection gets extended e.g. when dragging with a mouse or using 1218 * at which the selection gets extended e.g. when dragging with a mouse or using
1211 * the keyboard. For nodes with the role staticText, the offset gives the 1219 * the keyboard. For nodes with the role staticText, the offset gives the
1212 * character offset within the value where the selection starts or ends, 1220 * character offset within the value where the selection starts or ends,
1213 * respectively. 1221 * respectively.
1214 * @param {!chrome.automation.SetDocumentSelectionParams} params 1222 * @param {!chrome.automation.SetDocumentSelectionParams} params
1215 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection 1223 * @see https://developer.chrome.com/extensions/automation#method-setDocumentSel ection
1216 */ 1224 */
1217 chrome.automation.setDocumentSelection = function(params) {}; 1225 chrome.automation.setDocumentSelection = function(params) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698