Commit a1b9dde3 authored by David Tseng's avatar David Tseng Committed by Commit Bot

Support aria-modal in ChromeVox

Bug: 800948
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ia0a314d12ad121dd5748bbeb2ab5213920772d16
Reviewed-on: https://chromium-review.googlesource.com/881956Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarMichael Giuffrida <michaelpg@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532010}
parent 3f8dbc8d
......@@ -338,7 +338,7 @@ AutomationPredicate.root = function(node) {
(node.parent.root.role == Role.DESKTOP &&
node.parent.role == Role.WEB_VIEW);
default:
return false;
return !!node.modal;
}
};
......
......@@ -650,6 +650,9 @@
// The name of the programmatic backing object.
DOMString? className;
// Marks this subtree as modal.
boolean? modal;
// A map containing all HTML attributes and their values
// <jsexterns>@type {Object<string>}</jsexterns>
object? htmlAttributes;
......
......@@ -852,6 +852,7 @@ var boolAttributes = [
'containerLiveAtomic',
'containerLiveBusy',
'liveAtomic',
'modal',
'scrollable'
];
......
......@@ -907,6 +907,13 @@ chrome.automation.AutomationNode.prototype.autoComplete;
*/
chrome.automation.AutomationNode.prototype.className;
/**
* Marks this subtree as modal.
* @type {(boolean|undefined)}
* @see https://developer.chrome.com/extensions/automation#type-modal
*/
chrome.automation.AutomationNode.prototype.modal;
/**
* A map containing all HTML attributes and their values
* @type {Object<string>}
......
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