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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 1801363003: Add a $joinedDescendants output specifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
index 4f74d35238594a2e6fd101c1e58a3b2db703b5cb..43625288ebfafc79e96e89ffcc1d49672236229f 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -1043,6 +1043,10 @@ Output.prototype = {
if (node)
prev = cursors.Range.fromNode(node);
this.range_(subrange, prev, Output.EventType.NAVIGATE, buff);
+ } else if (token == 'joinedDescendants') {
+ var unjoined = [];
+ this.format_(node, '$descendants', unjoined);
+ this.append_(buff, unjoined.join(' '), options);
} else if (token == 'role') {
if (localStorage['useVerboseMode'] == 'false')
return;

Powered by Google App Engine
This is Rietveld 408576698