diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-14 16:25:56 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-14 16:25:56 +0000 |
commit | fca8dc0de7785069b2bb721aca6966fd11f45a0a (patch) | |
tree | c3f01985bec47ab376b00710abf20184f1110f22 /ui/message_center/base_format_view.cc | |
parent | e212a306bfbdaac64b4e1a5134dd42b7a0d773af (diff) | |
download | chromium_src-fca8dc0de7785069b2bb721aca6966fd11f45a0a.zip chromium_src-fca8dc0de7785069b2bb721aca6966fd11f45a0a.tar.gz chromium_src-fca8dc0de7785069b2bb721aca6966fd11f45a0a.tar.bz2 |
views: Improve the constant names of the ButtonState enum.
We rename then to STATE_FOO, so it is less confusing:
Rather than:
if (state == views::CustomButton::BS_HOT) { ... }
We now have:
if (state == views::CustomButton::STATE_HOVERED) { ... }
A bit more verbose, but much better to read.
R=sky@chromium.org
TBR=jochen@chromium.org # for content/shell
Review URL: https://chromiumcodereview.appspot.com/11275272
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/message_center/base_format_view.cc')
-rw-r--r-- | ui/message_center/base_format_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/message_center/base_format_view.cc b/ui/message_center/base_format_view.cc index f8cec95..4bd48b3 100644 --- a/ui/message_center/base_format_view.cc +++ b/ui/message_center/base_format_view.cc @@ -54,7 +54,7 @@ void BaseFormatView::SetUpView() { close_button_ = new views::ImageButton(this); close_button_->SetImage( - views::CustomButton::BS_NORMAL, + views::CustomButton::STATE_NORMAL, ResourceBundle::GetSharedInstance().GetImageSkiaNamed( IDR_MESSAGE_CLOSE)); close_button_->SetImageAlignment(views::ImageButton::ALIGN_CENTER, |