Mac: Fix tab view accessibility.
commit1ccf1740236df20591e4cf5150d3a296faa0efb3
authorandresantoso <andresantoso@chromium.org>
Wed, 24 Sep 2014 04:42:57 +0000 (23 21:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 24 Sep 2014 04:43:05 +0000 (24 04:43 +0000)
treeb12a23456d9f854877998289f72cee9429ea7c0e
parent2e44917894a92a0d6fb0e56e3220811f811d1c8e
Mac: Fix tab view accessibility.

The close button was setting the AXDescription property, it somehow caused
VoiceOver to use it as the tab view's description. Change it to set the AXTitle
property instead to fix the issue, and to match Safari.

Also change the tab strips' AX children to be sorted from left to right, so
that VoiceOver's "Tab X of Y" order is always ascending left to right.

BUG=415570

Review URL: https://codereview.chromium.org/588393002

Cr-Commit-Position: refs/heads/master@{#296346}
chrome/browser/ui/cocoa/hover_close_button.mm
chrome/browser/ui/cocoa/tabs/tab_strip_view.mm