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

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

Issue 2640503002: Disable next compatibility mode for ChromeVox on dev channel (Closed)
Patch Set: m Created 3 years, 11 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 exceptionHandler = require('uncaught_exception_handler'); 8 var exceptionHandler = require('uncaught_exception_handler');
9 var IsInteractPermitted = 9 var IsInteractPermitted =
10 requireNative('automationInternal').IsInteractPermitted; 10 requireNative('automationInternal').IsInteractPermitted;
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 var result = GetRootID(this.treeID); 943 var result = GetRootID(this.treeID);
944 944
945 // Don't return undefined, because the id is often passed directly 945 // Don't return undefined, because the id is often passed directly
946 // as an argument to a native binding that expects only a valid number. 946 // as an argument to a native binding that expects only a valid number.
947 if (result === undefined) 947 if (result === undefined)
948 return -1; 948 return -1;
949 949
950 return result; 950 return result;
951 }, 951 },
952 952
953 get chromeChannel() {
954 return GetStringAttribute(this.treeID, this.id, 'chromeChannel');
955 },
956
953 get docUrl() { 957 get docUrl() {
954 return GetDocURL(this.treeID); 958 return GetDocURL(this.treeID);
955 }, 959 },
956 960
957 get docTitle() { 961 get docTitle() {
958 return GetDocTitle(this.treeID); 962 return GetDocTitle(this.treeID);
959 }, 963 },
960 964
961 get docLoaded() { 965 get docLoaded() {
962 return GetDocLoaded(this.treeID); 966 return GetDocLoaded(this.treeID);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 'htmlAttributes', 1122 'htmlAttributes',
1119 ]), 1123 ]),
1120 }); 1124 });
1121 1125
1122 function AutomationRootNode() { 1126 function AutomationRootNode() {
1123 privates(AutomationRootNode).constructPrivate(this, arguments); 1127 privates(AutomationRootNode).constructPrivate(this, arguments);
1124 } 1128 }
1125 utils.expose(AutomationRootNode, AutomationRootNodeImpl, { 1129 utils.expose(AutomationRootNode, AutomationRootNodeImpl, {
1126 superclass: AutomationNode, 1130 superclass: AutomationNode,
1127 readonly: [ 1131 readonly: [
1132 'chromeChannel',
1128 'docTitle', 1133 'docTitle',
1129 'docUrl', 1134 'docUrl',
1130 'docLoaded', 1135 'docLoaded',
1131 'docLoadingProgress', 1136 'docLoadingProgress',
1132 'anchorObject', 1137 'anchorObject',
1133 'anchorOffset', 1138 'anchorOffset',
1134 'anchorAffinity', 1139 'anchorAffinity',
1135 'focusObject', 1140 'focusObject',
1136 'focusOffset', 1141 'focusOffset',
1137 'focusAffinity', 1142 'focusAffinity',
1138 ], 1143 ],
1139 }); 1144 });
1140 1145
1141 utils.defineProperty(AutomationRootNode, 'get', function(treeID) { 1146 utils.defineProperty(AutomationRootNode, 'get', function(treeID) {
1142 return AutomationRootNodeImpl.get(treeID); 1147 return AutomationRootNodeImpl.get(treeID);
1143 }); 1148 });
1144 1149
1145 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) { 1150 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) {
1146 return AutomationRootNodeImpl.getOrCreate(treeID); 1151 return AutomationRootNodeImpl.getOrCreate(treeID);
1147 }); 1152 });
1148 1153
1149 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) { 1154 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) {
1150 AutomationRootNodeImpl.destroy(treeID); 1155 AutomationRootNodeImpl.destroy(treeID);
1151 }); 1156 });
1152 1157
1153 exports.$set('AutomationNode', AutomationNode); 1158 exports.$set('AutomationNode', AutomationNode);
1154 exports.$set('AutomationRootNode', AutomationRootNode); 1159 exports.$set('AutomationRootNode', AutomationRootNode);
OLDNEW
« no previous file with comments | « chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698