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

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

Issue 2795083003: Add support for in-page links in ChromeVox. (Closed)
Patch Set: Make getTree take optional callback as well. Created 3 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 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 'tableCellRowSpan', 730 'tableCellRowSpan',
731 'tableColumnCount', 731 'tableColumnCount',
732 'tableColumnIndex', 732 'tableColumnIndex',
733 'tableRowCount', 733 'tableRowCount',
734 'tableRowIndex', 734 'tableRowIndex',
735 'textSelEnd', 735 'textSelEnd',
736 'textSelStart']; 736 'textSelStart'];
737 737
738 var nodeRefAttributes = [ 738 var nodeRefAttributes = [
739 ['activedescendantId', 'activeDescendant'], 739 ['activedescendantId', 'activeDescendant'],
740 ['inPageLinkTargetId', 'inPageLinkTarget'],
740 ['nextOnLineId', 'nextOnLine'], 741 ['nextOnLineId', 'nextOnLine'],
741 ['previousOnLineId', 'previousOnLine'], 742 ['previousOnLineId', 'previousOnLine'],
742 ['tableColumnHeaderId', 'tableColumnHeader'], 743 ['tableColumnHeaderId', 'tableColumnHeader'],
743 ['tableHeaderId', 'tableHeader'], 744 ['tableHeaderId', 'tableHeader'],
744 ['tableRowHeaderId', 'tableRowHeader']]; 745 ['tableRowHeaderId', 'tableRowHeader']];
745 746
746 var intListAttributes = [ 747 var intListAttributes = [
747 'lineBreaks', 748 'lineBreaks',
748 'markerEnds', 749 'markerEnds',
749 'markerStarts', 750 'markerStarts',
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) { 1150 utils.defineProperty(AutomationRootNode, 'getOrCreate', function(treeID) {
1150 return AutomationRootNodeImpl.getOrCreate(treeID); 1151 return AutomationRootNodeImpl.getOrCreate(treeID);
1151 }); 1152 });
1152 1153
1153 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) { 1154 utils.defineProperty(AutomationRootNode, 'destroy', function(treeID) {
1154 AutomationRootNodeImpl.destroy(treeID); 1155 AutomationRootNodeImpl.destroy(treeID);
1155 }); 1156 });
1156 1157
1157 exports.$set('AutomationNode', AutomationNode); 1158 exports.$set('AutomationNode', AutomationNode);
1158 exports.$set('AutomationRootNode', AutomationRootNode); 1159 exports.$set('AutomationRootNode', AutomationRootNode);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698