Chromium Code Reviews| Index: chrome/renderer/resources/extensions/automation_custom_bindings.js |
| diff --git a/chrome/renderer/resources/extensions/automation_custom_bindings.js b/chrome/renderer/resources/extensions/automation_custom_bindings.js |
| index 596032d6bbcfbd5549b4ce3e5bf46a79471dea1b..ec7bc8f6fd34470ff884145b63c128ab4b15ebd1 100644 |
| --- a/chrome/renderer/resources/extensions/automation_custom_bindings.js |
| +++ b/chrome/renderer/resources/extensions/automation_custom_bindings.js |
| @@ -33,7 +33,6 @@ var DESKTOP_TREE_ID = createAutomationRootNodeID(0, 0); |
| automation.registerCustomHook(function(bindingsAPI) { |
| var apiFunctions = bindingsAPI.apiFunctions; |
| - // TODO(aboxhall, dtseng): Make this return the speced AutomationRootNode obj. |
| apiFunctions.setHandleRequest('getTree', function getTree(tabId, callback) { |
| // enableTab() ensures the renderer for the active or specified tab has |
| // accessibility enabled, and fetches its process and routing ids to use as |
| @@ -92,6 +91,8 @@ automation.registerCustomHook(function(bindingsAPI) { |
| automationInternal.onAccessibilityEvent.addListener(function(data) { |
| var pid = data.processID; |
| var rid = data.routingID; |
| + console.log('onAccessibilityEvent { processID: ' + pid + ', routingID: ' + |
| + rid + ', eventType: ' + data.eventType + ' }'); |
| var id = createAutomationRootNodeID(pid, rid); |
| var targetTree = idToAutomationRootNode[id]; |
| if (!targetTree) { |
| @@ -101,6 +102,7 @@ automationInternal.onAccessibilityEvent.addListener(function(data) { |
| targetTree = new AutomationRootNode(pid, rid); |
| idToAutomationRootNode[id] = targetTree; |
| } |
| + |
| if (!privates(targetTree).impl.onAccessibilityEvent(data)) |
| return; |
|
David Tseng
2014/08/18 22:55:45
Also put logging in performAction?
|