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

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

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Remove whitespace change Created 3 years, 10 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 45720681c6992464733303b54d62854abd3e0f93..b8bf412c952f16df099e1e81f966c48d6d98b1e3 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -1154,22 +1154,8 @@ Output.prototype = {
this.append_(buff, String(count));
}
} else if (token == 'checked') {
- var msg;
- var ariaChecked = node.htmlAttributes['aria-checked'];
- switch (ariaChecked) {
- case 'mixed':
- msg = 'aria_checked_mixed';
- break;
- case 'true':
- msg = 'aria_checked_true';
- break;
- case 'false':
- msg = 'aria_checked_false';
- break;
- default:
- msg = node.state[StateType.CHECKED] ?
- 'aria_checked_true' : 'aria_checked_false';
- }
+ var msg = node.buttonMixed ? 'aria_checked_mixed' : (
+ node.state.checked ? 'aria_checked_true' : 'aria_checked_false');
this.format_(node, '@' + msg, buff);
} else if (token == 'state') {
if (node.state) {

Powered by Google App Engine
This is Rietveld 408576698