| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
|
| index be3ffc717e0bbc8b173c64a5b6041c92cadcdb57..724272e27a88e2b63cc283707ad779ade48bd92b 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
|
| @@ -45,7 +45,7 @@ DesktopAutomationHandler = function(node) {
|
| this.addListener_(e.activedescendantchanged, this.onActiveDescendantChanged);
|
| this.addListener_(e.alert, this.onAlert);
|
| this.addListener_(e.ariaAttributeChanged, this.onEventIfInRange);
|
| - this.addListener_(e.checkedStateChanged, this.onEventIfInRange);
|
| + this.addListener_(e.checkedStateChanged, this.onCheckedStateChanged);
|
| this.addListener_(e.focus, this.onFocus);
|
| this.addListener_(e.hover, this.onHover);
|
| this.addListener_(e.loadComplete, this.onLoadComplete);
|
| @@ -195,6 +195,19 @@ DesktopAutomationHandler.prototype = {
|
| },
|
|
|
| /**
|
| + * Provides all feedback once a checked state changed event fires.
|
| + * @param {!AutomationEvent} evt
|
| + */
|
| + onCheckedStateChanged: function(evt) {
|
| + if (!AutomationPredicate.checkable(evt.target))
|
| + return;
|
| +
|
| + this.onEventIfInRange(
|
| + new chrome.automation.AutomationEvent(
|
| + EventType.checkedStateChanged, evt.target));
|
| + },
|
| +
|
| + /**
|
| * Provides all feedback once a focus event fires.
|
| * @param {!AutomationEvent} evt
|
| */
|
|
|