diff options
author | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 23:00:03 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 23:00:03 +0000 |
commit | b82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa (patch) | |
tree | 21f95e3df23460ae77342f865a24178d0cadba89 /views/view.cc | |
parent | 6f496b2703a7ccb7bba1dbb14a2b9c00f02a853e (diff) | |
download | chromium_src-b82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa.zip chromium_src-b82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa.tar.gz chromium_src-b82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa.tar.bz2 |
Initial work to fix the IAccessible tree in circumstances where there is a widget not at the root of the UI heirarchy. Also contains misc fixes for setting correct name/role for controls found in the Options dialog.
BUG=9621
TEST=none
Review URL: http://codereview.chromium.org/2174002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r-- | views/view.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc index 5cb4f0e..012240a 100644 --- a/views/view.cc +++ b/views/view.cc @@ -1127,10 +1127,22 @@ bool View::GetAccessibleName(std::wstring* name) { return true; } +bool View::GetAccessibleRole(AccessibilityTypes::Role* role) { + if (accessible_role_) { + *role = accessible_role_; + return true; + } + return false; +} + void View::SetAccessibleName(const std::wstring& name) { accessible_name_ = name; } +void View::SetAccessibleRole(const AccessibilityTypes::Role role) { + accessible_role_ = role; +} + // static void View::ConvertPointToView(const View* src, const View* dst, |