diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-03 00:56:12 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-03 00:56:12 +0000 |
commit | d5c8101d795d43c265d81277305958d38160ab19 (patch) | |
tree | f9d114bcacebec4839356c4feccad2c56932b5b6 /views/window | |
parent | f6b551d4bbde5c66782225ecc8c9aec81c974d07 (diff) | |
download | chromium_src-d5c8101d795d43c265d81277305958d38160ab19.zip chromium_src-d5c8101d795d43c265d81277305958d38160ab19.tar.gz chromium_src-d5c8101d795d43c265d81277305958d38160ab19.tar.bz2 |
Eliminate a lot of duplicated implementations of Get/SetAccessibleName() by just putting it on the base class. Also cleans up a couple other misc. accessibility functions in view.h.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1512012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window')
-rw-r--r-- | views/window/non_client_view.cc | 12 | ||||
-rw-r--r-- | views/window/non_client_view.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/views/window/non_client_view.cc b/views/window/non_client_view.cc index fcf4353..e2d1a5c 100644 --- a/views/window/non_client_view.cc +++ b/views/window/non_client_view.cc @@ -182,18 +182,6 @@ bool NonClientView::GetAccessibleRole(AccessibilityTypes::Role* role) { return true; } -bool NonClientView::GetAccessibleName(std::wstring* name) { - if (!accessible_name_.empty()) { - *name = accessible_name_; - return true; - } - return false; -} - -void NonClientView::SetAccessibleName(const std::wstring& name) { - accessible_name_ = name; -} - //////////////////////////////////////////////////////////////////////////////// // NonClientFrameView, View overrides: diff --git a/views/window/non_client_view.h b/views/window/non_client_view.h index cb94d25..54c04b7 100644 --- a/views/window/non_client_view.h +++ b/views/window/non_client_view.h @@ -209,8 +209,6 @@ class NonClientView : public View { virtual gfx::Size GetMinimumSize(); virtual void Layout(); virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); - virtual bool GetAccessibleName(std::wstring* name); - virtual void SetAccessibleName(const std::wstring& name); protected: // NonClientView, View overrides: |