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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 743273002: Various changes required to support ChromeVox Next to read Views and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/automation/automation_node.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
index edbeaf14af70b30aad32da6771cfefe24f6492aa..323858fc3ae01abe80dcbc0dcf6c8ba3188ddc84 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -53,6 +53,9 @@ AutomationNodeImpl.prototype = {
},
children: function() {
+ if (this.childTree)
+ return [this.childTree];
+
var children = [];
for (var i = 0, childID; childID = this.childIds[i]; i++) {
logging.CHECK(this.rootImpl.get(childID));

Powered by Google App Engine
This is Rietveld 408576698