Commit f03a5fd8 authored by dtseng's avatar dtseng Committed by Commit bot

Allow client nodes to gain ChromeVox range.

Notificaiton center now fires a focus event on a view that has no role (i.e. a client node). Allow for this so that we pick up on the window ax obj's name "notification center" and override client output to be $name (avoiding the role which provides no value).

CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
BUG=643995
TEST=alt+shift+n

Review-Url: https://codereview.chromium.org/2383103003
Cr-Commit-Position: refs/heads/master@{#422607}
parent 2ca4e6ad
...@@ -244,8 +244,8 @@ DesktopAutomationHandler.prototype = { ...@@ -244,8 +244,8 @@ DesktopAutomationHandler.prototype = {
var node = evt.target; var node = evt.target;
// Discard focus events on embeddedObject and client nodes. // Discard focus events on embeddedObject.
if (node.role == RoleType.embeddedObject || node.role == RoleType.client) if (node.role == RoleType.embeddedObject)
return; return;
this.createTextEditHandlerIfNeeded_(evt.target); this.createTextEditHandlerIfNeeded_(evt.target);
......
...@@ -429,6 +429,9 @@ Output.RULES = { ...@@ -429,6 +429,9 @@ Output.RULES = {
speak: '$if($checked, $earcon(CHECK_ON), $earcon(CHECK_OFF)) ' + speak: '$if($checked, $earcon(CHECK_ON), $earcon(CHECK_OFF)) ' +
'$name $role $checked $description $state' '$name $role $checked $description $state'
}, },
client: {
speak: '$name'
},
date: { date: {
enter: '$nameFromNode $role $description' enter: '$nameFromNode $role $description'
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment