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

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

Issue 2917123002: Support role description in automation/ChromeVox (Closed)
Patch Set: Rebase. Created 3 years, 6 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 5d9e6611a41b96925971727f021738a7e645b6c5..da100400db6461cf8ad4385beb6bf302c363e6e5 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -1256,7 +1256,9 @@ Output.prototype = {
options.annotation.push(token);
var msg = node.role;
var info = Output.ROLE_INFO_[node.role];
- if (info) {
+ if (node.roleDescription) {
+ msg = node.roleDescription;
+ } else if (info) {
if (this.formatOptions_.braille)
msg = Msgs.getMsg(info.msgId + '_brl');
else

Powered by Google App Engine
This is Rietveld 408576698