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

Side by Side Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 1046883002: Use multiline attribute to check for IA2_STATE_MULTILINE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing textarea Created 5 years, 8 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 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 if (this.findAttribute_(attr, spec, nodeData) !== undefined) { 819 if (this.findAttribute_(attr, spec, nodeData) !== undefined) {
820 this.mixinAttributes_(nodeImpl, LiveRegionMixinAttributes, nodeData); 820 this.mixinAttributes_(nodeImpl, LiveRegionMixinAttributes, nodeData);
821 } 821 }
822 822
823 // If this is a link, set link attributes 823 // If this is a link, set link attributes
824 if (nodeData.role == 'link') { 824 if (nodeData.role == 'link') {
825 this.mixinAttributes_(nodeImpl, LinkMixinAttributes, nodeData); 825 this.mixinAttributes_(nodeImpl, LinkMixinAttributes, nodeData);
826 } 826 }
827 827
828 // If this is an editable text area, set editable text attributes. 828 // If this is an editable text area, set editable text attributes.
829 if (nodeData.role == schema.RoleType.textField || 829 if (nodeData.role == schema.RoleType.textField) {
830 nodeData.role == schema.RoleType.textArea) {
831 this.mixinAttributes_(nodeImpl, EditableTextMixinAttributes, nodeData); 830 this.mixinAttributes_(nodeImpl, EditableTextMixinAttributes, nodeData);
832 } 831 }
833 832
834 // If this is a range type, set range attributes. 833 // If this is a range type, set range attributes.
835 if (nodeData.role == schema.RoleType.progressIndicator || 834 if (nodeData.role == schema.RoleType.progressIndicator ||
836 nodeData.role == schema.RoleType.scrollBar || 835 nodeData.role == schema.RoleType.scrollBar ||
837 nodeData.role == schema.RoleType.slider || 836 nodeData.role == schema.RoleType.slider ||
838 nodeData.role == schema.RoleType.spinButton) { 837 nodeData.role == schema.RoleType.spinButton) {
839 this.mixinAttributes_(nodeImpl, RangeMixinAttributes, nodeData); 838 this.mixinAttributes_(nodeImpl, RangeMixinAttributes, nodeData);
840 } 839 }
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 'attributes', 1037 'attributes',
1039 'indexInParent', 1038 'indexInParent',
1040 'root'] }); 1039 'root'] });
1041 1040
1042 var AutomationRootNode = utils.expose('AutomationRootNode', 1041 var AutomationRootNode = utils.expose('AutomationRootNode',
1043 AutomationRootNodeImpl, 1042 AutomationRootNodeImpl,
1044 { superclass: AutomationNode }); 1043 { superclass: AutomationNode });
1045 1044
1046 exports.AutomationNode = AutomationNode; 1045 exports.AutomationNode = AutomationNode;
1047 exports.AutomationRootNode = AutomationRootNode; 1046 exports.AutomationRootNode = AutomationRootNode;
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698