summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 19:30:23 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 19:30:23 +0000
commit4c671e16908c0f60f38aa26051b89d399b5eb0f0 (patch)
tree36801dcd79034457409f700a0bf42d0f1304c8e1 /views/view.cc
parent485149b279565e436b1c2a6157086b81b4e9ede7 (diff)
downloadchromium_src-4c671e16908c0f60f38aa26051b89d399b5eb0f0.zip
chromium_src-4c671e16908c0f60f38aa26051b89d399b5eb0f0.tar.gz
chromium_src-4c671e16908c0f60f38aa26051b89d399b5eb0f0.tar.bz2
Make accessible getters return values instead of accepting an output parameter. GetAccessibleName still needs to be converted.
BUG=none TEST=trybots Review URL: http://codereview.chromium.org/3416033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/views/view.cc b/views/view.cc
index a4e7aa0..e1a5fef 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1166,22 +1166,14 @@ bool View::GetAccessibleName(std::wstring* name) {
return true;
}
-bool View::GetAccessibleRole(AccessibilityTypes::Role* role) {
- if (accessible_role_) {
- *role = accessible_role_;
- return true;
- }
- return false;
+AccessibilityTypes::Role View::GetAccessibleRole() {
+ return AccessibilityTypes::ROLE_CLIENT;
}
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,