diff options
author | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-28 19:30:23 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-28 19:30:23 +0000 |
commit | 4c671e16908c0f60f38aa26051b89d399b5eb0f0 (patch) | |
tree | 36801dcd79034457409f700a0bf42d0f1304c8e1 /views/widget | |
parent | 485149b279565e436b1c2a6157086b81b4e9ede7 (diff) | |
download | chromium_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/widget')
-rw-r--r-- | views/widget/root_view.cc | 7 | ||||
-rw-r--r-- | views/widget/root_view.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc index 8b8f896..a9c2484 100644 --- a/views/widget/root_view.cc +++ b/views/widget/root_view.cc @@ -751,11 +751,8 @@ void RootView::ClearPaintRect() { // ///////////////////////////////////////////////////////////////////////////// -bool RootView::GetAccessibleRole(AccessibilityTypes::Role* role) { - DCHECK(role); - - *role = AccessibilityTypes::ROLE_APPLICATION; - return true; +AccessibilityTypes::Role RootView::GetAccessibleRole() { + return AccessibilityTypes::ROLE_APPLICATION; } View* RootView::GetDragView() { diff --git a/views/widget/root_view.h b/views/widget/root_view.h index 91c1672..bf81536 100644 --- a/views/widget/root_view.h +++ b/views/widget/root_view.h @@ -180,7 +180,7 @@ class RootView : public View, int operation); // Accessibility accessors/mutators, overridden from View. - virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); + virtual AccessibilityTypes::Role GetAccessibleRole(); #if defined(TOUCH_UI) && defined(UNIT_TEST) // For unit testing purposes, we use this method to set a mock |