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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 break; | 766 break; |
767 } | 767 } |
768 } | 768 } |
769 | 769 |
770 // If this is a link, set link attributes | 770 // If this is a link, set link attributes |
771 if (nodeData.role == 'link') { | 771 if (nodeData.role == 'link') { |
772 this.mixinAttributes_(nodeImpl, LinkMixinAttributes, nodeData); | 772 this.mixinAttributes_(nodeImpl, LinkMixinAttributes, nodeData); |
773 } | 773 } |
774 | 774 |
775 // If this is an editable text area, set editable text attributes. | 775 // If this is an editable text area, set editable text attributes. |
776 if (nodeData.role == schema.RoleType.editableText || | 776 if (nodeData.role == schema.RoleType.textField || |
777 nodeData.role == schema.RoleType.textField || | |
778 nodeData.role == schema.RoleType.textArea) { | 777 nodeData.role == schema.RoleType.textArea) { |
779 this.mixinAttributes_(nodeImpl, EditableTextMixinAttributes, nodeData); | 778 this.mixinAttributes_(nodeImpl, EditableTextMixinAttributes, nodeData); |
780 } | 779 } |
781 | 780 |
782 // If this is a range type, set range attributes. | 781 // If this is a range type, set range attributes. |
783 if (nodeData.role == schema.RoleType.progressIndicator || | 782 if (nodeData.role == schema.RoleType.progressIndicator || |
784 nodeData.role == schema.RoleType.scrollBar || | 783 nodeData.role == schema.RoleType.scrollBar || |
785 nodeData.role == schema.RoleType.slider || | 784 nodeData.role == schema.RoleType.slider || |
786 nodeData.role == schema.RoleType.spinButton) { | 785 nodeData.role == schema.RoleType.spinButton) { |
787 this.mixinAttributes_(nodeImpl, RangeMixinAttributes, nodeData); | 786 this.mixinAttributes_(nodeImpl, RangeMixinAttributes, nodeData); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 'attributes', | 983 'attributes', |
985 'indexInParent', | 984 'indexInParent', |
986 'root'] }); | 985 'root'] }); |
987 | 986 |
988 var AutomationRootNode = utils.expose('AutomationRootNode', | 987 var AutomationRootNode = utils.expose('AutomationRootNode', |
989 AutomationRootNodeImpl, | 988 AutomationRootNodeImpl, |
990 { superclass: AutomationNode }); | 989 { superclass: AutomationNode }); |
991 | 990 |
992 exports.AutomationNode = AutomationNode; | 991 exports.AutomationNode = AutomationNode; |
993 exports.AutomationRootNode = AutomationRootNode; | 992 exports.AutomationRootNode = AutomationRootNode; |
OLD | NEW |