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

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

Issue 755883006: Remove unused roles(EditableText, SplitGroup, GrowArea) from Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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;
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | chrome/test/data/extensions/api_test/automation/tests/unit/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698