Commit 350d83a2 authored by dtseng's avatar dtseng Committed by Commit bot

Hook up make visible action for views

- try to scroll to the view's bounding rectangle when a client requests make visible
- add switch as a checkbox (matched for that predicate)

BUG=673048

Review-Url: https://codereview.chromium.org/2572573002
Cr-Commit-Position: refs/heads/master@{#438082}
parent 7d7031e3
......@@ -57,7 +57,8 @@ AutomationPredicate.match = function(params) {
};
/** @type {AutomationPredicate.Unary} */
AutomationPredicate.checkBox = AutomationPredicate.roles([Role.checkBox]);
AutomationPredicate.checkBox =
AutomationPredicate.roles([Role.checkBox, Role.switch]);
/** @type {AutomationPredicate.Unary} */
AutomationPredicate.comboBox = AutomationPredicate.roles(
[Role.comboBox, Role.popUpButton, Role.menuListPopup]);
......
......@@ -79,7 +79,7 @@ void AXViewObjWrapper::Focus() {
}
void AXViewObjWrapper::MakeVisible() {
// TODO(dtseng): Implement.
view_->ScrollRectToVisible(view_->GetLocalBounds());
}
void AXViewObjWrapper::SetSelection(int32_t start, int32_t end) {
......
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