OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 var AutomationEvent = require('automationEvent').AutomationEvent; | 5 var AutomationEvent = require('automationEvent').AutomationEvent; |
6 var automationInternal = | 6 var automationInternal = |
7 require('binding').Binding.create('automationInternal').generate(); | 7 require('binding').Binding.create('automationInternal').generate(); |
8 var IsInteractPermitted = | 8 var IsInteractPermitted = |
9 requireNative('automationInternal').IsInteractPermitted; | 9 requireNative('automationInternal').IsInteractPermitted; |
10 | 10 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 'floatAttributes', | 345 'floatAttributes', |
346 'htmlAttributes', | 346 'htmlAttributes', |
347 'intAttributes', | 347 'intAttributes', |
348 'intlistAttributes', | 348 'intlistAttributes', |
349 'stringAttributes' | 349 'stringAttributes' |
350 ]; | 350 ]; |
351 | 351 |
352 /** | 352 /** |
353 * Maps an attribute name to another attribute who's value is an id or an array | 353 * Maps an attribute name to another attribute who's value is an id or an array |
354 * of ids referencing an AutomationNode. | 354 * of ids referencing an AutomationNode. |
355 * @param {!Object.<string, string>} | 355 * @param {!Object<string, string>} |
356 * @const | 356 * @const |
357 */ | 357 */ |
358 var ATTRIBUTE_NAME_TO_ID_ATTRIBUTE = { | 358 var ATTRIBUTE_NAME_TO_ID_ATTRIBUTE = { |
359 'aria-activedescendant': 'activedescendantId', | 359 'aria-activedescendant': 'activedescendantId', |
360 'aria-controls': 'controlsIds', | 360 'aria-controls': 'controlsIds', |
361 'aria-describedby': 'describedbyIds', | 361 'aria-describedby': 'describedbyIds', |
362 'aria-flowto': 'flowtoIds', | 362 'aria-flowto': 'flowtoIds', |
363 'aria-labelledby': 'labelledbyIds', | 363 'aria-labelledby': 'labelledbyIds', |
364 'aria-owns': 'ownsIds' | 364 'aria-owns': 'ownsIds' |
365 }; | 365 }; |
366 | 366 |
367 /** | 367 /** |
368 * A set of attributes ignored in the automation API. | 368 * A set of attributes ignored in the automation API. |
369 * @param {!Object.<string, boolean>} | 369 * @param {!Object<string, boolean>} |
370 * @const | 370 * @const |
371 */ | 371 */ |
372 var ATTRIBUTE_BLACKLIST = {'activedescendantId': true, | 372 var ATTRIBUTE_BLACKLIST = {'activedescendantId': true, |
373 'childTreeId': true, | 373 'childTreeId': true, |
374 'controlsIds': true, | 374 'controlsIds': true, |
375 'describedbyIds': true, | 375 'describedbyIds': true, |
376 'flowtoIds': true, | 376 'flowtoIds': true, |
377 'labelledbyIds': true, | 377 'labelledbyIds': true, |
378 'ownsIds': true | 378 'ownsIds': true |
379 }; | 379 }; |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 'attributes', | 983 'attributes', |
984 'indexInParent', | 984 'indexInParent', |
985 'root'] }); | 985 'root'] }); |
986 | 986 |
987 var AutomationRootNode = utils.expose('AutomationRootNode', | 987 var AutomationRootNode = utils.expose('AutomationRootNode', |
988 AutomationRootNodeImpl, | 988 AutomationRootNodeImpl, |
989 { superclass: AutomationNode }); | 989 { superclass: AutomationNode }); |
990 | 990 |
991 exports.AutomationNode = AutomationNode; | 991 exports.AutomationNode = AutomationNode; |
992 exports.AutomationRootNode = AutomationRootNode; | 992 exports.AutomationRootNode = AutomationRootNode; |
OLD | NEW |