diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 17:22:18 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 17:22:18 +0000 |
commit | aa25397e8f980bdc5ad8f161b4129d741aa13397 (patch) | |
tree | 512130f3b8b2a63114674aaa16867e61ffc419eb /views/controls/button | |
parent | 3469256c36397504e6a8eea88aaebd4823aad2d9 (diff) | |
download | chromium_src-aa25397e8f980bdc5ad8f161b4129d741aa13397.zip chromium_src-aa25397e8f980bdc5ad8f161b4129d741aa13397.tar.gz chromium_src-aa25397e8f980bdc5ad8f161b4129d741aa13397.tar.bz2 |
views: Remove NativeTextButton::SetLabel() and replace all call sites with SetText().
Note: This was a TODO added by rogerta@chromium.org
BUG=None
TEST=None
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7717028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/button')
-rw-r--r-- | views/controls/button/checkbox.h | 4 | ||||
-rw-r--r-- | views/controls/button/text_button.h | 7 |
2 files changed, 0 insertions, 11 deletions
diff --git a/views/controls/button/checkbox.h b/views/controls/button/checkbox.h index e8d52b6..2916c54 100644 --- a/views/controls/button/checkbox.h +++ b/views/controls/button/checkbox.h @@ -30,10 +30,6 @@ class VIEWS_EXPORT Checkbox : public TextButtonBase { virtual void SetChecked(bool checked); bool checked() const { return checked_; } - void SetLabel(const std::wstring& label) { - SetText(label); - } - protected: // Overridden from View: virtual gfx::Size GetPreferredSize() OVERRIDE; diff --git a/views/controls/button/text_button.h b/views/controls/button/text_button.h index 2a2c450..3373bc5 100644 --- a/views/controls/button/text_button.h +++ b/views/controls/button/text_button.h @@ -407,13 +407,6 @@ class VIEWS_EXPORT NativeTextButton : public TextButton { NativeTextButton(ButtonListener* listener); NativeTextButton(ButtonListener* listener, const std::wstring& text); - // Sets/Gets the text to be used as the button's label. - // TODO: Remove this function and replace all call sites with SetText(). - void SetLabel(const std::wstring& label) { - SetText(label); - } - std::wstring label() const { return text(); } - // Overridden from TextButton: virtual gfx::Size GetMinimumSize() OVERRIDE; |